2026-02-12 12:30:26,965 - INFO - Domain Default found not creating
2026-02-12 12:30:27,193 - INFO - Project ctest-TestBasicPolicy-38052918 not found, creating it
2026-02-12 12:30:27,688 - INFO - Created Project:ctest-TestBasicPolicy-38052918, ID : bf2f0999-b65b-4a5a-bef6-db6f63bc447c
2026-02-12 12:30:29,427 - INFO - ================================================================================
2026-02-12 12:30:29,427 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-12 12:30:29,427 - 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-02-12 12:30:29,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2026-02-12 12:30:29,689 - INFO - Initial checks done. Running the testcase now
2026-02-12 12:30:29,689 - INFO -
2026-02-12 12:30:30,317 - DEBUG - Response for create_network : {'network': {'id': '0bff9064-d0a0-40c1-af66-c933ad1ad6d7', 'name': 'ctest-vn-15672207', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-vn-15672207'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 12:30:30,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d45b467-12e9-40d5-b7b4-7b9941e3f8bf', 'name': '', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'network_id': '0bff9064-d0a0-40c1-af66-c933ad1ad6d7', 'ip_version': 4, 'cidr': '214.225.244.128/26', 'allocation_pools': [{'start': '214.225.244.130', 'end': '214.225.244.190'}], 'gateway_ip': '214.225.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.225.244.130', 'tags': [], 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c'}}
2026-02-12 12:30:30,550 - INFO - Created VN ctest-vn-15672207
2026-02-12 12:30:30,604 - DEBUG - VN ctest-vn-15672207 UUID is 0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:30,962 - DEBUG - Response for create_network : {'network': {'id': '9760b960-6c4d-494f-954a-83a9fc88bf0f', 'name': 'ctest-vn-17238035', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-vn-17238035'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 12:30:31,216 - DEBUG - Response for create_subnet : {'subnet': {'id': '913b2476-d8c0-43f7-a4e9-cb97f00102b9', 'name': '', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'network_id': '9760b960-6c4d-494f-954a-83a9fc88bf0f', 'ip_version': 4, 'cidr': '213.240.129.64/26', 'allocation_pools': [{'start': '213.240.129.66', 'end': '213.240.129.126'}], 'gateway_ip': '213.240.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.240.129.66', 'tags': [], 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c'}}
2026-02-12 12:30:31,242 - INFO - Created VN ctest-vn-17238035
2026-02-12 12:30:31,300 - DEBUG - VN ctest-vn-17238035 UUID is 9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:31,429 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207, 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-38052918:ctest-vn-17238035, 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-02-12 12:30:31,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0bff9064-d0a0-40c1-af66-c933ad1ad6d7', 'name': 'ctest-vn-15672207', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d45b467-12e9-40d5-b7b4-7b9941e3f8bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-vn-15672207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-policy-allow-all-86905996']], 'subnet_ipam': [{'subnet_cidr': '214.225.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 12:30:31,996 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9760b960-6c4d-494f-954a-83a9fc88bf0f', 'name': 'ctest-vn-17238035', 'tenant_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'project_id': 'bf2f0999b65b4a5abef6db6f63bc447c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['913b2476-d8c0-43f7-a4e9-cb97f00102b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-vn-17238035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-policy-allow-all-86905996']], 'subnet_ipam': [{'subnet_cidr': '213.240.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 12:30:32,160 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-12 12:30:32,463 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-12 12:30:32,498 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1
2026-02-12 12:30:32,511 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf2f0999-b65b-4a5a-bef6-db6f63bc447c
2026-02-12 12:30:32,588 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,598 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,607 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cdfb3435-ed2b-4fcf-a217-e78e36228c7d
2026-02-12 12:30:32,614 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cdfb3435-ed2b-4fcf-a217-e78e36228c7d
2026-02-12 12:30:32,622 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/001b9d88-996e-42f2-8d9b-8e0f3df98c26
2026-02-12 12:30:32,628 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 12:30:32,628 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,637 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cdfb3435-ed2b-4fcf-a217-e78e36228c7d
2026-02-12 12:30:32,657 - INFO - Verified VN network id 12 for VN 0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,657 - INFO - Verifications in API Server for VN ctest-vn-15672207 passed
2026-02-12 12:30:32,657 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,667 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cdfb3435-ed2b-4fcf-a217-e78e36228c7d
2026-02-12 12:30:32,675 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cdfb3435-ed2b-4fcf-a217-e78e36228c7d
2026-02-12 12:30:32,684 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/001b9d88-996e-42f2-8d9b-8e0f3df98c26
2026-02-12 12:30:32,698 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38052918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '864568416149717185', 'uuid-lslong': '12639010628046608087'}, 'enable': 'true', 'created': '2026-02-12T12:30:30', 'last-modified': '2026-02-12T12:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980917'}
2026-02-12 12:30:32,704 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 12:30:32,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15672207 passed
2026-02-12 12:30:32,704 - DEBUG - ====Verifying policy data for ctest-vn-15672207 in API_Server ======
2026-02-12 12:30:32,705 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-12 12:30:32,710 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1
2026-02-12 12:30:32,722 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf2f0999-b65b-4a5a-bef6-db6f63bc447c
2026-02-12 12:30:32,803 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0bff9064-d0a0-40c1-af66-c933ad1ad6d7
2026-02-12 12:30:32,813 - DEBUG - ==>Verifying data for policy with id: 4284e157-59de-44fc-8c40-ef0e2807413a, fqn: ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-policy-allow-all-86905996']
2026-02-12 12:30:32,813 - INFO - VN ctest-vn-15672207 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 12:30:32,813 - DEBUG - Verifying the vn in opserver
2026-02-12 12:30:32,813 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207 virtual network link through opserver 10.0.0.141
2026-02-12 12:30:32,813 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-12 12:30:33,125 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-12 12:30:33,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207?flat'}
2026-02-12 12:30:33,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-15672207 is found in opserver
2026-02-12 12:30:33,206 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 12:30:33,213 - DEBUG - VRF ids for VN ctest-vn-15672207: {}
2026-02-12 12:30:33,213 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-12 12:30:33,219 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1
2026-02-12 12:30:33,232 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf2f0999-b65b-4a5a-bef6-db6f63bc447c
2026-02-12 12:30:33,311 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,326 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,336 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1775ea1b-41c5-408d-bd2d-a6548dc8a0ac
2026-02-12 12:30:33,344 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1775ea1b-41c5-408d-bd2d-a6548dc8a0ac
2026-02-12 12:30:33,353 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/65af56b8-d77f-4e39-8868-47e371a33f6e
2026-02-12 12:30:33,360 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 12:30:33,360 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,370 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1775ea1b-41c5-408d-bd2d-a6548dc8a0ac
2026-02-12 12:30:33,386 - INFO - Verified VN network id 13 for VN 9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,386 - INFO - Verifications in API Server for VN ctest-vn-17238035 passed
2026-02-12 12:30:33,386 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,398 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1775ea1b-41c5-408d-bd2d-a6548dc8a0ac
2026-02-12 12:30:33,410 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1775ea1b-41c5-408d-bd2d-a6548dc8a0ac
2026-02-12 12:30:33,418 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/65af56b8-d77f-4e39-8868-47e371a33f6e
2026-02-12 12:30:33,431 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-17238035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38052918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10907922121276344655', 'uuid-lslong': '10757555426037382927'}, 'enable': 'true', 'created': '2026-02-12T12:30:30', 'last-modified': '2026-02-12T12:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456391'}
2026-02-12 12:30:33,436 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 12:30:33,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17238035 passed
2026-02-12 12:30:33,437 - DEBUG - ====Verifying policy data for ctest-vn-17238035 in API_Server ======
2026-02-12 12:30:33,437 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-12 12:30:33,444 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1
2026-02-12 12:30:33,457 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf2f0999-b65b-4a5a-bef6-db6f63bc447c
2026-02-12 12:30:33,528 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9760b960-6c4d-494f-954a-83a9fc88bf0f
2026-02-12 12:30:33,538 - DEBUG - ==>Verifying data for policy with id: 4284e157-59de-44fc-8c40-ef0e2807413a, fqn: ['default-domain', 'ctest-TestBasicPolicy-38052918', 'ctest-policy-allow-all-86905996']
2026-02-12 12:30:33,539 - INFO - VN ctest-vn-17238035 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 12:30:33,539 - DEBUG - Verifying the vn in opserver
2026-02-12 12:30:33,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-17238035 virtual network link through opserver 10.0.0.141
2026-02-12 12:30:33,539 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-12 12:30:33,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-17238035', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-17238035?flat'}
2026-02-12 12:30:33,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38052918:ctest-vn-17238035 is found in opserver
2026-02-12 12:30:33,565 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 12:30:33,570 - DEBUG - VRF ids for VN ctest-vn-17238035: {}
2026-02-12 12:30:33,650 - DEBUG - Services list from nova: [