2026-01-01 06:48:45,756 - INFO - Domain Default found not creating
2026-01-01 06:48:45,938 - INFO - Project ctest-TestBasicPolicy-73588721 not found, creating it
2026-01-01 06:48:46,428 - INFO - Created Project:ctest-TestBasicPolicy-73588721, ID : 30f9f59b-f700-4586-b9ed-dba8bb911f68
2026-01-01 06:48:48,106 - INFO - ================================================================================
2026-01-01 06:48:48,106 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-01 06:48:48,106 - 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
2026-01-01 06:48:48,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2026-01-01 06:48:48,363 - INFO - Initial checks done. Running the testcase now
2026-01-01 06:48:48,363 - INFO -
2026-01-01 06:48:48,959 - DEBUG - Response for create_network : {'network': {'id': '213742b4-70a9-42a0-b0d4-24bba73d42a5', 'name': 'ctest-vn-96793696', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'project_id': '30f9f59bf7004586b9eddba8bb911f68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-vn-96793696'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 06:48:49,115 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e569dbbb-55a6-44a7-a293-49fd13aeb325', 'name': '', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'network_id': '213742b4-70a9-42a0-b0d4-24bba73d42a5', 'ip_version': 4, 'cidr': '162.12.221.192/26', 'allocation_pools': [{'start': '162.12.221.194', 'end': '162.12.221.254'}], 'gateway_ip': '162.12.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.12.221.194', 'tags': [], 'project_id': '30f9f59bf7004586b9eddba8bb911f68'}}
2026-01-01 06:48:49,134 - INFO - Created VN ctest-vn-96793696
2026-01-01 06:48:49,185 - DEBUG - VN ctest-vn-96793696 UUID is 213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:49,482 - DEBUG - Response for create_network : {'network': {'id': '3d613066-feb9-4f4b-8e47-74a479b9cef2', 'name': 'ctest-vn-93511668', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'project_id': '30f9f59bf7004586b9eddba8bb911f68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-vn-93511668'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 06:48:49,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '0df7c995-7f80-4a54-b9cd-a681fc51667c', 'name': '', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'network_id': '3d613066-feb9-4f4b-8e47-74a479b9cef2', 'ip_version': 4, 'cidr': '82.192.44.192/26', 'allocation_pools': [{'start': '82.192.44.194', 'end': '82.192.44.254'}], 'gateway_ip': '82.192.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.192.44.194', 'tags': [], 'project_id': '30f9f59bf7004586b9eddba8bb911f68'}}
2026-01-01 06:48:49,654 - INFO - Created VN ctest-vn-93511668
2026-01-01 06:48:49,705 - DEBUG - VN ctest-vn-93511668 UUID is 3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:49,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696, 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-73588721:ctest-vn-93511668, 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]
2026-01-01 06:48:50,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '213742b4-70a9-42a0-b0d4-24bba73d42a5', 'name': 'ctest-vn-96793696', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'project_id': '30f9f59bf7004586b9eddba8bb911f68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e569dbbb-55a6-44a7-a293-49fd13aeb325'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-vn-96793696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-policy-allow-all-67630855']], 'subnet_ipam': [{'subnet_cidr': '162.12.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 06:48:50,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d613066-feb9-4f4b-8e47-74a479b9cef2', 'name': 'ctest-vn-93511668', 'tenant_id': '30f9f59bf7004586b9eddba8bb911f68', 'project_id': '30f9f59bf7004586b9eddba8bb911f68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0df7c995-7f80-4a54-b9cd-a681fc51667c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-vn-93511668'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-policy-allow-all-67630855']], 'subnet_ipam': [{'subnet_cidr': '82.192.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 06:48:50,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-01 06:48:50,913 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-01 06:48:50,947 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220
2026-01-01 06:48:50,960 - DEBUG - Requesting: http://10.0.0.38:8082/project/30f9f59b-f700-4586-b9ed-dba8bb911f68
2026-01-01 06:48:51,035 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c153d0d5-31f9-47c0-bd05-14c62500f82a
2026-01-01 06:48:51,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c153d0d5-31f9-47c0-bd05-14c62500f82a
2026-01-01 06:48:51,078 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0ef4e4ba-f37f-4a2d-9051-5db8e005ff29
2026-01-01 06:48:51,086 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 06:48:51,086 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c153d0d5-31f9-47c0-bd05-14c62500f82a
2026-01-01 06:48:51,116 - INFO - Verified VN network id 11 for VN 213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,116 - INFO - Verifications in API Server for VN ctest-vn-96793696 passed
2026-01-01 06:48:51,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c153d0d5-31f9-47c0-bd05-14c62500f82a
2026-01-01 06:48:51,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c153d0d5-31f9-47c0-bd05-14c62500f82a
2026-01-01 06:48:51,142 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0ef4e4ba-f37f-4a2d-9051-5db8e005ff29
2026-01-01 06:48:51,155 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73588721', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2393455069722395296', 'uuid-lslong': '12741849634121269925'}, 'enable': 'true', 'created': '2026-01-01T06:48:48', 'last-modified': '2026-01-01T06:48:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038640'}
2026-01-01 06:48:51,162 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 06:48:51,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96793696 passed
2026-01-01 06:48:51,162 - DEBUG - ====Verifying policy data for ctest-vn-96793696 in API_Server ======
2026-01-01 06:48:51,162 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-01 06:48:51,168 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220
2026-01-01 06:48:51,181 - DEBUG - Requesting: http://10.0.0.38:8082/project/30f9f59b-f700-4586-b9ed-dba8bb911f68
2026-01-01 06:48:51,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213742b4-70a9-42a0-b0d4-24bba73d42a5
2026-01-01 06:48:51,261 - DEBUG - ==>Verifying data for policy with id: 5893707e-772b-4dc5-b5e0-cf012a25266d, fqn: ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-policy-allow-all-67630855']
2026-01-01 06:48:51,262 - INFO - VN ctest-vn-96793696 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 06:48:51,262 - DEBUG - Verifying the vn in opserver
2026-01-01 06:48:51,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696 virtual network link through opserver 10.0.0.38
2026-01-01 06:48:51,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-01 06:48:51,606 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-01 06:48:51,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696?flat'}
2026-01-01 06:48:51,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-96793696 is found in opserver
2026-01-01 06:48:51,689 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 06:48:51,695 - DEBUG - VRF ids for VN ctest-vn-96793696: {}
2026-01-01 06:48:51,695 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-01 06:48:51,701 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220
2026-01-01 06:48:51,714 - DEBUG - Requesting: http://10.0.0.38:8082/project/30f9f59b-f700-4586-b9ed-dba8bb911f68
2026-01-01 06:48:51,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,800 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,810 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/832e7253-53b9-44aa-8a24-2e090e7338db
2026-01-01 06:48:51,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/832e7253-53b9-44aa-8a24-2e090e7338db
2026-01-01 06:48:51,823 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cdb4a870-2dae-4f6c-b70d-f96ee9903f6d
2026-01-01 06:48:51,830 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 06:48:51,830 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,840 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/832e7253-53b9-44aa-8a24-2e090e7338db
2026-01-01 06:48:51,854 - INFO - Verified VN network id 12 for VN 3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,854 - INFO - Verifications in API Server for VN ctest-vn-93511668 passed
2026-01-01 06:48:51,854 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/832e7253-53b9-44aa-8a24-2e090e7338db
2026-01-01 06:48:51,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/832e7253-53b9-44aa-8a24-2e090e7338db
2026-01-01 06:48:51,877 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cdb4a870-2dae-4f6c-b70d-f96ee9903f6d
2026-01-01 06:48:51,890 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-93511668', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73588721', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4422869527972892491', 'uuid-lslong': '10252291326497902322'}, 'enable': 'true', 'created': '2026-01-01T06:48:49', 'last-modified': '2026-01-01T06:48:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536105'}
2026-01-01 06:48:51,897 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 06:48:51,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93511668 passed
2026-01-01 06:48:51,897 - DEBUG - ====Verifying policy data for ctest-vn-93511668 in API_Server ======
2026-01-01 06:48:51,897 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-01 06:48:51,903 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220
2026-01-01 06:48:51,914 - DEBUG - Requesting: http://10.0.0.38:8082/project/30f9f59b-f700-4586-b9ed-dba8bb911f68
2026-01-01 06:48:51,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3d613066-feb9-4f4b-8e47-74a479b9cef2
2026-01-01 06:48:51,997 - DEBUG - ==>Verifying data for policy with id: 5893707e-772b-4dc5-b5e0-cf012a25266d, fqn: ['default-domain', 'ctest-TestBasicPolicy-73588721', 'ctest-policy-allow-all-67630855']
2026-01-01 06:48:51,997 - INFO - VN ctest-vn-93511668 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 06:48:51,997 - DEBUG - Verifying the vn in opserver
2026-01-01 06:48:51,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-93511668 virtual network link through opserver 10.0.0.38
2026-01-01 06:48:51,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-01 06:48:52,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-93511668', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-93511668?flat'}
2026-01-01 06:48:52,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73588721:ctest-vn-93511668 is found in opserver
2026-01-01 06:48:52,017 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 06:48:52,022 - DEBUG - VRF ids for VN ctest-vn-93511668: {}
2026-01-01 06:48:52,085 - DEBUG - Services list from nova: [