2026-04-02 11:39:39,695 - INFO - Domain Default found not creating
2026-04-02 11:39:39,905 - INFO - Project ctest-TestBasicPolicy-96437397 not found, creating it
2026-04-02 11:39:40,362 - INFO - Created Project:ctest-TestBasicPolicy-96437397, ID : 44c97054-819b-4e1e-9742-0542d5f793b0
2026-04-02 11:39:41,835 - INFO - ================================================================================
2026-04-02 11:39:41,836 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-02 11:39:41,836 - 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-04-02 11:39:42,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-04-02 11:39:42,089 - INFO - Initial checks done. Running the testcase now
2026-04-02 11:39:42,089 - INFO -
2026-04-02 11:39:42,666 - DEBUG - Response for create_network : {'network': {'id': 'd7b13afc-3912-475b-8037-4922bd8a9ac2', 'name': 'ctest-vn-90015924', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'project_id': '44c97054819b4e1e97420542d5f793b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-vn-90015924'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 11:39:42,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '319e2512-ac44-4cef-b6d7-26f434e1707e', 'name': '', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'network_id': 'd7b13afc-3912-475b-8037-4922bd8a9ac2', 'ip_version': 4, 'cidr': '97.125.246.64/26', 'allocation_pools': [{'start': '97.125.246.66', 'end': '97.125.246.126'}], 'gateway_ip': '97.125.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.125.246.66', 'tags': [], 'project_id': '44c97054819b4e1e97420542d5f793b0'}}
2026-04-02 11:39:42,874 - INFO - Created VN ctest-vn-90015924
2026-04-02 11:39:42,930 - DEBUG - VN ctest-vn-90015924 UUID is d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:43,220 - DEBUG - Response for create_network : {'network': {'id': '27e78df1-a301-44ff-86e9-56901077d2d7', 'name': 'ctest-vn-97740714', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'project_id': '44c97054819b4e1e97420542d5f793b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-vn-97740714'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 11:39:43,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af087119-9e4c-4d09-bf79-fe81f8f3e808', 'name': '', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'network_id': '27e78df1-a301-44ff-86e9-56901077d2d7', 'ip_version': 4, 'cidr': '176.40.28.64/26', 'allocation_pools': [{'start': '176.40.28.66', 'end': '176.40.28.126'}], 'gateway_ip': '176.40.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.40.28.66', 'tags': [], 'project_id': '44c97054819b4e1e97420542d5f793b0'}}
2026-04-02 11:39:43,401 - INFO - Created VN ctest-vn-97740714
2026-04-02 11:39:43,454 - DEBUG - VN ctest-vn-97740714 UUID is 27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:43,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924, 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-96437397:ctest-vn-97740714, 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-04-02 11:39:43,878 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7b13afc-3912-475b-8037-4922bd8a9ac2', 'name': 'ctest-vn-90015924', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'project_id': '44c97054819b4e1e97420542d5f793b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['319e2512-ac44-4cef-b6d7-26f434e1707e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-vn-90015924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-policy-allow-all-95954437']], 'subnet_ipam': [{'subnet_cidr': '97.125.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 11:39:44,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27e78df1-a301-44ff-86e9-56901077d2d7', 'name': 'ctest-vn-97740714', 'tenant_id': '44c97054819b4e1e97420542d5f793b0', 'project_id': '44c97054819b4e1e97420542d5f793b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af087119-9e4c-4d09-bf79-fe81f8f3e808'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-vn-97740714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-policy-allow-all-95954437']], 'subnet_ipam': [{'subnet_cidr': '176.40.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 11:39:44,279 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-02 11:39:44,560 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-02 11:39:44,602 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a485233c-3919-4c9b-b8e7-17e485e066d8
2026-04-02 11:39:44,615 - DEBUG - Requesting: http://10.0.0.141:8082/project/44c97054-819b-4e1e-9742-0542d5f793b0
2026-04-02 11:39:44,688 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,700 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,710 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3b9f4cbf-d759-4cdc-8c81-8705e393e741
2026-04-02 11:39:44,718 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3b9f4cbf-d759-4cdc-8c81-8705e393e741
2026-04-02 11:39:44,725 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e00cbb52-d514-4233-a8b7-08102ef7c38e
2026-04-02 11:39:44,732 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 11:39:44,732 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,741 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3b9f4cbf-d759-4cdc-8c81-8705e393e741
2026-04-02 11:39:44,755 - INFO - Verified VN network id 12 for VN d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,755 - INFO - Verifications in API Server for VN ctest-vn-90015924 passed
2026-04-02 11:39:44,755 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,764 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3b9f4cbf-d759-4cdc-8c81-8705e393e741
2026-04-02 11:39:44,772 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3b9f4cbf-d759-4cdc-8c81-8705e393e741
2026-04-02 11:39:44,780 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e00cbb52-d514-4233-a8b7-08102ef7c38e
2026-04-02 11:39:44,805 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96437397', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15542268643995961179', 'uuid-lslong': '9238933574131555010'}, 'enable': 'true', 'created': '2026-04-02T11:39:42', 'last-modified': '2026-04-02T11:39:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952308'}
2026-04-02 11:39:44,811 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 11:39:44,812 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90015924 passed
2026-04-02 11:39:44,812 - DEBUG - ====Verifying policy data for ctest-vn-90015924 in API_Server ======
2026-04-02 11:39:44,812 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-02 11:39:44,817 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a485233c-3919-4c9b-b8e7-17e485e066d8
2026-04-02 11:39:44,830 - DEBUG - Requesting: http://10.0.0.141:8082/project/44c97054-819b-4e1e-9742-0542d5f793b0
2026-04-02 11:39:44,911 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d7b13afc-3912-475b-8037-4922bd8a9ac2
2026-04-02 11:39:44,920 - DEBUG - ==>Verifying data for policy with id: 50dd09ba-5fa7-4348-b2ba-0a6dda0d785e, fqn: ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-policy-allow-all-95954437']
2026-04-02 11:39:44,920 - INFO - VN ctest-vn-90015924 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 11:39:44,920 - DEBUG - Verifying the vn in opserver
2026-04-02 11:39:44,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924 virtual network link through opserver 10.0.0.141
2026-04-02 11:39:44,921 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-02 11:39:45,189 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-02 11:39:45,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924?flat'}
2026-04-02 11:39:45,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-90015924 is found in opserver
2026-04-02 11:39:45,279 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 11:39:45,284 - DEBUG - VRF ids for VN ctest-vn-90015924: {}
2026-04-02 11:39:45,285 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-02 11:39:45,291 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a485233c-3919-4c9b-b8e7-17e485e066d8
2026-04-02 11:39:45,303 - DEBUG - Requesting: http://10.0.0.141:8082/project/44c97054-819b-4e1e-9742-0542d5f793b0
2026-04-02 11:39:45,375 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,388 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,398 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b65a4d2c-5d9d-44ae-b91d-205a65a009cd
2026-04-02 11:39:45,405 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b65a4d2c-5d9d-44ae-b91d-205a65a009cd
2026-04-02 11:39:45,411 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a094a7d5-3ec0-4d0e-830d-ba826e978f9a
2026-04-02 11:39:45,418 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 11:39:45,418 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,428 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b65a4d2c-5d9d-44ae-b91d-205a65a009cd
2026-04-02 11:39:45,443 - INFO - Verified VN network id 13 for VN 27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,443 - INFO - Verifications in API Server for VN ctest-vn-97740714 passed
2026-04-02 11:39:45,443 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,452 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b65a4d2c-5d9d-44ae-b91d-205a65a009cd
2026-04-02 11:39:45,460 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b65a4d2c-5d9d-44ae-b91d-205a65a009cd
2026-04-02 11:39:45,467 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a094a7d5-3ec0-4d0e-830d-ba826e978f9a
2026-04-02 11:39:45,479 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-97740714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96437397', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2875422956060755199', 'uuid-lslong': '9721396447407493847'}, 'enable': 'true', 'created': '2026-04-02T11:39:43', 'last-modified': '2026-04-02T11:39:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384146'}
2026-04-02 11:39:45,485 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 11:39:45,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97740714 passed
2026-04-02 11:39:45,485 - DEBUG - ====Verifying policy data for ctest-vn-97740714 in API_Server ======
2026-04-02 11:39:45,485 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-02 11:39:45,490 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a485233c-3919-4c9b-b8e7-17e485e066d8
2026-04-02 11:39:45,499 - DEBUG - Requesting: http://10.0.0.141:8082/project/44c97054-819b-4e1e-9742-0542d5f793b0
2026-04-02 11:39:45,570 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/27e78df1-a301-44ff-86e9-56901077d2d7
2026-04-02 11:39:45,581 - DEBUG - ==>Verifying data for policy with id: 50dd09ba-5fa7-4348-b2ba-0a6dda0d785e, fqn: ['default-domain', 'ctest-TestBasicPolicy-96437397', 'ctest-policy-allow-all-95954437']
2026-04-02 11:39:45,581 - INFO - VN ctest-vn-97740714 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 11:39:45,581 - DEBUG - Verifying the vn in opserver
2026-04-02 11:39:45,581 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-97740714 virtual network link through opserver 10.0.0.141
2026-04-02 11:39:45,581 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-02 11:39:45,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-97740714', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-97740714?flat'}
2026-04-02 11:39:45,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96437397:ctest-vn-97740714 is found in opserver
2026-04-02 11:39:45,601 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 11:39:45,605 - DEBUG - VRF ids for VN ctest-vn-97740714: {}
2026-04-02 11:39:45,665 - DEBUG - Services list from nova: [