2026-06-18 13:02:08,415 - INFO - Domain Default found not creating
2026-06-18 13:02:08,570 - INFO - Project ctest-TestBasicPolicy-24004214 not found, creating it
2026-06-18 13:02:09,028 - INFO - Created Project:ctest-TestBasicPolicy-24004214, ID : 51219027-268a-4323-ad6f-c253f9f9bae9
2026-06-18 13:02:10,582 - INFO - ================================================================================
2026-06-18 13:02:10,582 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-18 13:02:10,582 - 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-18 13:02:10,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with
2026-06-18 13:02:10,839 - INFO - Initial checks done. Running the testcase now
2026-06-18 13:02:10,839 - INFO -
2026-06-18 13:02:11,443 - DEBUG - Response for create_network : {'network': {'id': 'c2c1aa2e-50dc-4374-a55b-abd197ed9aa7', 'name': 'ctest-vn-20455726', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'project_id': '51219027268a4323ad6fc253f9f9bae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-vn-20455726'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:02:11,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e118e6f-54f0-48c2-9b22-7dfa55414fd4', 'name': '', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'network_id': 'c2c1aa2e-50dc-4374-a55b-abd197ed9aa7', 'ip_version': 4, 'cidr': '1.41.218.192/26', 'allocation_pools': [{'start': '1.41.218.194', 'end': '1.41.218.254'}], 'gateway_ip': '1.41.218.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.41.218.194', 'tags': [], 'project_id': '51219027268a4323ad6fc253f9f9bae9'}}
2026-06-18 13:02:11,605 - INFO - Created VN ctest-vn-20455726
2026-06-18 13:02:11,658 - DEBUG - VN ctest-vn-20455726 UUID is c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:11,996 - DEBUG - Response for create_network : {'network': {'id': '01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703', 'name': 'ctest-vn-10234099', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'project_id': '51219027268a4323ad6fc253f9f9bae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-vn-10234099'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:02:12,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f0bd05e-4398-4b15-87e2-d03c3d083792', 'name': '', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'network_id': '01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703', 'ip_version': 4, 'cidr': '21.28.158.0/26', 'allocation_pools': [{'start': '21.28.158.2', 'end': '21.28.158.62'}], 'gateway_ip': '21.28.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.28.158.2', 'tags': [], 'project_id': '51219027268a4323ad6fc253f9f9bae9'}}
2026-06-18 13:02:12,164 - INFO - Created VN ctest-vn-10234099
2026-06-18 13:02:12,214 - DEBUG - VN ctest-vn-10234099 UUID is 01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:12,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726, 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-24004214:ctest-vn-10234099, 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-18 13:02:12,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2c1aa2e-50dc-4374-a55b-abd197ed9aa7', 'name': 'ctest-vn-20455726', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'project_id': '51219027268a4323ad6fc253f9f9bae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e118e6f-54f0-48c2-9b22-7dfa55414fd4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-vn-20455726'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-policy-allow-all-86685741']], 'subnet_ipam': [{'subnet_cidr': '1.41.218.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:02:12,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703', 'name': 'ctest-vn-10234099', 'tenant_id': '51219027268a4323ad6fc253f9f9bae9', 'project_id': '51219027268a4323ad6fc253f9f9bae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f0bd05e-4398-4b15-87e2-d03c3d083792'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-vn-10234099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-policy-allow-all-86685741']], 'subnet_ipam': [{'subnet_cidr': '21.28.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:02:13,050 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-06-18 13:02:13,369 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-06-18 13:02:13,394 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507
2026-06-18 13:02:13,407 - DEBUG - Requesting: http://10.0.0.130:8082/project/51219027-268a-4323-ad6f-c253f9f9bae9
2026-06-18 13:02:13,484 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,495 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,504 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3fa3926-9aa1-4486-9d4f-c24412ad5d90
2026-06-18 13:02:13,511 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3fa3926-9aa1-4486-9d4f-c24412ad5d90
2026-06-18 13:02:13,518 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/301212e8-5477-4bf1-b9da-b29d4fe2adb7
2026-06-18 13:02:13,527 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 13:02:13,527 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,536 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3fa3926-9aa1-4486-9d4f-c24412ad5d90
2026-06-18 13:02:13,549 - INFO - Verified VN network id 11 for VN c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,549 - INFO - Verifications in API Server for VN ctest-vn-20455726 passed
2026-06-18 13:02:13,549 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,559 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3fa3926-9aa1-4486-9d4f-c24412ad5d90
2026-06-18 13:02:13,565 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3fa3926-9aa1-4486-9d4f-c24412ad5d90
2026-06-18 13:02:13,572 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/301212e8-5477-4bf1-b9da-b29d4fe2adb7
2026-06-18 13:02:13,583 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24004214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14033685029765006196', 'uuid-lslong': '11915306155824224935'}, 'enable': 'true', 'created': '2026-06-18T13:02:11', 'last-modified': '2026-06-18T13:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947170'}
2026-06-18 13:02:13,588 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 13:02:13,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20455726 passed
2026-06-18 13:02:13,588 - DEBUG - ====Verifying policy data for ctest-vn-20455726 in API_Server ======
2026-06-18 13:02:13,588 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-06-18 13:02:13,593 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507
2026-06-18 13:02:13,604 - DEBUG - Requesting: http://10.0.0.130:8082/project/51219027-268a-4323-ad6f-c253f9f9bae9
2026-06-18 13:02:13,672 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c2c1aa2e-50dc-4374-a55b-abd197ed9aa7
2026-06-18 13:02:13,681 - DEBUG - ==>Verifying data for policy with id: 7d0a7e64-90a2-4eec-a4e1-10ccbe517738, fqn: ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-policy-allow-all-86685741']
2026-06-18 13:02:13,681 - INFO - VN ctest-vn-20455726 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 13:02:13,681 - DEBUG - Verifying the vn in opserver
2026-06-18 13:02:13,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726 virtual network link through opserver 10.0.0.130
2026-06-18 13:02:13,681 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-06-18 13:02:14,010 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-06-18 13:02:14,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726?flat'}
2026-06-18 13:02:14,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-20455726 is found in opserver
2026-06-18 13:02:14,070 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 13:02:14,074 - DEBUG - VRF ids for VN ctest-vn-20455726: {}
2026-06-18 13:02:14,074 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-06-18 13:02:14,079 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507
2026-06-18 13:02:14,091 - DEBUG - Requesting: http://10.0.0.130:8082/project/51219027-268a-4323-ad6f-c253f9f9bae9
2026-06-18 13:02:14,159 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,169 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,178 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d69ab9f-7a88-435b-be9e-277a5969c4f1
2026-06-18 13:02:14,186 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d69ab9f-7a88-435b-be9e-277a5969c4f1
2026-06-18 13:02:14,192 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3e66a0f1-ecf9-4b4d-a0db-e47d8b3f2efd
2026-06-18 13:02:14,198 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 13:02:14,198 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,206 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d69ab9f-7a88-435b-be9e-277a5969c4f1
2026-06-18 13:02:14,219 - INFO - Verified VN network id 12 for VN 01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,219 - INFO - Verifications in API Server for VN ctest-vn-10234099 passed
2026-06-18 13:02:14,221 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,233 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d69ab9f-7a88-435b-be9e-277a5969c4f1
2026-06-18 13:02:14,240 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d69ab9f-7a88-435b-be9e-277a5969c4f1
2026-06-18 13:02:14,246 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3e66a0f1-ecf9-4b4d-a0db-e47d8b3f2efd
2026-06-18 13:02:14,255 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-10234099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24004214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '139299300534668190', 'uuid-lslong': '13118229226613753603'}, 'enable': 'true', 'created': '2026-06-18T13:02:11', 'last-modified': '2026-06-18T13:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388958'}
2026-06-18 13:02:14,261 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 13:02:14,261 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10234099 passed
2026-06-18 13:02:14,261 - DEBUG - ====Verifying policy data for ctest-vn-10234099 in API_Server ======
2026-06-18 13:02:14,261 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-06-18 13:02:14,266 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507
2026-06-18 13:02:14,276 - DEBUG - Requesting: http://10.0.0.130:8082/project/51219027-268a-4323-ad6f-c253f9f9bae9
2026-06-18 13:02:14,344 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/01eee3f9-cdd4-4b9e-b60d-4ffa6e75c703
2026-06-18 13:02:14,355 - DEBUG - ==>Verifying data for policy with id: 7d0a7e64-90a2-4eec-a4e1-10ccbe517738, fqn: ['default-domain', 'ctest-TestBasicPolicy-24004214', 'ctest-policy-allow-all-86685741']
2026-06-18 13:02:14,355 - INFO - VN ctest-vn-10234099 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 13:02:14,355 - DEBUG - Verifying the vn in opserver
2026-06-18 13:02:14,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-10234099 virtual network link through opserver 10.0.0.130
2026-06-18 13:02:14,355 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-06-18 13:02:14,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-10234099', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-10234099?flat'}
2026-06-18 13:02:14,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24004214:ctest-vn-10234099 is found in opserver
2026-06-18 13:02:14,375 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 13:02:14,379 - DEBUG - VRF ids for VN ctest-vn-10234099: {}
2026-06-18 13:02:14,447 - DEBUG - Services list from nova: [