2026-07-18 15:38:28,757 - INFO - Domain Default found not creating
2026-07-18 15:38:28,929 - INFO - Project ctest-TestBasicPolicy-24263247 not found, creating it
2026-07-18 15:38:29,427 - INFO - Created Project:ctest-TestBasicPolicy-24263247, ID : 44bc4976-964f-494c-a2ef-476b45fe5d24
2026-07-18 15:38:31,095 - INFO - ================================================================================
2026-07-18 15:38:31,095 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 15:38:31,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-07-18 15:38:31,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-07-18 15:38:31,353 - INFO - Initial checks done. Running the testcase now
2026-07-18 15:38:31,353 - INFO -
2026-07-18 15:38:31,956 - DEBUG - Response for create_network : {'network': {'id': '7b9d0afe-1eea-4dd4-8c72-dca7754a612b', 'name': 'ctest-vn-01288908', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'project_id': '44bc4976964f494ca2ef476b45fe5d24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-vn-01288908'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:38:32,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '33079227-3c1a-4c5a-94b5-274226506e48', 'name': '', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'network_id': '7b9d0afe-1eea-4dd4-8c72-dca7754a612b', 'ip_version': 4, 'cidr': '204.64.29.0/26', 'allocation_pools': [{'start': '204.64.29.2', 'end': '204.64.29.62'}], 'gateway_ip': '204.64.29.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.64.29.2', 'tags': [], 'project_id': '44bc4976964f494ca2ef476b45fe5d24'}}
2026-07-18 15:38:32,180 - INFO - Created VN ctest-vn-01288908
2026-07-18 15:38:32,238 - DEBUG - VN ctest-vn-01288908 UUID is 7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:32,582 - DEBUG - Response for create_network : {'network': {'id': '9578348e-82d8-4198-afcf-7e5336dc03e7', 'name': 'ctest-vn-11784994', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'project_id': '44bc4976964f494ca2ef476b45fe5d24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-vn-11784994'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:38:32,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '46a18a12-4aea-4c0d-b9f7-25f546728145', 'name': '', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'network_id': '9578348e-82d8-4198-afcf-7e5336dc03e7', 'ip_version': 4, 'cidr': '59.128.190.128/26', 'allocation_pools': [{'start': '59.128.190.130', 'end': '59.128.190.190'}], 'gateway_ip': '59.128.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.128.190.130', 'tags': [], 'project_id': '44bc4976964f494ca2ef476b45fe5d24'}}
2026-07-18 15:38:32,768 - INFO - Created VN ctest-vn-11784994
2026-07-18 15:38:32,822 - DEBUG - VN ctest-vn-11784994 UUID is 9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:32,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908, 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-24263247:ctest-vn-11784994, 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-07-18 15:38:33,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b9d0afe-1eea-4dd4-8c72-dca7754a612b', 'name': 'ctest-vn-01288908', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'project_id': '44bc4976964f494ca2ef476b45fe5d24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33079227-3c1a-4c5a-94b5-274226506e48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-vn-01288908'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-policy-allow-all-59269507']], 'subnet_ipam': [{'subnet_cidr': '204.64.29.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:38:33,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9578348e-82d8-4198-afcf-7e5336dc03e7', 'name': 'ctest-vn-11784994', 'tenant_id': '44bc4976964f494ca2ef476b45fe5d24', 'project_id': '44bc4976964f494ca2ef476b45fe5d24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46a18a12-4aea-4c0d-b9f7-25f546728145'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-vn-11784994'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-policy-allow-all-59269507']], 'subnet_ipam': [{'subnet_cidr': '59.128.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:38:33,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-18 15:38:34,001 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-18 15:38:34,033 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956
2026-07-18 15:38:34,047 - DEBUG - Requesting: http://10.0.0.38:8082/project/44bc4976-964f-494c-a2ef-476b45fe5d24
2026-07-18 15:38:34,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,138 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0264deb7-33fe-4228-90a4-e5d83dfa3c15
2026-07-18 15:38:34,154 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0264deb7-33fe-4228-90a4-e5d83dfa3c15
2026-07-18 15:38:34,160 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8266203-6970-47e0-9f5b-532ea606854f
2026-07-18 15:38:34,168 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:38:34,168 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0264deb7-33fe-4228-90a4-e5d83dfa3c15
2026-07-18 15:38:34,192 - INFO - Verified VN network id 11 for VN 7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,192 - INFO - Verifications in API Server for VN ctest-vn-01288908 passed
2026-07-18 15:38:34,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,201 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0264deb7-33fe-4228-90a4-e5d83dfa3c15
2026-07-18 15:38:34,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0264deb7-33fe-4228-90a4-e5d83dfa3c15
2026-07-18 15:38:34,218 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8266203-6970-47e0-9f5b-532ea606854f
2026-07-18 15:38:34,232 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24263247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8907287724565351892', 'uuid-lslong': '10120393924440383787'}, 'enable': 'true', 'created': '2026-07-18T15:38:31', 'last-modified': '2026-07-18T15:38:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004060'}
2026-07-18 15:38:34,238 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:38:34,238 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01288908 passed
2026-07-18 15:38:34,238 - DEBUG - ====Verifying policy data for ctest-vn-01288908 in API_Server ======
2026-07-18 15:38:34,238 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-18 15:38:34,244 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956
2026-07-18 15:38:34,255 - DEBUG - Requesting: http://10.0.0.38:8082/project/44bc4976-964f-494c-a2ef-476b45fe5d24
2026-07-18 15:38:34,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b9d0afe-1eea-4dd4-8c72-dca7754a612b
2026-07-18 15:38:34,346 - DEBUG - ==>Verifying data for policy with id: 0d9bc911-f6d6-4074-9419-703db6440bec, fqn: ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-policy-allow-all-59269507']
2026-07-18 15:38:34,346 - INFO - VN ctest-vn-01288908 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:38:34,346 - DEBUG - Verifying the vn in opserver
2026-07-18 15:38:34,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908 virtual network link through opserver 10.0.0.38
2026-07-18 15:38:34,346 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-18 15:38:34,678 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-18 15:38:34,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908?flat'}
2026-07-18 15:38:34,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-01288908 is found in opserver
2026-07-18 15:38:34,750 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:38:34,756 - DEBUG - VRF ids for VN ctest-vn-01288908: {}
2026-07-18 15:38:34,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-18 15:38:34,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956
2026-07-18 15:38:34,775 - DEBUG - Requesting: http://10.0.0.38:8082/project/44bc4976-964f-494c-a2ef-476b45fe5d24
2026-07-18 15:38:34,857 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:34,870 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:34,880 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbb4287-1fa4-47dc-8f36-d10cc872a915
2026-07-18 15:38:34,888 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbb4287-1fa4-47dc-8f36-d10cc872a915
2026-07-18 15:38:34,895 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f0cd1bdc-d287-4957-b746-b6c670dc4f89
2026-07-18 15:38:34,902 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:38:34,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:34,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbb4287-1fa4-47dc-8f36-d10cc872a915
2026-07-18 15:38:34,931 - INFO - Verified VN network id 12 for VN 9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:34,931 - INFO - Verifications in API Server for VN ctest-vn-11784994 passed
2026-07-18 15:38:34,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:34,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbb4287-1fa4-47dc-8f36-d10cc872a915
2026-07-18 15:38:34,949 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbb4287-1fa4-47dc-8f36-d10cc872a915
2026-07-18 15:38:34,956 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f0cd1bdc-d287-4957-b746-b6c670dc4f89
2026-07-18 15:38:34,968 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-11784994', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24263247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10770416295541752216', 'uuid-lslong': '12668483172684268519'}, 'enable': 'true', 'created': '2026-07-18T15:38:32', 'last-modified': '2026-07-18T15:38:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490820'}
2026-07-18 15:38:34,974 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:38:34,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11784994 passed
2026-07-18 15:38:34,974 - DEBUG - ====Verifying policy data for ctest-vn-11784994 in API_Server ======
2026-07-18 15:38:34,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-18 15:38:34,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956
2026-07-18 15:38:34,992 - DEBUG - Requesting: http://10.0.0.38:8082/project/44bc4976-964f-494c-a2ef-476b45fe5d24
2026-07-18 15:38:35,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9578348e-82d8-4198-afcf-7e5336dc03e7
2026-07-18 15:38:35,079 - DEBUG - ==>Verifying data for policy with id: 0d9bc911-f6d6-4074-9419-703db6440bec, fqn: ['default-domain', 'ctest-TestBasicPolicy-24263247', 'ctest-policy-allow-all-59269507']
2026-07-18 15:38:35,079 - INFO - VN ctest-vn-11784994 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:38:35,079 - DEBUG - Verifying the vn in opserver
2026-07-18 15:38:35,079 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-11784994 virtual network link through opserver 10.0.0.38
2026-07-18 15:38:35,079 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-18 15:38:35,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-11784994', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-11784994?flat'}
2026-07-18 15:38:35,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24263247:ctest-vn-11784994 is found in opserver
2026-07-18 15:38:35,100 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:38:35,105 - DEBUG - VRF ids for VN ctest-vn-11784994: {}
2026-07-18 15:38:35,166 - DEBUG - Services list from nova: [