2026-03-19 18:05:34,276 - INFO - Domain Default found not creating
2026-03-19 18:05:34,616 - INFO - Project ctest-TestBasicPolicy-92587198 not found, creating it
2026-03-19 18:05:35,160 - INFO - Created Project:ctest-TestBasicPolicy-92587198, ID : 744b22b8-ec86-449d-ab91-4885aa46eb97
2026-03-19 18:05:37,095 - INFO - ================================================================================
2026-03-19 18:05:37,095 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-19 18:05:37,095 - 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-03-19 18:05:37,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-03-19 18:05:37,387 - INFO - Initial checks done. Running the testcase now
2026-03-19 18:05:37,387 - INFO -
2026-03-19 18:05:38,128 - DEBUG - Response for create_network : {'network': {'id': 'e6d6056c-e683-4282-be62-0e81bf9a7de3', 'name': 'ctest-vn-95454392', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'project_id': '744b22b8ec86449dab914885aa46eb97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-vn-95454392'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 18:05:38,380 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa845da9-ffb1-4dad-9374-32ca50abc9de', 'name': '', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'network_id': 'e6d6056c-e683-4282-be62-0e81bf9a7de3', 'ip_version': 4, 'cidr': '62.196.127.192/26', 'allocation_pools': [{'start': '62.196.127.194', 'end': '62.196.127.254'}], 'gateway_ip': '62.196.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.196.127.194', 'tags': [], 'project_id': '744b22b8ec86449dab914885aa46eb97'}}
2026-03-19 18:05:38,411 - INFO - Created VN ctest-vn-95454392
2026-03-19 18:05:38,479 - DEBUG - VN ctest-vn-95454392 UUID is e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:38,935 - DEBUG - Response for create_network : {'network': {'id': '96e31d9f-980e-4ff5-8c5c-54da8b3add1b', 'name': 'ctest-vn-94531514', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'project_id': '744b22b8ec86449dab914885aa46eb97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-vn-94531514'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 18:05:39,201 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dd122e6-fec5-4b2f-8c7f-79aca8ab6ee5', 'name': '', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'network_id': '96e31d9f-980e-4ff5-8c5c-54da8b3add1b', 'ip_version': 4, 'cidr': '47.193.185.0/26', 'allocation_pools': [{'start': '47.193.185.2', 'end': '47.193.185.62'}], 'gateway_ip': '47.193.185.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.193.185.2', 'tags': [], 'project_id': '744b22b8ec86449dab914885aa46eb97'}}
2026-03-19 18:05:39,223 - INFO - Created VN ctest-vn-94531514
2026-03-19 18:05:39,278 - DEBUG - VN ctest-vn-94531514 UUID is 96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:39,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392, 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-92587198:ctest-vn-94531514, 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-03-19 18:05:39,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6d6056c-e683-4282-be62-0e81bf9a7de3', 'name': 'ctest-vn-95454392', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'project_id': '744b22b8ec86449dab914885aa46eb97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa845da9-ffb1-4dad-9374-32ca50abc9de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-vn-95454392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-policy-allow-all-81421559']], 'subnet_ipam': [{'subnet_cidr': '62.196.127.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 18:05:40,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96e31d9f-980e-4ff5-8c5c-54da8b3add1b', 'name': 'ctest-vn-94531514', 'tenant_id': '744b22b8ec86449dab914885aa46eb97', 'project_id': '744b22b8ec86449dab914885aa46eb97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dd122e6-fec5-4b2f-8c7f-79aca8ab6ee5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-vn-94531514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-policy-allow-all-81421559']], 'subnet_ipam': [{'subnet_cidr': '47.193.185.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 18:05:40,330 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-19 18:05:40,639 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-19 18:05:40,721 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0
2026-03-19 18:05:40,755 - DEBUG - Requesting: http://10.0.0.33:8082/project/744b22b8-ec86-449d-ab91-4885aa46eb97
2026-03-19 18:05:40,881 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:40,902 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:40,928 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b8ab8cc9-8bda-42cf-ad17-0ec2259e086c
2026-03-19 18:05:40,947 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b8ab8cc9-8bda-42cf-ad17-0ec2259e086c
2026-03-19 18:05:40,964 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9fbead0d-b98c-4945-a10c-b2d51e489435
2026-03-19 18:05:40,982 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 18:05:40,982 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:41,008 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b8ab8cc9-8bda-42cf-ad17-0ec2259e086c
2026-03-19 18:05:41,048 - INFO - Verified VN network id 11 for VN e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:41,048 - INFO - Verifications in API Server for VN ctest-vn-95454392 passed
2026-03-19 18:05:41,048 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:41,072 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b8ab8cc9-8bda-42cf-ad17-0ec2259e086c
2026-03-19 18:05:41,089 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b8ab8cc9-8bda-42cf-ad17-0ec2259e086c
2026-03-19 18:05:41,105 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9fbead0d-b98c-4945-a10c-b2d51e489435
2026-03-19 18:05:41,136 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92587198', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16633488239021474434', 'uuid-lslong': '13718543365352095203'}, 'enable': 'true', 'created': '2026-03-19T18:05:38', 'last-modified': '2026-03-19T18:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361353'}
2026-03-19 18:05:41,151 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 18:05:41,152 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95454392 passed
2026-03-19 18:05:41,152 - DEBUG - ====Verifying policy data for ctest-vn-95454392 in API_Server ======
2026-03-19 18:05:41,152 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-19 18:05:41,165 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0
2026-03-19 18:05:41,185 - DEBUG - Requesting: http://10.0.0.33:8082/project/744b22b8-ec86-449d-ab91-4885aa46eb97
2026-03-19 18:05:41,301 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e6d6056c-e683-4282-be62-0e81bf9a7de3
2026-03-19 18:05:41,326 - DEBUG - ==>Verifying data for policy with id: 440e35e2-5598-4c75-87df-844317411387, fqn: ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-policy-allow-all-81421559']
2026-03-19 18:05:41,326 - INFO - VN ctest-vn-95454392 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 18:05:41,327 - DEBUG - Verifying the vn in opserver
2026-03-19 18:05:41,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392 virtual network link through opserver 10.0.0.33
2026-03-19 18:05:41,327 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-19 18:05:41,680 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-19 18:05:41,780 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392?flat'}
2026-03-19 18:05:41,780 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-95454392 is found in opserver
2026-03-19 18:05:41,804 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 18:05:41,815 - DEBUG - VRF ids for VN ctest-vn-95454392: {}
2026-03-19 18:05:41,815 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-19 18:05:41,827 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0
2026-03-19 18:05:41,860 - DEBUG - Requesting: http://10.0.0.33:8082/project/744b22b8-ec86-449d-ab91-4885aa46eb97
2026-03-19 18:05:41,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,014 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,039 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ff12a733-10e3-42c3-97ae-049e5e942b26
2026-03-19 18:05:42,058 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ff12a733-10e3-42c3-97ae-049e5e942b26
2026-03-19 18:05:42,079 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/37c104eb-1d5c-457e-897f-1b341627a541
2026-03-19 18:05:42,093 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 18:05:42,093 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,111 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ff12a733-10e3-42c3-97ae-049e5e942b26
2026-03-19 18:05:42,140 - INFO - Verified VN network id 12 for VN 96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,140 - INFO - Verifications in API Server for VN ctest-vn-94531514 passed
2026-03-19 18:05:42,140 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,156 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ff12a733-10e3-42c3-97ae-049e5e942b26
2026-03-19 18:05:42,172 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ff12a733-10e3-42c3-97ae-049e5e942b26
2026-03-19 18:05:42,184 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/37c104eb-1d5c-457e-897f-1b341627a541
2026-03-19 18:05:42,211 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-94531514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92587198', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10872566496690589685', 'uuid-lslong': '10114052160782785819'}, 'enable': 'true', 'created': '2026-03-19T18:05:38', 'last-modified': '2026-03-19T18:05:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.116740'}
2026-03-19 18:05:42,221 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 18:05:42,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94531514 passed
2026-03-19 18:05:42,221 - DEBUG - ====Verifying policy data for ctest-vn-94531514 in API_Server ======
2026-03-19 18:05:42,221 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-19 18:05:42,229 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0
2026-03-19 18:05:42,245 - DEBUG - Requesting: http://10.0.0.33:8082/project/744b22b8-ec86-449d-ab91-4885aa46eb97
2026-03-19 18:05:42,339 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/96e31d9f-980e-4ff5-8c5c-54da8b3add1b
2026-03-19 18:05:42,355 - DEBUG - ==>Verifying data for policy with id: 440e35e2-5598-4c75-87df-844317411387, fqn: ['default-domain', 'ctest-TestBasicPolicy-92587198', 'ctest-policy-allow-all-81421559']
2026-03-19 18:05:42,356 - INFO - VN ctest-vn-94531514 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 18:05:42,356 - DEBUG - Verifying the vn in opserver
2026-03-19 18:05:42,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-94531514 virtual network link through opserver 10.0.0.33
2026-03-19 18:05:42,356 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-19 18:05:42,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-94531514', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-94531514?flat'}
2026-03-19 18:05:42,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92587198:ctest-vn-94531514 is found in opserver
2026-03-19 18:05:42,390 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 18:05:42,398 - DEBUG - VRF ids for VN ctest-vn-94531514: {}
2026-03-19 18:05:42,514 - DEBUG - Services list from nova: [