2026-06-18 16:46:17,861 - INFO - Domain Default found not creating
2026-06-18 16:46:18,063 - INFO - Project ctest-TestBasicPolicy-15675979 not found, creating it
2026-06-18 16:46:18,535 - INFO - Created Project:ctest-TestBasicPolicy-15675979, ID : 25800002-11ed-4152-be0f-e61a701800d8
2026-06-18 16:46:20,267 - INFO - ================================================================================
2026-06-18 16:46:20,267 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-18 16:46:20,267 - 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 16:46:20,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-06-18 16:46:20,549 - INFO - Initial checks done. Running the testcase now
2026-06-18 16:46:20,549 - INFO -
2026-06-18 16:46:21,206 - DEBUG - Response for create_network : {'network': {'id': 'ddbf0275-9c82-4a89-95d1-67b533978c7a', 'name': 'ctest-vn-85986003', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'project_id': '2580000211ed4152be0fe61a701800d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-vn-85986003'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 16:46:21,436 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c616e8e-c073-4fec-a238-a3273ed775f8', 'name': '', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'network_id': 'ddbf0275-9c82-4a89-95d1-67b533978c7a', 'ip_version': 4, 'cidr': '161.48.63.0/26', 'allocation_pools': [{'start': '161.48.63.2', 'end': '161.48.63.62'}], 'gateway_ip': '161.48.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.48.63.2', 'tags': [], 'project_id': '2580000211ed4152be0fe61a701800d8'}}
2026-06-18 16:46:21,453 - INFO - Created VN ctest-vn-85986003
2026-06-18 16:46:21,510 - DEBUG - VN ctest-vn-85986003 UUID is ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:21,846 - DEBUG - Response for create_network : {'network': {'id': 'a66a70ad-6949-4a73-93bb-bbc9a175ec10', 'name': 'ctest-vn-03598902', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'project_id': '2580000211ed4152be0fe61a701800d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-vn-03598902'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 16:46:22,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '761c3610-5001-42bb-94bf-26c8224ecab7', 'name': '', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'network_id': 'a66a70ad-6949-4a73-93bb-bbc9a175ec10', 'ip_version': 4, 'cidr': '46.125.211.128/26', 'allocation_pools': [{'start': '46.125.211.130', 'end': '46.125.211.190'}], 'gateway_ip': '46.125.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.125.211.130', 'tags': [], 'project_id': '2580000211ed4152be0fe61a701800d8'}}
2026-06-18 16:46:22,060 - INFO - Created VN ctest-vn-03598902
2026-06-18 16:46:22,110 - DEBUG - VN ctest-vn-03598902 UUID is a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:22,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003, 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-15675979:ctest-vn-03598902, 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 16:46:22,592 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddbf0275-9c82-4a89-95d1-67b533978c7a', 'name': 'ctest-vn-85986003', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'project_id': '2580000211ed4152be0fe61a701800d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c616e8e-c073-4fec-a238-a3273ed775f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-vn-85986003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-policy-allow-all-12645458']], 'subnet_ipam': [{'subnet_cidr': '161.48.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 16:46:22,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a66a70ad-6949-4a73-93bb-bbc9a175ec10', 'name': 'ctest-vn-03598902', 'tenant_id': '2580000211ed4152be0fe61a701800d8', 'project_id': '2580000211ed4152be0fe61a701800d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['761c3610-5001-42bb-94bf-26c8224ecab7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-vn-03598902'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-policy-allow-all-12645458']], 'subnet_ipam': [{'subnet_cidr': '46.125.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 16:46:22,998 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 16:46:23,369 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 16:46:23,401 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b6d7112-87e2-4244-ac07-ab1670d7fae9
2026-06-18 16:46:23,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/25800002-11ed-4152-be0f-e61a701800d8
2026-06-18 16:46:23,490 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,516 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69e13659-cf4c-4a70-98e0-12a133ec760c
2026-06-18 16:46:23,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69e13659-cf4c-4a70-98e0-12a133ec760c
2026-06-18 16:46:23,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1262355b-9808-40df-af0d-2a6a13d75495
2026-06-18 16:46:23,543 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 16:46:23,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69e13659-cf4c-4a70-98e0-12a133ec760c
2026-06-18 16:46:23,571 - INFO - Verified VN network id 11 for VN ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,572 - INFO - Verifications in API Server for VN ctest-vn-85986003 passed
2026-06-18 16:46:23,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,583 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69e13659-cf4c-4a70-98e0-12a133ec760c
2026-06-18 16:46:23,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69e13659-cf4c-4a70-98e0-12a133ec760c
2026-06-18 16:46:23,601 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1262355b-9808-40df-af0d-2a6a13d75495
2026-06-18 16:46:23,618 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15675979', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15978492707094022793', 'uuid-lslong': '10795523809736100986'}, 'enable': 'true', 'created': '2026-06-18T16:46:21', 'last-modified': '2026-06-18T16:46:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051184'}
2026-06-18 16:46:23,628 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 16:46:23,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85986003 passed
2026-06-18 16:46:23,628 - DEBUG - ====Verifying policy data for ctest-vn-85986003 in API_Server ======
2026-06-18 16:46:23,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 16:46:23,636 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b6d7112-87e2-4244-ac07-ab1670d7fae9
2026-06-18 16:46:23,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/25800002-11ed-4152-be0f-e61a701800d8
2026-06-18 16:46:23,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ddbf0275-9c82-4a89-95d1-67b533978c7a
2026-06-18 16:46:23,735 - DEBUG - ==>Verifying data for policy with id: d244d793-e217-4edd-80a0-18b9049f9c6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-policy-allow-all-12645458']
2026-06-18 16:46:23,735 - INFO - VN ctest-vn-85986003 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 16:46:23,735 - DEBUG - Verifying the vn in opserver
2026-06-18 16:46:23,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003 virtual network link through opserver 10.0.0.50
2026-06-18 16:46:23,735 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 16:46:24,105 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 16:46:24,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003?flat'}
2026-06-18 16:46:24,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-85986003 is found in opserver
2026-06-18 16:46:24,175 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 16:46:24,182 - DEBUG - VRF ids for VN ctest-vn-85986003: {}
2026-06-18 16:46:24,182 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 16:46:24,188 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b6d7112-87e2-4244-ac07-ab1670d7fae9
2026-06-18 16:46:24,199 - DEBUG - Requesting: http://10.0.0.50:8082/project/25800002-11ed-4152-be0f-e61a701800d8
2026-06-18 16:46:24,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02a255c5-b562-4f1e-b629-7bdb262fb17e
2026-06-18 16:46:24,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02a255c5-b562-4f1e-b629-7bdb262fb17e
2026-06-18 16:46:24,310 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b956ce8-54e8-4d83-96a5-667de75110b2
2026-06-18 16:46:24,316 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 16:46:24,316 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,326 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02a255c5-b562-4f1e-b629-7bdb262fb17e
2026-06-18 16:46:24,340 - INFO - Verified VN network id 12 for VN a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,340 - INFO - Verifications in API Server for VN ctest-vn-03598902 passed
2026-06-18 16:46:24,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,349 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02a255c5-b562-4f1e-b629-7bdb262fb17e
2026-06-18 16:46:24,355 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02a255c5-b562-4f1e-b629-7bdb262fb17e
2026-06-18 16:46:24,362 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b956ce8-54e8-4d83-96a5-667de75110b2
2026-06-18 16:46:24,373 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-03598902', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15675979', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11991520847925430899', 'uuid-lslong': '10645308618891979792'}, 'enable': 'true', 'created': '2026-06-18T16:46:21', 'last-modified': '2026-06-18T16:46:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.570486'}
2026-06-18 16:46:24,380 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 16:46:24,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03598902 passed
2026-06-18 16:46:24,381 - DEBUG - ====Verifying policy data for ctest-vn-03598902 in API_Server ======
2026-06-18 16:46:24,381 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 16:46:24,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b6d7112-87e2-4244-ac07-ab1670d7fae9
2026-06-18 16:46:24,398 - DEBUG - Requesting: http://10.0.0.50:8082/project/25800002-11ed-4152-be0f-e61a701800d8
2026-06-18 16:46:24,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a66a70ad-6949-4a73-93bb-bbc9a175ec10
2026-06-18 16:46:24,477 - DEBUG - ==>Verifying data for policy with id: d244d793-e217-4edd-80a0-18b9049f9c6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-15675979', 'ctest-policy-allow-all-12645458']
2026-06-18 16:46:24,477 - INFO - VN ctest-vn-03598902 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 16:46:24,477 - DEBUG - Verifying the vn in opserver
2026-06-18 16:46:24,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-03598902 virtual network link through opserver 10.0.0.50
2026-06-18 16:46:24,477 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 16:46:24,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-03598902', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-03598902?flat'}
2026-06-18 16:46:24,487 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15675979:ctest-vn-03598902 is found in opserver
2026-06-18 16:46:24,499 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 16:46:24,506 - DEBUG - VRF ids for VN ctest-vn-03598902: {}
2026-06-18 16:46:24,573 - DEBUG - Services list from nova: [