2026-03-18 20:31:12,695 - INFO - Domain Default found not creating
2026-03-18 20:31:12,891 - INFO - Project ctest-TestBasicPolicy-72147527 not found, creating it
2026-03-18 20:31:13,389 - INFO - Created Project:ctest-TestBasicPolicy-72147527, ID : 3d619995-50e5-4ed1-851e-9178f470360a
2026-03-18 20:31:14,979 - INFO - ================================================================================
2026-03-18 20:31:14,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-18 20:31:14,979 - 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-03-18 20:31:15,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-03-18 20:31:15,239 - INFO - Initial checks done. Running the testcase now
2026-03-18 20:31:15,239 - INFO -
2026-03-18 20:31:15,845 - DEBUG - Response for create_network : {'network': {'id': '8b460b9a-fc12-4ab4-91c6-f48b294ac125', 'name': 'ctest-vn-50806039', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'project_id': '3d61999550e54ed1851e9178f470360a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-vn-50806039'], 'port_security_enabled': True, 'description': ''}}
2026-03-18 20:31:16,057 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd814c3db-1306-45f7-b42f-18ce19209b55', 'name': '', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'network_id': '8b460b9a-fc12-4ab4-91c6-f48b294ac125', 'ip_version': 4, 'cidr': '184.161.15.192/26', 'allocation_pools': [{'start': '184.161.15.194', 'end': '184.161.15.254'}], 'gateway_ip': '184.161.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.161.15.194', 'tags': [], 'project_id': '3d61999550e54ed1851e9178f470360a'}}
2026-03-18 20:31:16,077 - INFO - Created VN ctest-vn-50806039
2026-03-18 20:31:16,129 - DEBUG - VN ctest-vn-50806039 UUID is 8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:16,440 - DEBUG - Response for create_network : {'network': {'id': '984dbd25-8f7f-407c-a4cd-57f85c469c73', 'name': 'ctest-vn-21994939', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'project_id': '3d61999550e54ed1851e9178f470360a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-vn-21994939'], 'port_security_enabled': True, 'description': ''}}
2026-03-18 20:31:16,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b82f7070-8feb-4b11-83d1-fc8921d9837f', 'name': '', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'network_id': '984dbd25-8f7f-407c-a4cd-57f85c469c73', 'ip_version': 4, 'cidr': '157.92.227.192/26', 'allocation_pools': [{'start': '157.92.227.194', 'end': '157.92.227.254'}], 'gateway_ip': '157.92.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.92.227.194', 'tags': [], 'project_id': '3d61999550e54ed1851e9178f470360a'}}
2026-03-18 20:31:16,686 - INFO - Created VN ctest-vn-21994939
2026-03-18 20:31:16,742 - DEBUG - VN ctest-vn-21994939 UUID is 984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:16,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039, 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-72147527:ctest-vn-21994939, 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-03-18 20:31:17,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b460b9a-fc12-4ab4-91c6-f48b294ac125', 'name': 'ctest-vn-50806039', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'project_id': '3d61999550e54ed1851e9178f470360a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d814c3db-1306-45f7-b42f-18ce19209b55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-vn-50806039'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-policy-allow-all-73395754']], 'subnet_ipam': [{'subnet_cidr': '184.161.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-18 20:31:17,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '984dbd25-8f7f-407c-a4cd-57f85c469c73', 'name': 'ctest-vn-21994939', 'tenant_id': '3d61999550e54ed1851e9178f470360a', 'project_id': '3d61999550e54ed1851e9178f470360a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b82f7070-8feb-4b11-83d1-fc8921d9837f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-vn-21994939'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-policy-allow-all-73395754']], 'subnet_ipam': [{'subnet_cidr': '157.92.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-18 20:31:17,593 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-18 20:31:17,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-18 20:31:17,932 - DEBUG - Requesting: http://10.0.0.38:8082/domain/121fb3cc-4567-4db5-ab71-cfd9b23a5e3b
2026-03-18 20:31:17,945 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d619995-50e5-4ed1-851e-9178f470360a
2026-03-18 20:31:18,019 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,032 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f15ddbf-f208-45cc-85a9-c262df4e946f
2026-03-18 20:31:18,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f15ddbf-f208-45cc-85a9-c262df4e946f
2026-03-18 20:31:18,057 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb1e670f-f464-48d5-8ae5-510eb2abcefc
2026-03-18 20:31:18,063 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-18 20:31:18,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f15ddbf-f208-45cc-85a9-c262df4e946f
2026-03-18 20:31:18,088 - INFO - Verified VN network id 11 for VN 8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,088 - INFO - Verifications in API Server for VN ctest-vn-50806039 passed
2026-03-18 20:31:18,088 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f15ddbf-f208-45cc-85a9-c262df4e946f
2026-03-18 20:31:18,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f15ddbf-f208-45cc-85a9-c262df4e946f
2026-03-18 20:31:18,116 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb1e670f-f464-48d5-8ae5-510eb2abcefc
2026-03-18 20:31:18,129 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72147527', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10035721579923655348', 'uuid-lslong': '10504352059418657061'}, 'enable': 'true', 'created': '2026-03-18T20:31:15', 'last-modified': '2026-03-18T20:31:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975168'}
2026-03-18 20:31:18,135 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-18 20:31:18,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50806039 passed
2026-03-18 20:31:18,135 - DEBUG - ====Verifying policy data for ctest-vn-50806039 in API_Server ======
2026-03-18 20:31:18,136 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-18 20:31:18,141 - DEBUG - Requesting: http://10.0.0.38:8082/domain/121fb3cc-4567-4db5-ab71-cfd9b23a5e3b
2026-03-18 20:31:18,152 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d619995-50e5-4ed1-851e-9178f470360a
2026-03-18 20:31:18,229 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b460b9a-fc12-4ab4-91c6-f48b294ac125
2026-03-18 20:31:18,239 - DEBUG - ==>Verifying data for policy with id: 83f9f8d7-4b0d-4376-93ae-029621f55ab2, fqn: ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-policy-allow-all-73395754']
2026-03-18 20:31:18,239 - INFO - VN ctest-vn-50806039 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-18 20:31:18,239 - DEBUG - Verifying the vn in opserver
2026-03-18 20:31:18,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039 virtual network link through opserver 10.0.0.38
2026-03-18 20:31:18,239 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-18 20:31:18,545 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-18 20:31:18,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039?flat'}
2026-03-18 20:31:18,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-50806039 is found in opserver
2026-03-18 20:31:18,623 - DEBUG - Do not have enough data to verify VN in agent
2026-03-18 20:31:18,627 - DEBUG - VRF ids for VN ctest-vn-50806039: {}
2026-03-18 20:31:18,627 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-18 20:31:18,633 - DEBUG - Requesting: http://10.0.0.38:8082/domain/121fb3cc-4567-4db5-ab71-cfd9b23a5e3b
2026-03-18 20:31:18,645 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d619995-50e5-4ed1-851e-9178f470360a
2026-03-18 20:31:18,724 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,738 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6084adbb-5f7d-4953-afbf-29630c80f615
2026-03-18 20:31:18,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6084adbb-5f7d-4953-afbf-29630c80f615
2026-03-18 20:31:18,763 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b86085a-88c5-4250-9c0a-cb9c1dbd5095
2026-03-18 20:31:18,771 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-18 20:31:18,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6084adbb-5f7d-4953-afbf-29630c80f615
2026-03-18 20:31:18,799 - INFO - Verified VN network id 12 for VN 984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,799 - INFO - Verifications in API Server for VN ctest-vn-21994939 passed
2026-03-18 20:31:18,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6084adbb-5f7d-4953-afbf-29630c80f615
2026-03-18 20:31:18,818 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6084adbb-5f7d-4953-afbf-29630c80f615
2026-03-18 20:31:18,827 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b86085a-88c5-4250-9c0a-cb9c1dbd5095
2026-03-18 20:31:18,840 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-21994939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72147527', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10974635835990687868', 'uuid-lslong': '11875244516657503347'}, 'enable': 'true', 'created': '2026-03-18T20:31:16', 'last-modified': '2026-03-18T20:31:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439539'}
2026-03-18 20:31:18,847 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-18 20:31:18,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21994939 passed
2026-03-18 20:31:18,847 - DEBUG - ====Verifying policy data for ctest-vn-21994939 in API_Server ======
2026-03-18 20:31:18,847 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-18 20:31:18,855 - DEBUG - Requesting: http://10.0.0.38:8082/domain/121fb3cc-4567-4db5-ab71-cfd9b23a5e3b
2026-03-18 20:31:18,866 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d619995-50e5-4ed1-851e-9178f470360a
2026-03-18 20:31:18,939 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/984dbd25-8f7f-407c-a4cd-57f85c469c73
2026-03-18 20:31:18,949 - DEBUG - ==>Verifying data for policy with id: 83f9f8d7-4b0d-4376-93ae-029621f55ab2, fqn: ['default-domain', 'ctest-TestBasicPolicy-72147527', 'ctest-policy-allow-all-73395754']
2026-03-18 20:31:18,949 - INFO - VN ctest-vn-21994939 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-18 20:31:18,949 - DEBUG - Verifying the vn in opserver
2026-03-18 20:31:18,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-21994939 virtual network link through opserver 10.0.0.38
2026-03-18 20:31:18,949 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-18 20:31:18,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-21994939', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-21994939?flat'}
2026-03-18 20:31:18,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72147527:ctest-vn-21994939 is found in opserver
2026-03-18 20:31:18,968 - DEBUG - Do not have enough data to verify VN in agent
2026-03-18 20:31:18,973 - DEBUG - VRF ids for VN ctest-vn-21994939: {}
2026-03-18 20:31:19,036 - DEBUG - Services list from nova: [