2026-10-31 23:28:36,855 - INFO - Domain Default found not creating
2026-10-31 23:28:37,035 - INFO - Project ctest-TestBasicPolicy-86794705 not found, creating it
2026-10-31 23:28:37,498 - INFO - Created Project:ctest-TestBasicPolicy-86794705, ID : 35d40566-d24d-4f11-b2c1-367ac0a4b88d
2026-10-31 23:28:39,213 - INFO - ================================================================================
2026-10-31 23:28:39,213 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-31 23:28:39,213 - 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-10-31 23:28:39,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with
2026-10-31 23:28:39,478 - INFO - Initial checks done. Running the testcase now
2026-10-31 23:28:39,478 - INFO -
2026-10-31 23:28:40,102 - DEBUG - Response for create_network : {'network': {'id': 'b49d5f0a-2b20-421b-ad67-80f3ff2c8574', 'name': 'ctest-vn-05282451', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-vn-05282451'], 'port_security_enabled': True, 'description': ''}}
2026-10-31 23:28:40,248 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c6776e3-5919-4a68-af07-256736cf108f', 'name': '', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'network_id': 'b49d5f0a-2b20-421b-ad67-80f3ff2c8574', 'ip_version': 4, 'cidr': '113.106.228.0/26', 'allocation_pools': [{'start': '113.106.228.2', 'end': '113.106.228.62'}], 'gateway_ip': '113.106.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.106.228.2', 'tags': [], 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d'}}
2026-10-31 23:28:40,269 - INFO - Created VN ctest-vn-05282451
2026-10-31 23:28:40,326 - DEBUG - VN ctest-vn-05282451 UUID is b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:40,643 - DEBUG - Response for create_network : {'network': {'id': 'd3bd92dc-6e9e-4c54-9caf-08fea3085613', 'name': 'ctest-vn-58067980', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-vn-58067980'], 'port_security_enabled': True, 'description': ''}}
2026-10-31 23:28:40,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f395011c-ffed-4b84-9ca9-649cceb35788', 'name': '', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'network_id': 'd3bd92dc-6e9e-4c54-9caf-08fea3085613', 'ip_version': 4, 'cidr': '112.213.232.128/26', 'allocation_pools': [{'start': '112.213.232.130', 'end': '112.213.232.190'}], 'gateway_ip': '112.213.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.213.232.130', 'tags': [], 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d'}}
2026-10-31 23:28:40,836 - INFO - Created VN ctest-vn-58067980
2026-10-31 23:28:40,889 - DEBUG - VN ctest-vn-58067980 UUID is d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:41,011 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451, 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-86794705:ctest-vn-58067980, 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-10-31 23:28:41,326 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b49d5f0a-2b20-421b-ad67-80f3ff2c8574', 'name': 'ctest-vn-05282451', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7c6776e3-5919-4a68-af07-256736cf108f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-vn-05282451'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-policy-allow-all-10108702']], 'subnet_ipam': [{'subnet_cidr': '113.106.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-31 23:28:41,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3bd92dc-6e9e-4c54-9caf-08fea3085613', 'name': 'ctest-vn-58067980', 'tenant_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'project_id': '35d40566d24d4f11b2c1367ac0a4b88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f395011c-ffed-4b84-9ca9-649cceb35788'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-vn-58067980'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-policy-allow-all-10108702']], 'subnet_ipam': [{'subnet_cidr': '112.213.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-31 23:28:41,745 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-10-31 23:28:42,113 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-10-31 23:28:42,159 - DEBUG - Requesting: http://10.0.0.177:8082/domain/66449e11-0bca-4e07-ba85-08c2b3180015
2026-10-31 23:28:42,175 - DEBUG - Requesting: http://10.0.0.177:8082/project/35d40566-d24d-4f11-b2c1-367ac0a4b88d
2026-10-31 23:28:42,265 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,281 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,297 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bc83e530-c330-4b7e-8b41-2e0fabc57629
2026-10-31 23:28:42,309 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bc83e530-c330-4b7e-8b41-2e0fabc57629
2026-10-31 23:28:42,318 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/744e9bb1-e049-4e1b-bb12-6830d632b6ac
2026-10-31 23:28:42,327 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-31 23:28:42,327 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,337 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bc83e530-c330-4b7e-8b41-2e0fabc57629
2026-10-31 23:28:42,352 - INFO - Verified VN network id 12 for VN b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,352 - INFO - Verifications in API Server for VN ctest-vn-05282451 passed
2026-10-31 23:28:42,352 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,362 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bc83e530-c330-4b7e-8b41-2e0fabc57629
2026-10-31 23:28:42,368 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bc83e530-c330-4b7e-8b41-2e0fabc57629
2026-10-31 23:28:42,376 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/744e9bb1-e049-4e1b-bb12-6830d632b6ac
2026-10-31 23:28:42,388 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86794705', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13014662995448447515', 'uuid-lslong': '12495097476609246580'}, 'enable': 'true', 'created': '2026-10-31T23:28:40', 'last-modified': '2026-10-31T23:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092501'}
2026-10-31 23:28:42,395 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-31 23:28:42,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05282451 passed
2026-10-31 23:28:42,396 - DEBUG - ====Verifying policy data for ctest-vn-05282451 in API_Server ======
2026-10-31 23:28:42,396 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-10-31 23:28:42,402 - DEBUG - Requesting: http://10.0.0.177:8082/domain/66449e11-0bca-4e07-ba85-08c2b3180015
2026-10-31 23:28:42,413 - DEBUG - Requesting: http://10.0.0.177:8082/project/35d40566-d24d-4f11-b2c1-367ac0a4b88d
2026-10-31 23:28:42,480 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b49d5f0a-2b20-421b-ad67-80f3ff2c8574
2026-10-31 23:28:42,489 - DEBUG - ==>Verifying data for policy with id: 34129eea-19ac-4cd1-9f8d-50e7822f0414, fqn: ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-policy-allow-all-10108702']
2026-10-31 23:28:42,489 - INFO - VN ctest-vn-05282451 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-31 23:28:42,489 - DEBUG - Verifying the vn in opserver
2026-10-31 23:28:42,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451 virtual network link through opserver 10.0.0.177
2026-10-31 23:28:42,489 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-10-31 23:28:42,851 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-10-31 23:28:42,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451?flat'}
2026-10-31 23:28:42,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-05282451 is found in opserver
2026-10-31 23:28:42,932 - DEBUG - Do not have enough data to verify VN in agent
2026-10-31 23:28:42,938 - DEBUG - VRF ids for VN ctest-vn-05282451: {}
2026-10-31 23:28:42,939 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-10-31 23:28:42,944 - DEBUG - Requesting: http://10.0.0.177:8082/domain/66449e11-0bca-4e07-ba85-08c2b3180015
2026-10-31 23:28:42,956 - DEBUG - Requesting: http://10.0.0.177:8082/project/35d40566-d24d-4f11-b2c1-367ac0a4b88d
2026-10-31 23:28:43,033 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,047 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,060 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1bfb73a4-d3fe-4159-8de2-e901db749326
2026-10-31 23:28:43,070 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1bfb73a4-d3fe-4159-8de2-e901db749326
2026-10-31 23:28:43,077 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/47abdb88-4938-4a56-bcce-7c4c31d16b91
2026-10-31 23:28:43,084 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-31 23:28:43,084 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,093 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1bfb73a4-d3fe-4159-8de2-e901db749326
2026-10-31 23:28:43,110 - INFO - Verified VN network id 13 for VN d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,110 - INFO - Verifications in API Server for VN ctest-vn-58067980 passed
2026-10-31 23:28:43,110 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,120 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1bfb73a4-d3fe-4159-8de2-e901db749326
2026-10-31 23:28:43,128 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1bfb73a4-d3fe-4159-8de2-e901db749326
2026-10-31 23:28:43,135 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/47abdb88-4938-4a56-bcce-7c4c31d16b91
2026-10-31 23:28:43,149 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-58067980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86794705', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15257512588047436884', 'uuid-lslong': '11290252680591070739'}, 'enable': 'true', 'created': '2026-10-31T23:28:40', 'last-modified': '2026-10-31T23:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.600265'}
2026-10-31 23:28:43,156 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-31 23:28:43,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58067980 passed
2026-10-31 23:28:43,157 - DEBUG - ====Verifying policy data for ctest-vn-58067980 in API_Server ======
2026-10-31 23:28:43,157 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-10-31 23:28:43,163 - DEBUG - Requesting: http://10.0.0.177:8082/domain/66449e11-0bca-4e07-ba85-08c2b3180015
2026-10-31 23:28:43,176 - DEBUG - Requesting: http://10.0.0.177:8082/project/35d40566-d24d-4f11-b2c1-367ac0a4b88d
2026-10-31 23:28:43,248 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d3bd92dc-6e9e-4c54-9caf-08fea3085613
2026-10-31 23:28:43,257 - DEBUG - ==>Verifying data for policy with id: 34129eea-19ac-4cd1-9f8d-50e7822f0414, fqn: ['default-domain', 'ctest-TestBasicPolicy-86794705', 'ctest-policy-allow-all-10108702']
2026-10-31 23:28:43,257 - INFO - VN ctest-vn-58067980 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-31 23:28:43,257 - DEBUG - Verifying the vn in opserver
2026-10-31 23:28:43,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-58067980 virtual network link through opserver 10.0.0.177
2026-10-31 23:28:43,257 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-10-31 23:28:43,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-58067980', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-58067980?flat'}
2026-10-31 23:28:43,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86794705:ctest-vn-58067980 is found in opserver
2026-10-31 23:28:43,276 - DEBUG - Do not have enough data to verify VN in agent
2026-10-31 23:28:43,281 - DEBUG - VRF ids for VN ctest-vn-58067980: {}
2026-10-31 23:28:43,336 - DEBUG - Services list from nova: [