2026-06-17 16:41:16,553 - INFO - Domain Default found not creating
2026-06-17 16:41:16,692 - INFO - Project ctest-TestBasicPolicy-90953880 not found, creating it
2026-06-17 16:41:17,150 - INFO - Created Project:ctest-TestBasicPolicy-90953880, ID : e85fd065-3268-4f92-8efe-7aa457ec60d9
2026-06-17 16:41:18,584 - INFO - ================================================================================
2026-06-17 16:41:18,584 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-17 16:41:18,584 - 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-17 16:41:18,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-06-17 16:41:18,844 - INFO - Initial checks done. Running the testcase now
2026-06-17 16:41:18,845 - INFO -
2026-06-17 16:41:19,408 - DEBUG - Response for create_network : {'network': {'id': '37bcd510-a8a1-45d5-95cd-a6841abdd31e', 'name': 'ctest-vn-19489880', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'project_id': 'e85fd06532684f928efe7aa457ec60d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-vn-19489880'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 16:41:19,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '18e530a5-5acb-4a15-9ab5-03a0b0d82584', 'name': '', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'network_id': '37bcd510-a8a1-45d5-95cd-a6841abdd31e', 'ip_version': 4, 'cidr': '143.2.10.64/26', 'allocation_pools': [{'start': '143.2.10.66', 'end': '143.2.10.126'}], 'gateway_ip': '143.2.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.2.10.66', 'tags': [], 'project_id': 'e85fd06532684f928efe7aa457ec60d9'}}
2026-06-17 16:41:19,601 - INFO - Created VN ctest-vn-19489880
2026-06-17 16:41:19,654 - DEBUG - VN ctest-vn-19489880 UUID is 37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:19,953 - DEBUG - Response for create_network : {'network': {'id': '57bd4bb9-d5f2-4825-b07f-eaab9a938a84', 'name': 'ctest-vn-61624320', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'project_id': 'e85fd06532684f928efe7aa457ec60d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-vn-61624320'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 16:41:20,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '112dafe7-d716-497a-a26f-1db8518026ca', 'name': '', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'network_id': '57bd4bb9-d5f2-4825-b07f-eaab9a938a84', 'ip_version': 4, 'cidr': '132.110.31.64/26', 'allocation_pools': [{'start': '132.110.31.66', 'end': '132.110.31.126'}], 'gateway_ip': '132.110.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.110.31.66', 'tags': [], 'project_id': 'e85fd06532684f928efe7aa457ec60d9'}}
2026-06-17 16:41:20,123 - INFO - Created VN ctest-vn-61624320
2026-06-17 16:41:20,174 - DEBUG - VN ctest-vn-61624320 UUID is 57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:20,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880, 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-90953880:ctest-vn-61624320, 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-17 16:41:20,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37bcd510-a8a1-45d5-95cd-a6841abdd31e', 'name': 'ctest-vn-19489880', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'project_id': 'e85fd06532684f928efe7aa457ec60d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18e530a5-5acb-4a15-9ab5-03a0b0d82584'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-vn-19489880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-policy-allow-all-10660059']], 'subnet_ipam': [{'subnet_cidr': '143.2.10.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 16:41:20,830 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57bd4bb9-d5f2-4825-b07f-eaab9a938a84', 'name': 'ctest-vn-61624320', 'tenant_id': 'e85fd06532684f928efe7aa457ec60d9', 'project_id': 'e85fd06532684f928efe7aa457ec60d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['112dafe7-d716-497a-a26f-1db8518026ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-vn-61624320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-policy-allow-all-10660059']], 'subnet_ipam': [{'subnet_cidr': '132.110.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 16:41:20,986 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-17 16:41:21,303 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-17 16:41:21,325 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700
2026-06-17 16:41:21,336 - DEBUG - Requesting: http://10.0.0.33:8082/project/e85fd065-3268-4f92-8efe-7aa457ec60d9
2026-06-17 16:41:21,402 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,413 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,421 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a9b45212-6a35-4c2f-bf12-615747de2f36
2026-06-17 16:41:21,428 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a9b45212-6a35-4c2f-bf12-615747de2f36
2026-06-17 16:41:21,435 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4990239f-6d45-4d36-bc8b-39941ff97a73
2026-06-17 16:41:21,440 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 16:41:21,440 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,449 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a9b45212-6a35-4c2f-bf12-615747de2f36
2026-06-17 16:41:21,462 - INFO - Verified VN network id 11 for VN 37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,462 - INFO - Verifications in API Server for VN ctest-vn-19489880 passed
2026-06-17 16:41:21,462 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,470 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a9b45212-6a35-4c2f-bf12-615747de2f36
2026-06-17 16:41:21,478 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a9b45212-6a35-4c2f-bf12-615747de2f36
2026-06-17 16:41:21,485 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4990239f-6d45-4d36-bc8b-39941ff97a73
2026-06-17 16:41:21,497 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90953880', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4016319235232974293', 'uuid-lslong': '10794466968191488798'}, 'enable': 'true', 'created': '2026-06-17T16:41:19', 'last-modified': '2026-06-17T16:41:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913114'}
2026-06-17 16:41:21,503 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 16:41:21,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19489880 passed
2026-06-17 16:41:21,503 - DEBUG - ====Verifying policy data for ctest-vn-19489880 in API_Server ======
2026-06-17 16:41:21,503 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-17 16:41:21,508 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700
2026-06-17 16:41:21,520 - DEBUG - Requesting: http://10.0.0.33:8082/project/e85fd065-3268-4f92-8efe-7aa457ec60d9
2026-06-17 16:41:21,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37bcd510-a8a1-45d5-95cd-a6841abdd31e
2026-06-17 16:41:21,601 - DEBUG - ==>Verifying data for policy with id: efef8d3d-cba4-467a-8b65-2679e6b4bf59, fqn: ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-policy-allow-all-10660059']
2026-06-17 16:41:21,601 - INFO - VN ctest-vn-19489880 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 16:41:21,601 - DEBUG - Verifying the vn in opserver
2026-06-17 16:41:21,601 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880 virtual network link through opserver 10.0.0.33
2026-06-17 16:41:21,601 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-17 16:41:21,922 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-17 16:41:21,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880?flat'}
2026-06-17 16:41:21,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-19489880 is found in opserver
2026-06-17 16:41:21,979 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 16:41:21,983 - DEBUG - VRF ids for VN ctest-vn-19489880: {}
2026-06-17 16:41:21,983 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-17 16:41:21,987 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700
2026-06-17 16:41:21,998 - DEBUG - Requesting: http://10.0.0.33:8082/project/e85fd065-3268-4f92-8efe-7aa457ec60d9
2026-06-17 16:41:22,063 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,074 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,082 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09139d2f-9969-410b-9dbb-066ebe2493b2
2026-06-17 16:41:22,089 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09139d2f-9969-410b-9dbb-066ebe2493b2
2026-06-17 16:41:22,095 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1cedc6a5-a0dc-4326-b819-43c4ae69ddd4
2026-06-17 16:41:22,101 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 16:41:22,101 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,109 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09139d2f-9969-410b-9dbb-066ebe2493b2
2026-06-17 16:41:22,123 - INFO - Verified VN network id 12 for VN 57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,123 - INFO - Verifications in API Server for VN ctest-vn-61624320 passed
2026-06-17 16:41:22,123 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,131 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09139d2f-9969-410b-9dbb-066ebe2493b2
2026-06-17 16:41:22,138 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09139d2f-9969-410b-9dbb-066ebe2493b2
2026-06-17 16:41:22,144 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1cedc6a5-a0dc-4326-b819-43c4ae69ddd4
2026-06-17 16:41:22,155 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-61624320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90953880', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6322292713428502565', 'uuid-lslong': '12718141895471237764'}, 'enable': 'true', 'created': '2026-06-17T16:41:19', 'last-modified': '2026-06-17T16:41:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343077'}
2026-06-17 16:41:22,160 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 16:41:22,160 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61624320 passed
2026-06-17 16:41:22,161 - DEBUG - ====Verifying policy data for ctest-vn-61624320 in API_Server ======
2026-06-17 16:41:22,161 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-17 16:41:22,166 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700
2026-06-17 16:41:22,175 - DEBUG - Requesting: http://10.0.0.33:8082/project/e85fd065-3268-4f92-8efe-7aa457ec60d9
2026-06-17 16:41:22,240 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57bd4bb9-d5f2-4825-b07f-eaab9a938a84
2026-06-17 16:41:22,249 - DEBUG - ==>Verifying data for policy with id: efef8d3d-cba4-467a-8b65-2679e6b4bf59, fqn: ['default-domain', 'ctest-TestBasicPolicy-90953880', 'ctest-policy-allow-all-10660059']
2026-06-17 16:41:22,249 - INFO - VN ctest-vn-61624320 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 16:41:22,249 - DEBUG - Verifying the vn in opserver
2026-06-17 16:41:22,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-61624320 virtual network link through opserver 10.0.0.33
2026-06-17 16:41:22,249 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-17 16:41:22,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-61624320', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-61624320?flat'}
2026-06-17 16:41:22,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90953880:ctest-vn-61624320 is found in opserver
2026-06-17 16:41:22,266 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 16:41:22,270 - DEBUG - VRF ids for VN ctest-vn-61624320: {}
2026-06-17 16:41:22,321 - DEBUG - Services list from nova: [