2026-08-27 17:10:44,021 - INFO - Domain Default found not creating
2026-08-27 17:10:44,248 - INFO - Project ctest-TestBasicPolicy-82334818 not found, creating it
2026-08-27 17:10:44,824 - INFO - Created Project:ctest-TestBasicPolicy-82334818, ID : 504c8f09-2617-4bdc-a79a-bd872e17daa2
2026-08-27 17:10:46,780 - INFO - ================================================================================
2026-08-27 17:10:46,781 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-27 17:10:46,781 - 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-08-27 17:10:47,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-08-27 17:10:47,059 - INFO - Initial checks done. Running the testcase now
2026-08-27 17:10:47,059 - INFO -
2026-08-27 17:10:47,833 - DEBUG - Response for create_network : {'network': {'id': '10aea351-4685-4cd3-ae39-660ecdba8870', 'name': 'ctest-vn-48324090', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'project_id': '504c8f0926174bdca79abd872e17daa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-vn-48324090'], 'port_security_enabled': True, 'description': ''}}
2026-08-27 17:10:48,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '95f25d7c-27e1-43cf-920c-3f173452b6ba', 'name': '', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'network_id': '10aea351-4685-4cd3-ae39-660ecdba8870', 'ip_version': 4, 'cidr': '118.135.161.128/26', 'allocation_pools': [{'start': '118.135.161.130', 'end': '118.135.161.190'}], 'gateway_ip': '118.135.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.135.161.130', 'tags': [], 'project_id': '504c8f0926174bdca79abd872e17daa2'}}
2026-08-27 17:10:48,043 - INFO - Created VN ctest-vn-48324090
2026-08-27 17:10:48,104 - DEBUG - VN ctest-vn-48324090 UUID is 10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:48,498 - DEBUG - Response for create_network : {'network': {'id': '66e7add5-9a77-4242-b060-5d4060d8757d', 'name': 'ctest-vn-80500575', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'project_id': '504c8f0926174bdca79abd872e17daa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-vn-80500575'], 'port_security_enabled': True, 'description': ''}}
2026-08-27 17:10:48,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5751ccb-4d3e-45e5-b07a-93a975cd4835', 'name': '', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'network_id': '66e7add5-9a77-4242-b060-5d4060d8757d', 'ip_version': 4, 'cidr': '182.39.95.64/26', 'allocation_pools': [{'start': '182.39.95.66', 'end': '182.39.95.126'}], 'gateway_ip': '182.39.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.39.95.66', 'tags': [], 'project_id': '504c8f0926174bdca79abd872e17daa2'}}
2026-08-27 17:10:48,727 - INFO - Created VN ctest-vn-80500575
2026-08-27 17:10:48,783 - DEBUG - VN ctest-vn-80500575 UUID is 66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:48,924 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090, 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-82334818:ctest-vn-80500575, 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-08-27 17:10:49,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10aea351-4685-4cd3-ae39-660ecdba8870', 'name': 'ctest-vn-48324090', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'project_id': '504c8f0926174bdca79abd872e17daa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['95f25d7c-27e1-43cf-920c-3f173452b6ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-vn-48324090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-policy-allow-all-82866463']], 'subnet_ipam': [{'subnet_cidr': '118.135.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-27 17:10:49,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66e7add5-9a77-4242-b060-5d4060d8757d', 'name': 'ctest-vn-80500575', 'tenant_id': '504c8f0926174bdca79abd872e17daa2', 'project_id': '504c8f0926174bdca79abd872e17daa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e5751ccb-4d3e-45e5-b07a-93a975cd4835'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-vn-80500575'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-policy-allow-all-82866463']], 'subnet_ipam': [{'subnet_cidr': '182.39.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-27 17:10:49,775 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-27 17:10:50,151 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-27 17:10:50,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80
2026-08-27 17:10:50,211 - DEBUG - Requesting: http://10.0.0.50:8082/project/504c8f09-2617-4bdc-a79a-bd872e17daa2
2026-08-27 17:10:50,313 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,333 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,348 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c2f0ab9-4039-4390-a0dd-98d0fb648fa6
2026-08-27 17:10:50,361 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c2f0ab9-4039-4390-a0dd-98d0fb648fa6
2026-08-27 17:10:50,372 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e9fb53f-85e6-4681-b8ce-2a9e609333d4
2026-08-27 17:10:50,380 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-27 17:10:50,380 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,392 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c2f0ab9-4039-4390-a0dd-98d0fb648fa6
2026-08-27 17:10:50,408 - INFO - Verified VN network id 12 for VN 10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,409 - INFO - Verifications in API Server for VN ctest-vn-48324090 passed
2026-08-27 17:10:50,409 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,419 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c2f0ab9-4039-4390-a0dd-98d0fb648fa6
2026-08-27 17:10:50,426 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c2f0ab9-4039-4390-a0dd-98d0fb648fa6
2026-08-27 17:10:50,432 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e9fb53f-85e6-4681-b8ce-2a9e609333d4
2026-08-27 17:10:50,446 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82334818', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1202077720025320659', 'uuid-lslong': '12554177650039097456'}, 'enable': 'true', 'created': '2026-08-27T17:10:47', 'last-modified': '2026-08-27T17:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.169915'}
2026-08-27 17:10:50,455 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-27 17:10:50,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48324090 passed
2026-08-27 17:10:50,455 - DEBUG - ====Verifying policy data for ctest-vn-48324090 in API_Server ======
2026-08-27 17:10:50,455 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-27 17:10:50,462 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80
2026-08-27 17:10:50,477 - DEBUG - Requesting: http://10.0.0.50:8082/project/504c8f09-2617-4bdc-a79a-bd872e17daa2
2026-08-27 17:10:50,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/10aea351-4685-4cd3-ae39-660ecdba8870
2026-08-27 17:10:50,580 - DEBUG - ==>Verifying data for policy with id: d831ad3a-3b05-49d4-9027-1b4c2b6c25e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-policy-allow-all-82866463']
2026-08-27 17:10:50,580 - INFO - VN ctest-vn-48324090 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-27 17:10:50,580 - DEBUG - Verifying the vn in opserver
2026-08-27 17:10:50,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090 virtual network link through opserver 10.0.0.50
2026-08-27 17:10:50,580 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-27 17:10:50,952 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-27 17:10:51,058 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090?flat'}
2026-08-27 17:10:51,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-48324090 is found in opserver
2026-08-27 17:10:51,074 - DEBUG - Do not have enough data to verify VN in agent
2026-08-27 17:10:51,082 - DEBUG - VRF ids for VN ctest-vn-48324090: {}
2026-08-27 17:10:51,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-27 17:10:51,093 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80
2026-08-27 17:10:51,112 - DEBUG - Requesting: http://10.0.0.50:8082/project/504c8f09-2617-4bdc-a79a-bd872e17daa2
2026-08-27 17:10:51,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,227 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,239 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86200bba-6923-4f41-93c8-7b7dd3cf17b7
2026-08-27 17:10:51,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86200bba-6923-4f41-93c8-7b7dd3cf17b7
2026-08-27 17:10:51,261 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1073f786-6a76-42eb-b3f1-1f20a3d88f4e
2026-08-27 17:10:51,273 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-27 17:10:51,273 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86200bba-6923-4f41-93c8-7b7dd3cf17b7
2026-08-27 17:10:51,320 - INFO - Verified VN network id 13 for VN 66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,321 - INFO - Verifications in API Server for VN ctest-vn-80500575 passed
2026-08-27 17:10:51,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,338 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86200bba-6923-4f41-93c8-7b7dd3cf17b7
2026-08-27 17:10:51,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86200bba-6923-4f41-93c8-7b7dd3cf17b7
2026-08-27 17:10:51,365 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1073f786-6a76-42eb-b3f1-1f20a3d88f4e
2026-08-27 17:10:51,386 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-80500575', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82334818', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7415086444419957314', 'uuid-lslong': '12709260679523628413'}, 'enable': 'true', 'created': '2026-08-27T17:10:48', 'last-modified': '2026-08-27T17:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.832874'}
2026-08-27 17:10:51,396 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-27 17:10:51,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80500575 passed
2026-08-27 17:10:51,396 - DEBUG - ====Verifying policy data for ctest-vn-80500575 in API_Server ======
2026-08-27 17:10:51,396 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-27 17:10:51,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80
2026-08-27 17:10:51,422 - DEBUG - Requesting: http://10.0.0.50:8082/project/504c8f09-2617-4bdc-a79a-bd872e17daa2
2026-08-27 17:10:51,520 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/66e7add5-9a77-4242-b060-5d4060d8757d
2026-08-27 17:10:51,535 - DEBUG - ==>Verifying data for policy with id: d831ad3a-3b05-49d4-9027-1b4c2b6c25e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-82334818', 'ctest-policy-allow-all-82866463']
2026-08-27 17:10:51,535 - INFO - VN ctest-vn-80500575 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-27 17:10:51,535 - DEBUG - Verifying the vn in opserver
2026-08-27 17:10:51,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-80500575 virtual network link through opserver 10.0.0.50
2026-08-27 17:10:51,536 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-27 17:10:51,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-80500575', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-80500575?flat'}
2026-08-27 17:10:51,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82334818:ctest-vn-80500575 is found in opserver
2026-08-27 17:10:51,571 - DEBUG - Do not have enough data to verify VN in agent
2026-08-27 17:10:51,580 - DEBUG - VRF ids for VN ctest-vn-80500575: {}
2026-08-27 17:10:51,670 - DEBUG - Services list from nova: [