2026-06-19 15:52:00,336 - INFO - Domain Default found not creating
2026-06-19 15:52:00,464 - INFO - Project ctest-TestBasicPolicy-36959432 not found, creating it
2026-06-19 15:52:00,921 - INFO - Created Project:ctest-TestBasicPolicy-36959432, ID : 7420a1ba-d5f3-43af-a3cc-6a75270c7aa5
2026-06-19 15:52:02,340 - INFO - ================================================================================
2026-06-19 15:52:02,341 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-19 15:52:02,341 - 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-06-19 15:52:02,595 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2026-06-19 15:52:02,595 - INFO - Initial checks done. Running the testcase now
2026-06-19 15:52:02,595 - INFO -
2026-06-19 15:52:03,110 - DEBUG - Response for create_network : {'network': {'id': '20f20c17-790d-4633-a9be-9ff8c43e05fb', 'name': 'ctest-vn-70338682', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-vn-70338682'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 15:52:03,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ea901fe-a401-4ab4-8ebe-27763fb95c47', 'name': '', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'network_id': '20f20c17-790d-4633-a9be-9ff8c43e05fb', 'ip_version': 4, 'cidr': '69.46.28.128/26', 'allocation_pools': [{'start': '69.46.28.130', 'end': '69.46.28.190'}], 'gateway_ip': '69.46.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.46.28.130', 'tags': [], 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5'}}
2026-06-19 15:52:03,312 - INFO - Created VN ctest-vn-70338682
2026-06-19 15:52:03,362 - DEBUG - VN ctest-vn-70338682 UUID is 20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:03,652 - DEBUG - Response for create_network : {'network': {'id': '68ee618c-0224-43c1-a06a-47f35019385d', 'name': 'ctest-vn-59564754', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-vn-59564754'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 15:52:03,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ef11ed6-f48f-489a-94ec-3d0c24344986', 'name': '', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'network_id': '68ee618c-0224-43c1-a06a-47f35019385d', 'ip_version': 4, 'cidr': '34.22.21.0/26', 'allocation_pools': [{'start': '34.22.21.2', 'end': '34.22.21.62'}], 'gateway_ip': '34.22.21.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.22.21.2', 'tags': [], 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5'}}
2026-06-19 15:52:03,834 - INFO - Created VN ctest-vn-59564754
2026-06-19 15:52:03,886 - DEBUG - VN ctest-vn-59564754 UUID is 68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:04,026 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682, 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-36959432:ctest-vn-59564754, 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-06-19 15:52:04,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20f20c17-790d-4633-a9be-9ff8c43e05fb', 'name': 'ctest-vn-70338682', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ea901fe-a401-4ab4-8ebe-27763fb95c47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-vn-70338682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-policy-allow-all-21437439']], 'subnet_ipam': [{'subnet_cidr': '69.46.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 15:52:04,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68ee618c-0224-43c1-a06a-47f35019385d', 'name': 'ctest-vn-59564754', 'tenant_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'project_id': '7420a1bad5f343afa3cc6a75270c7aa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ef11ed6-f48f-489a-94ec-3d0c24344986'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-vn-59564754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-policy-allow-all-21437439']], 'subnet_ipam': [{'subnet_cidr': '34.22.21.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 15:52:04,686 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-06-19 15:52:05,000 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-06-19 15:52:05,022 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21
2026-06-19 15:52:05,032 - DEBUG - Requesting: http://10.0.0.22:8082/project/7420a1ba-d5f3-43af-a3cc-6a75270c7aa5
2026-06-19 15:52:05,100 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,110 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,117 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ed8fbe9a-27d4-4345-b380-0e345dbbbd9b
2026-06-19 15:52:05,123 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ed8fbe9a-27d4-4345-b380-0e345dbbbd9b
2026-06-19 15:52:05,128 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abd9fed5-cd95-48af-b6bb-5041ff4c36b5
2026-06-19 15:52:05,133 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 15:52:05,133 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,140 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ed8fbe9a-27d4-4345-b380-0e345dbbbd9b
2026-06-19 15:52:05,150 - INFO - Verified VN network id 11 for VN 20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,150 - INFO - Verifications in API Server for VN ctest-vn-70338682 passed
2026-06-19 15:52:05,150 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,157 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ed8fbe9a-27d4-4345-b380-0e345dbbbd9b
2026-06-19 15:52:05,161 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ed8fbe9a-27d4-4345-b380-0e345dbbbd9b
2026-06-19 15:52:05,167 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abd9fed5-cd95-48af-b6bb-5041ff4c36b5
2026-06-19 15:52:05,176 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36959432', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2373973248532366899', 'uuid-lslong': '12231389528777950715'}, 'enable': 'true', 'created': '2026-06-19T15:52:03', 'last-modified': '2026-06-19T15:52:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886861'}
2026-06-19 15:52:05,181 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 15:52:05,181 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70338682 passed
2026-06-19 15:52:05,181 - DEBUG - ====Verifying policy data for ctest-vn-70338682 in API_Server ======
2026-06-19 15:52:05,181 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-06-19 15:52:05,186 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21
2026-06-19 15:52:05,194 - DEBUG - Requesting: http://10.0.0.22:8082/project/7420a1ba-d5f3-43af-a3cc-6a75270c7aa5
2026-06-19 15:52:05,260 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/20f20c17-790d-4633-a9be-9ff8c43e05fb
2026-06-19 15:52:05,268 - DEBUG - ==>Verifying data for policy with id: d382d395-bc1e-43e3-85b7-bddda64d9116, fqn: ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-policy-allow-all-21437439']
2026-06-19 15:52:05,268 - INFO - VN ctest-vn-70338682 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 15:52:05,268 - DEBUG - Verifying the vn in opserver
2026-06-19 15:52:05,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682 virtual network link through opserver 10.0.0.22
2026-06-19 15:52:05,268 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-06-19 15:52:05,582 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-06-19 15:52:05,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682?flat'}
2026-06-19 15:52:05,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-70338682 is found in opserver
2026-06-19 15:52:05,633 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 15:52:05,636 - DEBUG - VRF ids for VN ctest-vn-70338682: {}
2026-06-19 15:52:05,636 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-06-19 15:52:05,640 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21
2026-06-19 15:52:05,649 - DEBUG - Requesting: http://10.0.0.22:8082/project/7420a1ba-d5f3-43af-a3cc-6a75270c7aa5
2026-06-19 15:52:05,716 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,732 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,739 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a82e9b1f-245c-4b50-b49a-bb4077bdd0e0
2026-06-19 15:52:05,745 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a82e9b1f-245c-4b50-b49a-bb4077bdd0e0
2026-06-19 15:52:05,750 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c7c7df2d-a736-4cbc-b33a-3e21d5a132cf
2026-06-19 15:52:05,755 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 15:52:05,755 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,762 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a82e9b1f-245c-4b50-b49a-bb4077bdd0e0
2026-06-19 15:52:05,772 - INFO - Verified VN network id 12 for VN 68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,773 - INFO - Verifications in API Server for VN ctest-vn-59564754 passed
2026-06-19 15:52:05,773 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a82e9b1f-245c-4b50-b49a-bb4077bdd0e0
2026-06-19 15:52:05,784 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a82e9b1f-245c-4b50-b49a-bb4077bdd0e0
2026-06-19 15:52:05,789 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c7c7df2d-a736-4cbc-b33a-3e21d5a132cf
2026-06-19 15:52:05,797 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-59564754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36959432', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7561088078360888257', 'uuid-lslong': '11559130503946254429'}, 'enable': 'true', 'created': '2026-06-19T15:52:03', 'last-modified': '2026-06-19T15:52:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.285627'}
2026-06-19 15:52:05,802 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 15:52:05,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59564754 passed
2026-06-19 15:52:05,802 - DEBUG - ====Verifying policy data for ctest-vn-59564754 in API_Server ======
2026-06-19 15:52:05,802 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-06-19 15:52:05,806 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21
2026-06-19 15:52:05,817 - DEBUG - Requesting: http://10.0.0.22:8082/project/7420a1ba-d5f3-43af-a3cc-6a75270c7aa5
2026-06-19 15:52:05,887 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68ee618c-0224-43c1-a06a-47f35019385d
2026-06-19 15:52:05,896 - DEBUG - ==>Verifying data for policy with id: d382d395-bc1e-43e3-85b7-bddda64d9116, fqn: ['default-domain', 'ctest-TestBasicPolicy-36959432', 'ctest-policy-allow-all-21437439']
2026-06-19 15:52:05,896 - INFO - VN ctest-vn-59564754 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 15:52:05,896 - DEBUG - Verifying the vn in opserver
2026-06-19 15:52:05,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-59564754 virtual network link through opserver 10.0.0.22
2026-06-19 15:52:05,896 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-06-19 15:52:05,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-59564754', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-59564754?flat'}
2026-06-19 15:52:05,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36959432:ctest-vn-59564754 is found in opserver
2026-06-19 15:52:05,912 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 15:52:05,915 - DEBUG - VRF ids for VN ctest-vn-59564754: {}
2026-06-19 15:52:05,961 - DEBUG - Services list from nova: [