2026-08-17 15:44:05,571 - INFO - Domain Default found not creating
2026-08-17 15:44:05,739 - INFO - Project ctest-TestBasicPolicy-22378420 not found, creating it
2026-08-17 15:44:06,240 - INFO - Created Project:ctest-TestBasicPolicy-22378420, ID : 38eed1f0-4525-40dc-9e3d-e112ba949d9c
2026-08-17 15:44:07,949 - INFO - ================================================================================
2026-08-17 15:44:07,949 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-17 15:44:07,949 - 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-17 15:44:08,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-08-17 15:44:08,220 - INFO - Initial checks done. Running the testcase now
2026-08-17 15:44:08,220 - INFO -
2026-08-17 15:44:08,864 - DEBUG - Response for create_network : {'network': {'id': '92f5b4d9-65dc-43db-9ca7-67e710e2a9dc', 'name': 'ctest-vn-84454090', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'project_id': '38eed1f0452540dc9e3de112ba949d9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-vn-84454090'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:44:09,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f3ae48-963c-4638-8a75-030094bc558e', 'name': '', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'network_id': '92f5b4d9-65dc-43db-9ca7-67e710e2a9dc', 'ip_version': 4, 'cidr': '8.175.59.128/26', 'allocation_pools': [{'start': '8.175.59.130', 'end': '8.175.59.190'}], 'gateway_ip': '8.175.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.175.59.130', 'tags': [], 'project_id': '38eed1f0452540dc9e3de112ba949d9c'}}
2026-08-17 15:44:09,110 - INFO - Created VN ctest-vn-84454090
2026-08-17 15:44:09,163 - DEBUG - VN ctest-vn-84454090 UUID is 92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:09,523 - DEBUG - Response for create_network : {'network': {'id': '3a856ec0-38c5-4c27-adb1-731a405649ed', 'name': 'ctest-vn-26502038', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'project_id': '38eed1f0452540dc9e3de112ba949d9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-vn-26502038'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:44:09,768 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b027e1dc-66dc-44e6-8d42-341b485b68fa', 'name': '', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'network_id': '3a856ec0-38c5-4c27-adb1-731a405649ed', 'ip_version': 4, 'cidr': '12.212.6.0/26', 'allocation_pools': [{'start': '12.212.6.2', 'end': '12.212.6.62'}], 'gateway_ip': '12.212.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.212.6.2', 'tags': [], 'project_id': '38eed1f0452540dc9e3de112ba949d9c'}}
2026-08-17 15:44:09,786 - INFO - Created VN ctest-vn-26502038
2026-08-17 15:44:09,838 - DEBUG - VN ctest-vn-26502038 UUID is 3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:09,990 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090, 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-22378420:ctest-vn-26502038, 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-17 15:44:10,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92f5b4d9-65dc-43db-9ca7-67e710e2a9dc', 'name': 'ctest-vn-84454090', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'project_id': '38eed1f0452540dc9e3de112ba949d9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f3ae48-963c-4638-8a75-030094bc558e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-vn-84454090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-policy-allow-all-69364087']], 'subnet_ipam': [{'subnet_cidr': '8.175.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:44:10,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a856ec0-38c5-4c27-adb1-731a405649ed', 'name': 'ctest-vn-26502038', 'tenant_id': '38eed1f0452540dc9e3de112ba949d9c', 'project_id': '38eed1f0452540dc9e3de112ba949d9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b027e1dc-66dc-44e6-8d42-341b485b68fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-vn-26502038'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-policy-allow-all-69364087']], 'subnet_ipam': [{'subnet_cidr': '12.212.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:44:10,730 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-17 15:44:11,092 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-17 15:44:11,120 - DEBUG - Requesting: http://10.0.0.177:8082/domain/46c0095c-2264-4754-b399-bc719d178f53
2026-08-17 15:44:11,134 - DEBUG - Requesting: http://10.0.0.177:8082/project/38eed1f0-4525-40dc-9e3d-e112ba949d9c
2026-08-17 15:44:11,211 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,223 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,233 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a2e42efc-96d7-43de-93ba-4b3da63b2f4e
2026-08-17 15:44:11,241 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a2e42efc-96d7-43de-93ba-4b3da63b2f4e
2026-08-17 15:44:11,248 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8bbbe85e-0fd9-46cf-9f2f-c2b5a7b32f3d
2026-08-17 15:44:11,255 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 15:44:11,255 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,264 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a2e42efc-96d7-43de-93ba-4b3da63b2f4e
2026-08-17 15:44:11,279 - INFO - Verified VN network id 11 for VN 92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,279 - INFO - Verifications in API Server for VN ctest-vn-84454090 passed
2026-08-17 15:44:11,279 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,289 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a2e42efc-96d7-43de-93ba-4b3da63b2f4e
2026-08-17 15:44:11,297 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a2e42efc-96d7-43de-93ba-4b3da63b2f4e
2026-08-17 15:44:11,304 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8bbbe85e-0fd9-46cf-9f2f-c2b5a7b32f3d
2026-08-17 15:44:11,316 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22378420', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10589568944641426395', 'uuid-lslong': '11288105233145833948'}, 'enable': 'true', 'created': '2026-08-17T15:44:08', 'last-modified': '2026-08-17T15:44:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039452'}
2026-08-17 15:44:11,324 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 15:44:11,324 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84454090 passed
2026-08-17 15:44:11,324 - DEBUG - ====Verifying policy data for ctest-vn-84454090 in API_Server ======
2026-08-17 15:44:11,324 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-17 15:44:11,330 - DEBUG - Requesting: http://10.0.0.177:8082/domain/46c0095c-2264-4754-b399-bc719d178f53
2026-08-17 15:44:11,341 - DEBUG - Requesting: http://10.0.0.177:8082/project/38eed1f0-4525-40dc-9e3d-e112ba949d9c
2026-08-17 15:44:11,420 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/92f5b4d9-65dc-43db-9ca7-67e710e2a9dc
2026-08-17 15:44:11,430 - DEBUG - ==>Verifying data for policy with id: 7e57f066-bcb3-4e65-b628-87fc87839971, fqn: ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-policy-allow-all-69364087']
2026-08-17 15:44:11,431 - INFO - VN ctest-vn-84454090 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 15:44:11,431 - DEBUG - Verifying the vn in opserver
2026-08-17 15:44:11,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090 virtual network link through opserver 10.0.0.177
2026-08-17 15:44:11,431 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-17 15:44:11,801 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-17 15:44:11,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090?flat'}
2026-08-17 15:44:11,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-84454090 is found in opserver
2026-08-17 15:44:11,871 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 15:44:11,875 - DEBUG - VRF ids for VN ctest-vn-84454090: {}
2026-08-17 15:44:11,875 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-17 15:44:11,881 - DEBUG - Requesting: http://10.0.0.177:8082/domain/46c0095c-2264-4754-b399-bc719d178f53
2026-08-17 15:44:11,893 - DEBUG - Requesting: http://10.0.0.177:8082/project/38eed1f0-4525-40dc-9e3d-e112ba949d9c
2026-08-17 15:44:11,974 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:11,991 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:12,002 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/17e5250b-100b-439b-87c5-e552bcea65a1
2026-08-17 15:44:12,010 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/17e5250b-100b-439b-87c5-e552bcea65a1
2026-08-17 15:44:12,018 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/cd453949-f8e1-42d6-8df6-c9e5be334ac7
2026-08-17 15:44:12,027 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 15:44:12,027 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:12,036 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/17e5250b-100b-439b-87c5-e552bcea65a1
2026-08-17 15:44:12,056 - INFO - Verified VN network id 12 for VN 3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:12,057 - INFO - Verifications in API Server for VN ctest-vn-26502038 passed
2026-08-17 15:44:12,057 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:12,069 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/17e5250b-100b-439b-87c5-e552bcea65a1
2026-08-17 15:44:12,077 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/17e5250b-100b-439b-87c5-e552bcea65a1
2026-08-17 15:44:12,085 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/cd453949-f8e1-42d6-8df6-c9e5be334ac7
2026-08-17 15:44:12,098 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-26502038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22378420', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4216898397967567911', 'uuid-lslong': '12515911396025059821'}, 'enable': 'true', 'created': '2026-08-17T15:44:09', 'last-modified': '2026-08-17T15:44:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566257'}
2026-08-17 15:44:12,106 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 15:44:12,106 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26502038 passed
2026-08-17 15:44:12,106 - DEBUG - ====Verifying policy data for ctest-vn-26502038 in API_Server ======
2026-08-17 15:44:12,106 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-17 15:44:12,112 - DEBUG - Requesting: http://10.0.0.177:8082/domain/46c0095c-2264-4754-b399-bc719d178f53
2026-08-17 15:44:12,123 - DEBUG - Requesting: http://10.0.0.177:8082/project/38eed1f0-4525-40dc-9e3d-e112ba949d9c
2026-08-17 15:44:12,206 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/3a856ec0-38c5-4c27-adb1-731a405649ed
2026-08-17 15:44:12,217 - DEBUG - ==>Verifying data for policy with id: 7e57f066-bcb3-4e65-b628-87fc87839971, fqn: ['default-domain', 'ctest-TestBasicPolicy-22378420', 'ctest-policy-allow-all-69364087']
2026-08-17 15:44:12,217 - INFO - VN ctest-vn-26502038 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 15:44:12,217 - DEBUG - Verifying the vn in opserver
2026-08-17 15:44:12,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-26502038 virtual network link through opserver 10.0.0.177
2026-08-17 15:44:12,217 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-17 15:44:12,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-26502038', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-26502038?flat'}
2026-08-17 15:44:12,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22378420:ctest-vn-26502038 is found in opserver
2026-08-17 15:44:12,241 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 15:44:12,246 - DEBUG - VRF ids for VN ctest-vn-26502038: {}
2026-08-17 15:44:12,310 - DEBUG - Services list from nova: [