2026-09-21 13:01:05,334 - INFO - Domain Default found not creating
2026-09-21 13:01:05,549 - INFO - Project ctest-TestBasicPolicy-02608824 not found, creating it
2026-09-21 13:01:06,099 - INFO - Created Project:ctest-TestBasicPolicy-02608824, ID : 44d5a3b5-b30c-4f8e-94fd-76334c5be539
2026-09-21 13:01:07,910 - INFO - ================================================================================
2026-09-21 13:01:07,910 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-21 13:01:07,910 - 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-09-21 13:01:08,185 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-09-21 13:01:08,185 - INFO - Initial checks done. Running the testcase now
2026-09-21 13:01:08,185 - INFO -
2026-09-21 13:01:08,880 - DEBUG - Response for create_network : {'network': {'id': 'fcda5b17-afda-4f5f-8837-f94c1906daf9', 'name': 'ctest-vn-75913367', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-vn-75913367'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 13:01:09,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f51c611-062e-4398-a3c1-8f42227c1324', 'name': '', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'network_id': 'fcda5b17-afda-4f5f-8837-f94c1906daf9', 'ip_version': 4, 'cidr': '186.95.135.64/26', 'allocation_pools': [{'start': '186.95.135.66', 'end': '186.95.135.126'}], 'gateway_ip': '186.95.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.95.135.66', 'tags': [], 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539'}}
2026-09-21 13:01:09,093 - INFO - Created VN ctest-vn-75913367
2026-09-21 13:01:09,147 - DEBUG - VN ctest-vn-75913367 UUID is fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:09,475 - DEBUG - Response for create_network : {'network': {'id': 'd880be52-0577-4fa5-a0cc-d18a75f60465', 'name': 'ctest-vn-10743875', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-vn-10743875'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 13:01:09,722 - DEBUG - Response for create_subnet : {'subnet': {'id': '912bd961-d60e-43dd-a6ab-008057e95d87', 'name': '', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'network_id': 'd880be52-0577-4fa5-a0cc-d18a75f60465', 'ip_version': 4, 'cidr': '33.40.134.0/26', 'allocation_pools': [{'start': '33.40.134.2', 'end': '33.40.134.62'}], 'gateway_ip': '33.40.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.40.134.2', 'tags': [], 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539'}}
2026-09-21 13:01:09,743 - INFO - Created VN ctest-vn-10743875
2026-09-21 13:01:09,799 - DEBUG - VN ctest-vn-10743875 UUID is d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:09,920 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367, 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-02608824:ctest-vn-10743875, 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-09-21 13:01:10,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcda5b17-afda-4f5f-8837-f94c1906daf9', 'name': 'ctest-vn-75913367', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0f51c611-062e-4398-a3c1-8f42227c1324'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-vn-75913367'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-policy-allow-all-78912560']], 'subnet_ipam': [{'subnet_cidr': '186.95.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 13:01:10,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd880be52-0577-4fa5-a0cc-d18a75f60465', 'name': 'ctest-vn-10743875', 'tenant_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'project_id': '44d5a3b5b30c4f8e94fd76334c5be539', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['912bd961-d60e-43dd-a6ab-008057e95d87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-vn-10743875'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-policy-allow-all-78912560']], 'subnet_ipam': [{'subnet_cidr': '33.40.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 13:01:10,686 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-21 13:01:11,070 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-21 13:01:11,104 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54
2026-09-21 13:01:11,119 - DEBUG - Requesting: http://10.0.0.50:8082/project/44d5a3b5-b30c-4f8e-94fd-76334c5be539
2026-09-21 13:01:11,210 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,229 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/445cdc8b-249a-4a6c-a651-d67dff526251
2026-09-21 13:01:11,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/445cdc8b-249a-4a6c-a651-d67dff526251
2026-09-21 13:01:11,264 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3fa64de3-8771-4a67-970c-978bb9c732b6
2026-09-21 13:01:11,273 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 13:01:11,273 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,285 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/445cdc8b-249a-4a6c-a651-d67dff526251
2026-09-21 13:01:11,303 - INFO - Verified VN network id 12 for VN fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,303 - INFO - Verifications in API Server for VN ctest-vn-75913367 passed
2026-09-21 13:01:11,303 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,314 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/445cdc8b-249a-4a6c-a651-d67dff526251
2026-09-21 13:01:11,324 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/445cdc8b-249a-4a6c-a651-d67dff526251
2026-09-21 13:01:11,337 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3fa64de3-8771-4a67-970c-978bb9c732b6
2026-09-21 13:01:11,354 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02608824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18219975399773458271', 'uuid-lslong': '9815588018109995769'}, 'enable': 'true', 'created': '2026-09-21T13:01:08', 'last-modified': '2026-09-21T13:01:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129158'}
2026-09-21 13:01:11,362 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 13:01:11,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75913367 passed
2026-09-21 13:01:11,363 - DEBUG - ====Verifying policy data for ctest-vn-75913367 in API_Server ======
2026-09-21 13:01:11,363 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-21 13:01:11,369 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54
2026-09-21 13:01:11,382 - DEBUG - Requesting: http://10.0.0.50:8082/project/44d5a3b5-b30c-4f8e-94fd-76334c5be539
2026-09-21 13:01:11,468 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fcda5b17-afda-4f5f-8837-f94c1906daf9
2026-09-21 13:01:11,480 - DEBUG - ==>Verifying data for policy with id: cd1580cd-3071-4933-97a1-2bd1d1274567, fqn: ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-policy-allow-all-78912560']
2026-09-21 13:01:11,480 - INFO - VN ctest-vn-75913367 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 13:01:11,480 - DEBUG - Verifying the vn in opserver
2026-09-21 13:01:11,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367 virtual network link through opserver 10.0.0.50
2026-09-21 13:01:11,480 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-21 13:01:11,880 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-21 13:01:11,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367?flat'}
2026-09-21 13:01:11,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-75913367 is found in opserver
2026-09-21 13:01:11,957 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 13:01:11,963 - DEBUG - VRF ids for VN ctest-vn-75913367: {}
2026-09-21 13:01:11,963 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-21 13:01:11,969 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54
2026-09-21 13:01:11,982 - DEBUG - Requesting: http://10.0.0.50:8082/project/44d5a3b5-b30c-4f8e-94fd-76334c5be539
2026-09-21 13:01:12,065 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,093 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/206b0851-4937-4cd4-b0f1-48802e51854b
2026-09-21 13:01:12,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/206b0851-4937-4cd4-b0f1-48802e51854b
2026-09-21 13:01:12,111 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0562bef4-2176-4227-acae-895ac8438f68
2026-09-21 13:01:12,119 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 13:01:12,119 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,130 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/206b0851-4937-4cd4-b0f1-48802e51854b
2026-09-21 13:01:12,149 - INFO - Verified VN network id 13 for VN d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,149 - INFO - Verifications in API Server for VN ctest-vn-10743875 passed
2026-09-21 13:01:12,149 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,161 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/206b0851-4937-4cd4-b0f1-48802e51854b
2026-09-21 13:01:12,170 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/206b0851-4937-4cd4-b0f1-48802e51854b
2026-09-21 13:01:12,178 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0562bef4-2176-4227-acae-895ac8438f68
2026-09-21 13:01:12,193 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-10743875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02608824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15600678368699699109', 'uuid-lslong': '11586866333932192869'}, 'enable': 'true', 'created': '2026-09-21T13:01:09', 'last-modified': '2026-09-21T13:01:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.700979'}
2026-09-21 13:01:12,200 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 13:01:12,200 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10743875 passed
2026-09-21 13:01:12,201 - DEBUG - ====Verifying policy data for ctest-vn-10743875 in API_Server ======
2026-09-21 13:01:12,201 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-21 13:01:12,207 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54
2026-09-21 13:01:12,224 - DEBUG - Requesting: http://10.0.0.50:8082/project/44d5a3b5-b30c-4f8e-94fd-76334c5be539
2026-09-21 13:01:12,303 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d880be52-0577-4fa5-a0cc-d18a75f60465
2026-09-21 13:01:12,314 - DEBUG - ==>Verifying data for policy with id: cd1580cd-3071-4933-97a1-2bd1d1274567, fqn: ['default-domain', 'ctest-TestBasicPolicy-02608824', 'ctest-policy-allow-all-78912560']
2026-09-21 13:01:12,314 - INFO - VN ctest-vn-10743875 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 13:01:12,314 - DEBUG - Verifying the vn in opserver
2026-09-21 13:01:12,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-10743875 virtual network link through opserver 10.0.0.50
2026-09-21 13:01:12,314 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-21 13:01:12,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-10743875', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-10743875?flat'}
2026-09-21 13:01:12,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02608824:ctest-vn-10743875 is found in opserver
2026-09-21 13:01:12,341 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 13:01:12,348 - DEBUG - VRF ids for VN ctest-vn-10743875: {}
2026-09-21 13:01:12,422 - DEBUG - Services list from nova: [