2026-03-05 02:28:26,387 - INFO - Domain Default found not creating
2026-03-05 02:28:26,564 - INFO - Project ctest-TestBasicPolicy-33626798 not found, creating it
2026-03-05 02:28:27,223 - INFO - Created Project:ctest-TestBasicPolicy-33626798, ID : 11fd180a-3b3f-43c2-8b98-0f4f6817e41e
2026-03-05 02:28:28,795 - INFO - ================================================================================
2026-03-05 02:28:28,796 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-05 02:28:28,796 - 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-05 02:28:29,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0'}} with
2026-03-05 02:28:29,052 - INFO - Initial checks done. Running the testcase now
2026-03-05 02:28:29,052 - INFO -
2026-03-05 02:28:29,577 - DEBUG - Response for create_network : {'network': {'id': 'eee85083-1fd6-4782-8599-dad53fcc3b94', 'name': 'ctest-vn-74110053', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'project_id': '11fd180a3b3f43c28b980f4f6817e41e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-vn-74110053'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:28:29,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '6da2b12e-8cae-4517-a421-ffb044a92975', 'name': '', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'network_id': 'eee85083-1fd6-4782-8599-dad53fcc3b94', 'ip_version': 4, 'cidr': '132.91.104.64/26', 'allocation_pools': [{'start': '132.91.104.66', 'end': '132.91.104.126'}], 'gateway_ip': '132.91.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.91.104.66', 'tags': [], 'project_id': '11fd180a3b3f43c28b980f4f6817e41e'}}
2026-03-05 02:28:29,778 - INFO - Created VN ctest-vn-74110053
2026-03-05 02:28:29,830 - DEBUG - VN ctest-vn-74110053 UUID is eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:30,144 - DEBUG - Response for create_network : {'network': {'id': '64073d41-65d9-4500-9e72-41159da6f900', 'name': 'ctest-vn-09493767', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'project_id': '11fd180a3b3f43c28b980f4f6817e41e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-vn-09493767'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:28:30,359 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3dbabb1-a04d-4d98-9e88-4af63b1569c9', 'name': '', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'network_id': '64073d41-65d9-4500-9e72-41159da6f900', 'ip_version': 4, 'cidr': '45.196.27.128/26', 'allocation_pools': [{'start': '45.196.27.130', 'end': '45.196.27.190'}], 'gateway_ip': '45.196.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.196.27.130', 'tags': [], 'project_id': '11fd180a3b3f43c28b980f4f6817e41e'}}
2026-03-05 02:28:30,375 - INFO - Created VN ctest-vn-09493767
2026-03-05 02:28:30,426 - DEBUG - VN ctest-vn-09493767 UUID is 64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:30,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053, 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-33626798:ctest-vn-09493767, 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-05 02:28:30,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eee85083-1fd6-4782-8599-dad53fcc3b94', 'name': 'ctest-vn-74110053', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'project_id': '11fd180a3b3f43c28b980f4f6817e41e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6da2b12e-8cae-4517-a421-ffb044a92975'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-vn-74110053'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-policy-allow-all-64981497']], 'subnet_ipam': [{'subnet_cidr': '132.91.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:28:31,147 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64073d41-65d9-4500-9e72-41159da6f900', 'name': 'ctest-vn-09493767', 'tenant_id': '11fd180a3b3f43c28b980f4f6817e41e', 'project_id': '11fd180a3b3f43c28b980f4f6817e41e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3dbabb1-a04d-4d98-9e88-4af63b1569c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-vn-09493767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-policy-allow-all-64981497']], 'subnet_ipam': [{'subnet_cidr': '45.196.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:28:31,306 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-05 02:28:31,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-05 02:28:31,927 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0
2026-03-05 02:28:31,939 - DEBUG - Requesting: http://10.0.0.38:8082/project/11fd180a-3b3f-43c2-8b98-0f4f6817e41e
2026-03-05 02:28:32,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f9dc68c9-e41e-44c8-8639-6198ac6a6dfa
2026-03-05 02:28:32,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f9dc68c9-e41e-44c8-8639-6198ac6a6dfa
2026-03-05 02:28:32,054 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1394d508-8e88-421a-8d25-422b906be3c4
2026-03-05 02:28:32,061 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 02:28:32,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f9dc68c9-e41e-44c8-8639-6198ac6a6dfa
2026-03-05 02:28:32,088 - INFO - Verified VN network id 10 for VN eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,088 - INFO - Verifications in API Server for VN ctest-vn-74110053 passed
2026-03-05 02:28:32,088 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,097 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f9dc68c9-e41e-44c8-8639-6198ac6a6dfa
2026-03-05 02:28:32,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f9dc68c9-e41e-44c8-8639-6198ac6a6dfa
2026-03-05 02:28:32,115 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1394d508-8e88-421a-8d25-422b906be3c4
2026-03-05 02:28:32,127 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33626798', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17215098099728795522', 'uuid-lslong': '9626966287914384276'}, 'enable': 'true', 'created': '2026-03-05T02:28:29', 'last-modified': '2026-03-05T02:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281630'}
2026-03-05 02:28:32,133 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 02:28:32,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74110053 passed
2026-03-05 02:28:32,133 - DEBUG - ====Verifying policy data for ctest-vn-74110053 in API_Server ======
2026-03-05 02:28:32,133 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-05 02:28:32,138 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0
2026-03-05 02:28:32,148 - DEBUG - Requesting: http://10.0.0.38:8082/project/11fd180a-3b3f-43c2-8b98-0f4f6817e41e
2026-03-05 02:28:32,224 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/eee85083-1fd6-4782-8599-dad53fcc3b94
2026-03-05 02:28:32,243 - DEBUG - ==>Verifying data for policy with id: f4b3754e-4aff-4f40-81cb-2b80b261f16b, fqn: ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-policy-allow-all-64981497']
2026-03-05 02:28:32,243 - INFO - VN ctest-vn-74110053 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 02:28:32,243 - DEBUG - Verifying the vn in opserver
2026-03-05 02:28:32,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053 virtual network link through opserver 10.0.0.38
2026-03-05 02:28:32,244 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-05 02:28:32,564 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-05 02:28:32,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053?flat'}
2026-03-05 02:28:32,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-74110053 is found in opserver
2026-03-05 02:28:32,656 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 02:28:32,660 - DEBUG - VRF ids for VN ctest-vn-74110053: {}
2026-03-05 02:28:32,660 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-05 02:28:32,666 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0
2026-03-05 02:28:32,676 - DEBUG - Requesting: http://10.0.0.38:8082/project/11fd180a-3b3f-43c2-8b98-0f4f6817e41e
2026-03-05 02:28:32,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,755 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6ff5458-0805-49b9-a77c-823cbb814851
2026-03-05 02:28:32,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6ff5458-0805-49b9-a77c-823cbb814851
2026-03-05 02:28:32,778 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d32c123f-ca23-4938-bb8c-62ca5bc4ffd1
2026-03-05 02:28:32,784 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 02:28:32,784 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,792 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6ff5458-0805-49b9-a77c-823cbb814851
2026-03-05 02:28:32,807 - INFO - Verified VN network id 11 for VN 64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,807 - INFO - Verifications in API Server for VN ctest-vn-09493767 passed
2026-03-05 02:28:32,807 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,818 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6ff5458-0805-49b9-a77c-823cbb814851
2026-03-05 02:28:32,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6ff5458-0805-49b9-a77c-823cbb814851
2026-03-05 02:28:32,831 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d32c123f-ca23-4938-bb8c-62ca5bc4ffd1
2026-03-05 02:28:32,844 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-09493767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33626798', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7207797079720674560', 'uuid-lslong': '11417259566432712960'}, 'enable': 'true', 'created': '2026-03-05T02:28:30', 'last-modified': '2026-03-05T02:28:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.772467'}
2026-03-05 02:28:32,850 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 02:28:32,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09493767 passed
2026-03-05 02:28:32,850 - DEBUG - ====Verifying policy data for ctest-vn-09493767 in API_Server ======
2026-03-05 02:28:32,850 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-05 02:28:32,855 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0
2026-03-05 02:28:32,866 - DEBUG - Requesting: http://10.0.0.38:8082/project/11fd180a-3b3f-43c2-8b98-0f4f6817e41e
2026-03-05 02:28:32,936 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/64073d41-65d9-4500-9e72-41159da6f900
2026-03-05 02:28:32,946 - DEBUG - ==>Verifying data for policy with id: f4b3754e-4aff-4f40-81cb-2b80b261f16b, fqn: ['default-domain', 'ctest-TestBasicPolicy-33626798', 'ctest-policy-allow-all-64981497']
2026-03-05 02:28:32,946 - INFO - VN ctest-vn-09493767 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 02:28:32,946 - DEBUG - Verifying the vn in opserver
2026-03-05 02:28:32,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-09493767 virtual network link through opserver 10.0.0.38
2026-03-05 02:28:32,946 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-05 02:28:32,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-09493767', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-09493767?flat'}
2026-03-05 02:28:32,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33626798:ctest-vn-09493767 is found in opserver
2026-03-05 02:28:32,965 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 02:28:32,969 - DEBUG - VRF ids for VN ctest-vn-09493767: {}
2026-03-05 02:28:33,026 - DEBUG - Services list from nova: [