2026-01-22 10:25:26,112 - INFO - Domain Default found not creating
2026-01-22 10:25:26,321 - INFO - Project ctest-TestBasicPolicy-26937222 not found, creating it
2026-01-22 10:25:26,822 - INFO - Created Project:ctest-TestBasicPolicy-26937222, ID : d5be7e93-fef9-4fc2-9d5e-129fc3740ec5
2026-01-22 10:25:28,501 - INFO - ================================================================================
2026-01-22 10:25:28,501 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-22 10:25:28,501 - 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-01-22 10:25:28,776 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with
2026-01-22 10:25:28,776 - INFO - Initial checks done. Running the testcase now
2026-01-22 10:25:28,776 - INFO -
2026-01-22 10:25:29,386 - DEBUG - Response for create_network : {'network': {'id': '1663cf84-ccb1-419c-8782-721abb9c58fd', 'name': 'ctest-vn-30317999', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-vn-30317999'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 10:25:29,576 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a64085e3-8ddd-45b0-9188-f767fe4eda96', 'name': '', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'network_id': '1663cf84-ccb1-419c-8782-721abb9c58fd', 'ip_version': 4, 'cidr': '37.135.14.64/26', 'allocation_pools': [{'start': '37.135.14.66', 'end': '37.135.14.126'}], 'gateway_ip': '37.135.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.135.14.66', 'tags': [], 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5'}}
2026-01-22 10:25:29,598 - INFO - Created VN ctest-vn-30317999
2026-01-22 10:25:29,654 - DEBUG - VN ctest-vn-30317999 UUID is 1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:29,983 - DEBUG - Response for create_network : {'network': {'id': 'f325ffc2-2a87-4047-9c76-15a35b08df07', 'name': 'ctest-vn-20260933', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-vn-20260933'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 10:25:30,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '98d47ff7-b98d-40b2-90e4-6fb32df3ff97', 'name': '', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'network_id': 'f325ffc2-2a87-4047-9c76-15a35b08df07', 'ip_version': 4, 'cidr': '113.141.85.128/26', 'allocation_pools': [{'start': '113.141.85.130', 'end': '113.141.85.190'}], 'gateway_ip': '113.141.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.141.85.130', 'tags': [], 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5'}}
2026-01-22 10:25:30,203 - INFO - Created VN ctest-vn-20260933
2026-01-22 10:25:30,263 - DEBUG - VN ctest-vn-20260933 UUID is f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:30,381 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999, 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-26937222:ctest-vn-20260933, 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-01-22 10:25:30,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1663cf84-ccb1-419c-8782-721abb9c58fd', 'name': 'ctest-vn-30317999', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a64085e3-8ddd-45b0-9188-f767fe4eda96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-vn-30317999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-policy-allow-all-18377621']], 'subnet_ipam': [{'subnet_cidr': '37.135.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 10:25:30,931 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f325ffc2-2a87-4047-9c76-15a35b08df07', 'name': 'ctest-vn-20260933', 'tenant_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'project_id': 'd5be7e93fef94fc29d5e129fc3740ec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98d47ff7-b98d-40b2-90e4-6fb32df3ff97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-vn-20260933'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-policy-allow-all-18377621']], 'subnet_ipam': [{'subnet_cidr': '113.141.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 10:25:31,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 10:25:31,397 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 10:25:31,439 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2
2026-01-22 10:25:31,453 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5be7e93-fef9-4fc2-9d5e-129fc3740ec5
2026-01-22 10:25:31,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,538 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62b442d0-9bed-49c8-a06b-ca79e1eb6d70
2026-01-22 10:25:31,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62b442d0-9bed-49c8-a06b-ca79e1eb6d70
2026-01-22 10:25:31,565 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7f273c75-9b9f-4b56-a64c-7ba827918395
2026-01-22 10:25:31,572 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 10:25:31,572 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,584 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62b442d0-9bed-49c8-a06b-ca79e1eb6d70
2026-01-22 10:25:31,604 - INFO - Verified VN network id 11 for VN 1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,605 - INFO - Verifications in API Server for VN ctest-vn-30317999 passed
2026-01-22 10:25:31,605 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,615 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62b442d0-9bed-49c8-a06b-ca79e1eb6d70
2026-01-22 10:25:31,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62b442d0-9bed-49c8-a06b-ca79e1eb6d70
2026-01-22 10:25:31,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7f273c75-9b9f-4b56-a64c-7ba827918395
2026-01-22 10:25:31,642 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26937222', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1613361260805570972', 'uuid-lslong': '9764492401234958589'}, 'enable': 'true', 'created': '2026-01-22T10:25:29', 'last-modified': '2026-01-22T10:25:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980381'}
2026-01-22 10:25:31,649 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 10:25:31,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30317999 passed
2026-01-22 10:25:31,649 - DEBUG - ====Verifying policy data for ctest-vn-30317999 in API_Server ======
2026-01-22 10:25:31,649 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 10:25:31,655 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2
2026-01-22 10:25:31,667 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5be7e93-fef9-4fc2-9d5e-129fc3740ec5
2026-01-22 10:25:31,741 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1663cf84-ccb1-419c-8782-721abb9c58fd
2026-01-22 10:25:31,753 - DEBUG - ==>Verifying data for policy with id: 850be095-cb6f-4d65-bf9d-2cfae2405901, fqn: ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-policy-allow-all-18377621']
2026-01-22 10:25:31,753 - INFO - VN ctest-vn-30317999 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 10:25:31,753 - DEBUG - Verifying the vn in opserver
2026-01-22 10:25:31,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999 virtual network link through opserver 10.0.0.38
2026-01-22 10:25:31,753 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 10:25:32,064 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 10:25:32,142 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999?flat'}
2026-01-22 10:25:32,142 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-30317999 is found in opserver
2026-01-22 10:25:32,153 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 10:25:32,158 - DEBUG - VRF ids for VN ctest-vn-30317999: {}
2026-01-22 10:25:32,159 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 10:25:32,164 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2
2026-01-22 10:25:32,178 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5be7e93-fef9-4fc2-9d5e-129fc3740ec5
2026-01-22 10:25:32,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75b02ff4-bded-499d-b5a3-fa42657d46e7
2026-01-22 10:25:32,284 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75b02ff4-bded-499d-b5a3-fa42657d46e7
2026-01-22 10:25:32,291 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db4d5822-9cf2-4a8c-bbc2-324195961f14
2026-01-22 10:25:32,301 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 10:25:32,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,312 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75b02ff4-bded-499d-b5a3-fa42657d46e7
2026-01-22 10:25:32,328 - INFO - Verified VN network id 12 for VN f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,328 - INFO - Verifications in API Server for VN ctest-vn-20260933 passed
2026-01-22 10:25:32,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75b02ff4-bded-499d-b5a3-fa42657d46e7
2026-01-22 10:25:32,347 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75b02ff4-bded-499d-b5a3-fa42657d46e7
2026-01-22 10:25:32,355 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db4d5822-9cf2-4a8c-bbc2-324195961f14
2026-01-22 10:25:32,369 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-20260933', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26937222', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17520691134757027911', 'uuid-lslong': '11274222508519776007'}, 'enable': 'true', 'created': '2026-01-22T10:25:29', 'last-modified': '2026-01-22T10:25:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463768'}
2026-01-22 10:25:32,375 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 10:25:32,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20260933 passed
2026-01-22 10:25:32,376 - DEBUG - ====Verifying policy data for ctest-vn-20260933 in API_Server ======
2026-01-22 10:25:32,376 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 10:25:32,382 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2
2026-01-22 10:25:32,397 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5be7e93-fef9-4fc2-9d5e-129fc3740ec5
2026-01-22 10:25:32,475 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f325ffc2-2a87-4047-9c76-15a35b08df07
2026-01-22 10:25:32,485 - DEBUG - ==>Verifying data for policy with id: 850be095-cb6f-4d65-bf9d-2cfae2405901, fqn: ['default-domain', 'ctest-TestBasicPolicy-26937222', 'ctest-policy-allow-all-18377621']
2026-01-22 10:25:32,485 - INFO - VN ctest-vn-20260933 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 10:25:32,485 - DEBUG - Verifying the vn in opserver
2026-01-22 10:25:32,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-20260933 virtual network link through opserver 10.0.0.38
2026-01-22 10:25:32,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 10:25:32,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-20260933', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-20260933?flat'}
2026-01-22 10:25:32,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26937222:ctest-vn-20260933 is found in opserver
2026-01-22 10:25:32,508 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 10:25:32,514 - DEBUG - VRF ids for VN ctest-vn-20260933: {}
2026-01-22 10:25:32,581 - DEBUG - Services list from nova: [