2026-08-20 13:51:58,079 - INFO - Domain Default found not creating
2026-08-20 13:51:58,235 - INFO - Project ctest-TestBasicPolicy-37432047 not found, creating it
2026-08-20 13:51:58,690 - INFO - Created Project:ctest-TestBasicPolicy-37432047, ID : 2277952a-cd3b-4767-a705-7c870ab27f1e
2026-08-20 13:52:00,202 - INFO - ================================================================================
2026-08-20 13:52:00,202 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 13:52:00,202 - 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-08-20 13:52:00,467 - DEBUG - Nothing to compare xmpp stats {'10.0.0.176': {'10.20.0.14': '0'}} with
2026-08-20 13:52:00,468 - INFO - Initial checks done. Running the testcase now
2026-08-20 13:52:00,468 - INFO -
2026-08-20 13:52:01,059 - DEBUG - Response for create_network : {'network': {'id': 'e41cbf2d-f281-4580-8c91-3a6ee4e6302b', 'name': 'ctest-vn-04748663', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'project_id': '2277952acd3b4767a7057c870ab27f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-vn-04748663'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:52:01,229 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb187655-6da0-4419-b65a-4e2bb9343b8c', 'name': '', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'network_id': 'e41cbf2d-f281-4580-8c91-3a6ee4e6302b', 'ip_version': 4, 'cidr': '36.211.107.64/26', 'allocation_pools': [{'start': '36.211.107.66', 'end': '36.211.107.126'}], 'gateway_ip': '36.211.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.211.107.66', 'tags': [], 'project_id': '2277952acd3b4767a7057c870ab27f1e'}}
2026-08-20 13:52:01,247 - INFO - Created VN ctest-vn-04748663
2026-08-20 13:52:01,298 - DEBUG - VN ctest-vn-04748663 UUID is e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:01,581 - DEBUG - Response for create_network : {'network': {'id': 'e8a872fd-18ae-458f-8a2c-051c88c8b773', 'name': 'ctest-vn-75030174', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'project_id': '2277952acd3b4767a7057c870ab27f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-vn-75030174'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:52:01,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '83b839f0-cad6-49be-a609-22c306f4e0f0', 'name': '', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'network_id': 'e8a872fd-18ae-458f-8a2c-051c88c8b773', 'ip_version': 4, 'cidr': '23.80.11.192/26', 'allocation_pools': [{'start': '23.80.11.194', 'end': '23.80.11.254'}], 'gateway_ip': '23.80.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.80.11.194', 'tags': [], 'project_id': '2277952acd3b4767a7057c870ab27f1e'}}
2026-08-20 13:52:01,760 - INFO - Created VN ctest-vn-75030174
2026-08-20 13:52:01,814 - DEBUG - VN ctest-vn-75030174 UUID is e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:01,931 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663, 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-37432047:ctest-vn-75030174, 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-08-20 13:52:02,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e41cbf2d-f281-4580-8c91-3a6ee4e6302b', 'name': 'ctest-vn-04748663', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'project_id': '2277952acd3b4767a7057c870ab27f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb187655-6da0-4419-b65a-4e2bb9343b8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-vn-04748663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-policy-allow-all-82784804']], 'subnet_ipam': [{'subnet_cidr': '36.211.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:52:02,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8a872fd-18ae-458f-8a2c-051c88c8b773', 'name': 'ctest-vn-75030174', 'tenant_id': '2277952acd3b4767a7057c870ab27f1e', 'project_id': '2277952acd3b4767a7057c870ab27f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83b839f0-cad6-49be-a609-22c306f4e0f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-vn-75030174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-policy-allow-all-82784804']], 'subnet_ipam': [{'subnet_cidr': '23.80.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:52:02,634 - DEBUG - Requesting: http://10.0.0.176:8082/domains
2026-08-20 13:52:02,958 - DEBUG - Requesting: http://10.0.0.176:8082/domains
2026-08-20 13:52:02,986 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4
2026-08-20 13:52:03,000 - DEBUG - Requesting: http://10.0.0.176:8082/project/2277952a-cd3b-4767-a705-7c870ab27f1e
2026-08-20 13:52:03,082 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,097 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,107 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/150b7190-629b-41e5-8502-e4938ece6def
2026-08-20 13:52:03,115 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/150b7190-629b-41e5-8502-e4938ece6def
2026-08-20 13:52:03,123 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/81db48d2-8f70-4225-a589-d8f9c3cf5731
2026-08-20 13:52:03,130 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 13:52:03,130 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,138 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/150b7190-629b-41e5-8502-e4938ece6def
2026-08-20 13:52:03,152 - INFO - Verified VN network id 10 for VN e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,152 - INFO - Verifications in API Server for VN ctest-vn-04748663 passed
2026-08-20 13:52:03,152 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,161 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/150b7190-629b-41e5-8502-e4938ece6def
2026-08-20 13:52:03,168 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/150b7190-629b-41e5-8502-e4938ece6def
2026-08-20 13:52:03,175 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/81db48d2-8f70-4225-a589-d8f9c3cf5731
2026-08-20 13:52:03,187 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37432047', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16437222944058459520', 'uuid-lslong': '10128941284894060587'}, 'enable': 'true', 'created': '2026-08-20T13:52:01', 'last-modified': '2026-08-20T13:52:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976714'}
2026-08-20 13:52:03,195 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 13:52:03,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04748663 passed
2026-08-20 13:52:03,195 - DEBUG - ====Verifying policy data for ctest-vn-04748663 in API_Server ======
2026-08-20 13:52:03,195 - DEBUG - Requesting: http://10.0.0.176:8082/domains
2026-08-20 13:52:03,201 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4
2026-08-20 13:52:03,211 - DEBUG - Requesting: http://10.0.0.176:8082/project/2277952a-cd3b-4767-a705-7c870ab27f1e
2026-08-20 13:52:03,338 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e41cbf2d-f281-4580-8c91-3a6ee4e6302b
2026-08-20 13:52:03,349 - DEBUG - ==>Verifying data for policy with id: a93b4cd2-8869-4368-b82b-75246359bfb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-policy-allow-all-82784804']
2026-08-20 13:52:03,349 - INFO - VN ctest-vn-04748663 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 13:52:03,349 - DEBUG - Verifying the vn in opserver
2026-08-20 13:52:03,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663 virtual network link through opserver 10.0.0.176
2026-08-20 13:52:03,350 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks
2026-08-20 13:52:03,674 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks
2026-08-20 13:52:03,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663?flat'}
2026-08-20 13:52:03,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-04748663 is found in opserver
2026-08-20 13:52:03,741 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 13:52:03,746 - DEBUG - VRF ids for VN ctest-vn-04748663: {}
2026-08-20 13:52:03,746 - DEBUG - Requesting: http://10.0.0.176:8082/domains
2026-08-20 13:52:03,751 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4
2026-08-20 13:52:03,762 - DEBUG - Requesting: http://10.0.0.176:8082/project/2277952a-cd3b-4767-a705-7c870ab27f1e
2026-08-20 13:52:03,837 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:03,851 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:03,860 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/3e215154-f857-44b1-ab48-a14dc6b5df3b
2026-08-20 13:52:03,867 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/3e215154-f857-44b1-ab48-a14dc6b5df3b
2026-08-20 13:52:03,874 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/54f20e9e-e986-4b7e-be2b-5c26b5456db0
2026-08-20 13:52:03,880 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 13:52:03,880 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:03,892 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/3e215154-f857-44b1-ab48-a14dc6b5df3b
2026-08-20 13:52:03,909 - INFO - Verified VN network id 11 for VN e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:03,909 - INFO - Verifications in API Server for VN ctest-vn-75030174 passed
2026-08-20 13:52:03,909 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:03,920 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/3e215154-f857-44b1-ab48-a14dc6b5df3b
2026-08-20 13:52:03,926 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/3e215154-f857-44b1-ab48-a14dc6b5df3b
2026-08-20 13:52:03,933 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/54f20e9e-e986-4b7e-be2b-5c26b5456db0
2026-08-20 13:52:03,944 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-75030174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37432047', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16764776044253037967', 'uuid-lslong': '9956338496321402739'}, 'enable': 'true', 'created': '2026-08-20T13:52:01', 'last-modified': '2026-08-20T13:52:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.501118'}
2026-08-20 13:52:03,950 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 13:52:03,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75030174 passed
2026-08-20 13:52:03,950 - DEBUG - ====Verifying policy data for ctest-vn-75030174 in API_Server ======
2026-08-20 13:52:03,950 - DEBUG - Requesting: http://10.0.0.176:8082/domains
2026-08-20 13:52:03,955 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4
2026-08-20 13:52:03,965 - DEBUG - Requesting: http://10.0.0.176:8082/project/2277952a-cd3b-4767-a705-7c870ab27f1e
2026-08-20 13:52:04,039 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/e8a872fd-18ae-458f-8a2c-051c88c8b773
2026-08-20 13:52:04,049 - DEBUG - ==>Verifying data for policy with id: a93b4cd2-8869-4368-b82b-75246359bfb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-37432047', 'ctest-policy-allow-all-82784804']
2026-08-20 13:52:04,049 - INFO - VN ctest-vn-75030174 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 13:52:04,049 - DEBUG - Verifying the vn in opserver
2026-08-20 13:52:04,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-75030174 virtual network link through opserver 10.0.0.176
2026-08-20 13:52:04,049 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks
2026-08-20 13:52:04,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-75030174', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-75030174?flat'}
2026-08-20 13:52:04,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37432047:ctest-vn-75030174 is found in opserver
2026-08-20 13:52:04,074 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 13:52:04,080 - DEBUG - VRF ids for VN ctest-vn-75030174: {}
2026-08-20 13:52:04,140 - DEBUG - Services list from nova: [