2025-06-18 09:14:42,473 - INFO - Domain Default found not creating
2025-06-18 09:14:42,656 - INFO - Project ctest-TestBasicPolicy-22786044 not found, creating it
2025-06-18 09:14:43,200 - INFO - Created Project:ctest-TestBasicPolicy-22786044, ID : cd6e304f-77f5-4518-bb50-f509fa815d1d
2025-06-18 09:14:44,772 - INFO - ================================================================================
2025-06-18 09:14:44,772 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 09:14:44,772 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-06-18 09:14:45,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-18 09:14:45,045 - INFO - Initial checks done. Running the testcase now
2025-06-18 09:14:45,045 - INFO -
2025-06-18 09:14:45,666 - DEBUG - Response for create_network : {'network': {'id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'name': 'ctest-vn-26650924', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-26650924'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:45,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '8427a6ef-6284-4018-ba81-4d317822d23f', 'name': '', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'network_id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'ip_version': 4, 'cidr': '18.152.132.128/26', 'allocation_pools': [{'start': '18.152.132.130', 'end': '18.152.132.190'}], 'gateway_ip': '18.152.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.152.132.130', 'tags': [], 'project_id': 'cd6e304f77f54518bb50f509fa815d1d'}}
2025-06-18 09:14:45,863 - INFO - Created VN ctest-vn-26650924
2025-06-18 09:14:45,920 - DEBUG - VN ctest-vn-26650924 UUID is 12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:46,273 - DEBUG - Response for create_network : {'network': {'id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'name': 'ctest-vn-68402654', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-68402654'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:46,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '06783a0d-6f5a-48bf-95ac-b0cb86b7bb88', 'name': '', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'network_id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'ip_version': 4, 'cidr': '199.194.136.64/26', 'allocation_pools': [{'start': '199.194.136.66', 'end': '199.194.136.126'}], 'gateway_ip': '199.194.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.194.136.66', 'tags': [], 'project_id': 'cd6e304f77f54518bb50f509fa815d1d'}}
2025-06-18 09:14:46,489 - INFO - Created VN ctest-vn-68402654
2025-06-18 09:14:46,544 - DEBUG - VN ctest-vn-68402654 UUID is 359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:46,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-06-18 09:14:47,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'name': 'ctest-vn-26650924', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8427a6ef-6284-4018-ba81-4d317822d23f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-26650924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']], 'subnet_ipam': [{'subnet_cidr': '18.152.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:47,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'name': 'ctest-vn-68402654', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06783a0d-6f5a-48bf-95ac-b0cb86b7bb88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-68402654'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']], 'subnet_ipam': [{'subnet_cidr': '199.194.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:47,460 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-18 09:14:47,762 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-18 09:14:47,797 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd
2025-06-18 09:14:47,812 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d
2025-06-18 09:14:47,892 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:47,905 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:47,918 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350
2025-06-18 09:14:47,929 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350
2025-06-18 09:14:47,940 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55d1d76a-5b90-46de-b5ba-57cb0d0f35c5
2025-06-18 09:14:47,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:14:47,949 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:47,962 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350
2025-06-18 09:14:47,980 - INFO - Verified VN network id 8 for VN 12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:47,980 - INFO - Verifications in API Server for VN ctest-vn-26650924 passed
2025-06-18 09:14:47,981 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:47,993 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350
2025-06-18 09:14:48,003 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350
2025-06-18 09:14:48,013 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55d1d76a-5b90-46de-b5ba-57cb0d0f35c5
2025-06-18 09:14:48,028 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22786044', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1356461478496849562', 'uuid-lslong': '12445489010852630455'}, 'enable': 'true', 'created': '2025-06-18T09:14:45', 'last-modified': '2025-06-18T09:14:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041562'}
2025-06-18 09:14:48,035 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:14:48,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26650924 passed
2025-06-18 09:14:48,036 - DEBUG - ====Verifying policy data for ctest-vn-26650924 in API_Server ======
2025-06-18 09:14:48,036 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-18 09:14:48,043 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd
2025-06-18 09:14:48,058 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d
2025-06-18 09:14:48,137 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7
2025-06-18 09:14:48,151 - DEBUG - ==>Verifying data for policy with id: 49c93cd8-8d80-43e7-be27-b2e8bda1b4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']
2025-06-18 09:14:48,151 - INFO - VN ctest-vn-26650924 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:14:48,152 - DEBUG - Verifying the vn in opserver
2025-06-18 09:14:48,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924 virtual network link through opserver 10.0.0.65
2025-06-18 09:14:48,152 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-18 09:14:48,460 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-18 09:14:48,530 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924?flat'}
2025-06-18 09:14:48,530 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924 is found in opserver
2025-06-18 09:14:48,544 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:14:48,552 - DEBUG - VRF ids for VN ctest-vn-26650924: {}
2025-06-18 09:14:48,553 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-18 09:14:48,560 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd
2025-06-18 09:14:48,574 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d
2025-06-18 09:14:48,651 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,665 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,680 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6
2025-06-18 09:14:48,692 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6
2025-06-18 09:14:48,702 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/44ca7e9f-b5d1-40dc-9aac-430b5816a22f
2025-06-18 09:14:48,712 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:14:48,712 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,725 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6
2025-06-18 09:14:48,744 - INFO - Verified VN network id 9 for VN 359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,744 - INFO - Verifications in API Server for VN ctest-vn-68402654 passed
2025-06-18 09:14:48,744 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,757 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6
2025-06-18 09:14:48,769 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6
2025-06-18 09:14:48,781 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/44ca7e9f-b5d1-40dc-9aac-430b5816a22f
2025-06-18 09:14:48,799 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22786044', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3863937518213483242', 'uuid-lslong': '11397549608731451142'}, 'enable': 'true', 'created': '2025-06-18T09:14:46', 'last-modified': '2025-06-18T09:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.577004'}
2025-06-18 09:14:48,809 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:14:48,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68402654 passed
2025-06-18 09:14:48,809 - DEBUG - ====Verifying policy data for ctest-vn-68402654 in API_Server ======
2025-06-18 09:14:48,809 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-18 09:14:48,818 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd
2025-06-18 09:14:48,834 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d
2025-06-18 09:14:48,911 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06
2025-06-18 09:14:48,923 - DEBUG - ==>Verifying data for policy with id: 49c93cd8-8d80-43e7-be27-b2e8bda1b4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']
2025-06-18 09:14:48,923 - INFO - VN ctest-vn-68402654 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:14:48,923 - DEBUG - Verifying the vn in opserver
2025-06-18 09:14:48,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654 virtual network link through opserver 10.0.0.65
2025-06-18 09:14:48,923 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-18 09:14:48,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654?flat'}
2025-06-18 09:14:48,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654 is found in opserver
2025-06-18 09:14:48,948 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:14:48,954 - DEBUG - VRF ids for VN ctest-vn-68402654: {}
2025-06-18 09:14:49,030 - DEBUG - Services list from nova: [