2026-04-20 18:10:47,805 - INFO - Domain Default found not creating
2026-04-20 18:10:48,027 - INFO - Project ctest-TestBasicPolicy-76305149 not found, creating it
2026-04-20 18:10:48,561 - INFO - Created Project:ctest-TestBasicPolicy-76305149, ID : 657c1414-b23c-4969-a5ad-99b29a253782
2026-04-20 18:10:50,450 - INFO - ================================================================================
2026-04-20 18:10:50,450 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 18:10:50,450 - 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-20 18:10:50,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-04-20 18:10:50,707 - INFO - Initial checks done. Running the testcase now
2026-04-20 18:10:50,707 - INFO -
2026-04-20 18:10:51,284 - DEBUG - Response for create_network : {'network': {'id': 'e2ea1b69-8cbf-4e96-ba10-b6e8223787a1', 'name': 'ctest-vn-27061598', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'project_id': '657c1414b23c4969a5ad99b29a253782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-vn-27061598'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 18:10:51,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f96ab6d-0515-491b-9f4e-9448747e93e8', 'name': '', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'network_id': 'e2ea1b69-8cbf-4e96-ba10-b6e8223787a1', 'ip_version': 4, 'cidr': '214.199.155.128/26', 'allocation_pools': [{'start': '214.199.155.130', 'end': '214.199.155.190'}], 'gateway_ip': '214.199.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.199.155.130', 'tags': [], 'project_id': '657c1414b23c4969a5ad99b29a253782'}}
2026-04-20 18:10:51,496 - INFO - Created VN ctest-vn-27061598
2026-04-20 18:10:51,549 - DEBUG - VN ctest-vn-27061598 UUID is e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:51,853 - DEBUG - Response for create_network : {'network': {'id': 'ad2ada10-921b-4a4b-96e0-dfc917c69dc8', 'name': 'ctest-vn-53388500', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'project_id': '657c1414b23c4969a5ad99b29a253782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-vn-53388500'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 18:10:52,087 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b9f25ec-cb3b-4ec2-98dd-3f59c95d5cb3', 'name': '', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'network_id': 'ad2ada10-921b-4a4b-96e0-dfc917c69dc8', 'ip_version': 4, 'cidr': '196.228.176.0/26', 'allocation_pools': [{'start': '196.228.176.2', 'end': '196.228.176.62'}], 'gateway_ip': '196.228.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.228.176.2', 'tags': [], 'project_id': '657c1414b23c4969a5ad99b29a253782'}}
2026-04-20 18:10:52,110 - INFO - Created VN ctest-vn-53388500
2026-04-20 18:10:52,165 - DEBUG - VN ctest-vn-53388500 UUID is ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:52,295 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598, 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-76305149:ctest-vn-53388500, 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-20 18:10:52,627 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2ea1b69-8cbf-4e96-ba10-b6e8223787a1', 'name': 'ctest-vn-27061598', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'project_id': '657c1414b23c4969a5ad99b29a253782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f96ab6d-0515-491b-9f4e-9448747e93e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-vn-27061598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-policy-allow-all-41233540']], 'subnet_ipam': [{'subnet_cidr': '214.199.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 18:10:52,866 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad2ada10-921b-4a4b-96e0-dfc917c69dc8', 'name': 'ctest-vn-53388500', 'tenant_id': '657c1414b23c4969a5ad99b29a253782', 'project_id': '657c1414b23c4969a5ad99b29a253782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b9f25ec-cb3b-4ec2-98dd-3f59c95d5cb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-vn-53388500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-policy-allow-all-41233540']], 'subnet_ipam': [{'subnet_cidr': '196.228.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 18:10:53,037 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-20 18:10:53,342 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-20 18:10:53,382 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385
2026-04-20 18:10:53,396 - DEBUG - Requesting: http://10.0.0.22:8082/project/657c1414-b23c-4969-a5ad-99b29a253782
2026-04-20 18:10:53,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,489 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,500 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fecb488b-4d61-4134-acaa-8239f17dea2e
2026-04-20 18:10:53,508 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fecb488b-4d61-4134-acaa-8239f17dea2e
2026-04-20 18:10:53,516 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2fb9c683-7fc1-4b56-a02c-a92218747ad1
2026-04-20 18:10:53,525 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 18:10:53,525 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,536 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fecb488b-4d61-4134-acaa-8239f17dea2e
2026-04-20 18:10:53,552 - INFO - Verified VN network id 12 for VN e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,552 - INFO - Verifications in API Server for VN ctest-vn-27061598 passed
2026-04-20 18:10:53,552 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,562 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fecb488b-4d61-4134-acaa-8239f17dea2e
2026-04-20 18:10:53,571 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fecb488b-4d61-4134-acaa-8239f17dea2e
2026-04-20 18:10:53,579 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2fb9c683-7fc1-4b56-a02c-a92218747ad1
2026-04-20 18:10:53,591 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76305149', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16350911537268870806', 'uuid-lslong': '13407417198804699041'}, 'enable': 'true', 'created': '2026-04-20T18:10:51', 'last-modified': '2026-04-20T18:10:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995007'}
2026-04-20 18:10:53,598 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 18:10:53,598 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27061598 passed
2026-04-20 18:10:53,598 - DEBUG - ====Verifying policy data for ctest-vn-27061598 in API_Server ======
2026-04-20 18:10:53,598 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-20 18:10:53,605 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385
2026-04-20 18:10:53,617 - DEBUG - Requesting: http://10.0.0.22:8082/project/657c1414-b23c-4969-a5ad-99b29a253782
2026-04-20 18:10:53,690 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2ea1b69-8cbf-4e96-ba10-b6e8223787a1
2026-04-20 18:10:53,700 - DEBUG - ==>Verifying data for policy with id: 32951c03-34c5-4932-8464-0e17b9467e71, fqn: ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-policy-allow-all-41233540']
2026-04-20 18:10:53,700 - INFO - VN ctest-vn-27061598 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 18:10:53,700 - DEBUG - Verifying the vn in opserver
2026-04-20 18:10:53,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598 virtual network link through opserver 10.0.0.22
2026-04-20 18:10:53,701 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-20 18:10:53,997 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-20 18:10:54,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598?flat'}
2026-04-20 18:10:54,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-27061598 is found in opserver
2026-04-20 18:10:54,091 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 18:10:54,105 - DEBUG - VRF ids for VN ctest-vn-27061598: {}
2026-04-20 18:10:54,105 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-20 18:10:54,114 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385
2026-04-20 18:10:54,129 - DEBUG - Requesting: http://10.0.0.22:8082/project/657c1414-b23c-4969-a5ad-99b29a253782
2026-04-20 18:10:54,203 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,218 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,228 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8d737bb-4fda-43e2-b7cd-229122ad11fc
2026-04-20 18:10:54,237 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8d737bb-4fda-43e2-b7cd-229122ad11fc
2026-04-20 18:10:54,246 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5299946c-2a32-477e-aa69-e77865bf5e0c
2026-04-20 18:10:54,254 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 18:10:54,254 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,264 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8d737bb-4fda-43e2-b7cd-229122ad11fc
2026-04-20 18:10:54,283 - INFO - Verified VN network id 13 for VN ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,283 - INFO - Verifications in API Server for VN ctest-vn-53388500 passed
2026-04-20 18:10:54,283 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,295 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8d737bb-4fda-43e2-b7cd-229122ad11fc
2026-04-20 18:10:54,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8d737bb-4fda-43e2-b7cd-229122ad11fc
2026-04-20 18:10:54,316 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5299946c-2a32-477e-aa69-e77865bf5e0c
2026-04-20 18:10:54,332 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-53388500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76305149', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12478025482288974411', 'uuid-lslong': '10871935555252690376'}, 'enable': 'true', 'created': '2026-04-20T18:10:51', 'last-modified': '2026-04-20T18:10:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493093'}
2026-04-20 18:10:54,339 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 18:10:54,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53388500 passed
2026-04-20 18:10:54,339 - DEBUG - ====Verifying policy data for ctest-vn-53388500 in API_Server ======
2026-04-20 18:10:54,339 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-20 18:10:54,346 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385
2026-04-20 18:10:54,360 - DEBUG - Requesting: http://10.0.0.22:8082/project/657c1414-b23c-4969-a5ad-99b29a253782
2026-04-20 18:10:54,432 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ad2ada10-921b-4a4b-96e0-dfc917c69dc8
2026-04-20 18:10:54,443 - DEBUG - ==>Verifying data for policy with id: 32951c03-34c5-4932-8464-0e17b9467e71, fqn: ['default-domain', 'ctest-TestBasicPolicy-76305149', 'ctest-policy-allow-all-41233540']
2026-04-20 18:10:54,444 - INFO - VN ctest-vn-53388500 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 18:10:54,444 - DEBUG - Verifying the vn in opserver
2026-04-20 18:10:54,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-53388500 virtual network link through opserver 10.0.0.22
2026-04-20 18:10:54,444 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-20 18:10:54,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-53388500', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-53388500?flat'}
2026-04-20 18:10:54,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76305149:ctest-vn-53388500 is found in opserver
2026-04-20 18:10:54,470 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 18:10:54,476 - DEBUG - VRF ids for VN ctest-vn-53388500: {}
2026-04-20 18:10:54,542 - DEBUG - Services list from nova: [