2026-08-04 06:17:33,362 - INFO - Domain Default found not creating 2026-08-04 06:17:33,573 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05006599 not found, creating it 2026-08-04 06:17:34,117 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05006599, ID : b42b013b-2231-4782-a517-a3df94333eeb 2026-08-04 06:17:36,028 - INFO - ================================================================================ 2026-08-04 06:17:36,028 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-04 06:17:36,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-04 06:17:36,301 - INFO - Initial checks done. Running the testcase now 2026-08-04 06:17:36,301 - INFO - 2026-08-04 06:17:36,301 - INFO - ================================================================================ 2026-08-04 06:17:36,301 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-04 06:17:36,301 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-08-04 06:17:36,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-04 06:17:36,599 - INFO - Initial checks done. Running the testcase now 2026-08-04 06:17:36,599 - INFO - 2026-08-04 06:17:37,045 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750, 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-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750, 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-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750, 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-04 06:17:37,621 - DEBUG - Response for create_network : {'network': {'id': '00d7e08d-9e5a-4096-8daf-91c19dca51c3', 'name': 'ctest-vn4-48872750', 'tenant_id': 'b42b013b22314782a517a3df94333eeb', 'project_id': 'b42b013b22314782a517a3df94333eeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05006599', 'ctest-vn4-48872750'], 'port_security_enabled': True, 'description': ''}} 2026-08-04 06:17:37,897 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1212f28-8f79-4137-a62c-49d62540e150', 'name': '', 'tenant_id': 'b42b013b22314782a517a3df94333eeb', 'network_id': '00d7e08d-9e5a-4096-8daf-91c19dca51c3', 'ip_version': 4, 'cidr': '183.158.100.64/26', 'allocation_pools': [{'start': '183.158.100.66', 'end': '183.158.100.126'}], 'gateway_ip': '183.158.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.158.100.66', 'tags': [], 'project_id': 'b42b013b22314782a517a3df94333eeb'}} 2026-08-04 06:17:38,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '1828fbd8-1613-4b10-9b4b-e6f9c15b9d5c', 'name': '', 'tenant_id': 'b42b013b22314782a517a3df94333eeb', 'network_id': '00d7e08d-9e5a-4096-8daf-91c19dca51c3', 'ip_version': 6, 'cidr': '24d4:2211:9156:e6e2:daee:f3ec::/96', 'allocation_pools': [{'start': '24d4:2211:9156:e6e2:daee:f3ec:0:2', 'end': '24d4:2211:9156:e6e2:daee:f3ec:ffff:fffe'}], 'gateway_ip': '24d4:2211:9156:e6e2:daee:f3ec:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24d4:2211:9156:e6e2:daee:f3ec:0:2', 'tags': [], 'project_id': 'b42b013b22314782a517a3df94333eeb'}} 2026-08-04 06:17:38,112 - INFO - Created VN ctest-vn4-48872750 2026-08-04 06:17:38,165 - DEBUG - VN ctest-vn4-48872750 UUID is 00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:38,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00d7e08d-9e5a-4096-8daf-91c19dca51c3', 'name': 'ctest-vn4-48872750', 'tenant_id': 'b42b013b22314782a517a3df94333eeb', 'project_id': 'b42b013b22314782a517a3df94333eeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1212f28-8f79-4137-a62c-49d62540e150', '1828fbd8-1613-4b10-9b4b-e6f9c15b9d5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05006599', 'ctest-vn4-48872750'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05006599', 'ctest-policy1-28642158']], 'subnet_ipam': [{'subnet_cidr': '183.158.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24d4:2211:9156:e6e2:daee:f3ec::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-04 06:17:38,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-04 06:17:38,953 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-04 06:17:38,984 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9c93f504-bac6-4fd6-9e84-cb4b34ac1e18 2026-08-04 06:17:38,999 - DEBUG - Requesting: http://10.0.0.50:8082/project/b42b013b-2231-4782-a517-a3df94333eeb 2026-08-04 06:17:39,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,095 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:39,116 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:39,125 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c83a6541-c477-4f71-80a7-89b847095038 2026-08-04 06:17:39,133 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-04 06:17:39,133 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,143 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:39,159 - INFO - Verified VN network id 10 for VN 00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,159 - INFO - Verifications in API Server for VN ctest-vn4-48872750 passed 2026-08-04 06:17:39,159 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,169 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:39,177 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:39,185 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c83a6541-c477-4f71-80a7-89b847095038 2026-08-04 06:17:39,200 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05006599', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '60764018844516502', 'uuid-lslong': '10209539141034201539'}, 'enable': 'true', 'created': '2026-08-04T06:17:37', 'last-modified': '2026-08-04T06:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829043'} 2026-08-04 06:17:39,209 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-04 06:17:39,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48872750 passed 2026-08-04 06:17:39,209 - DEBUG - ====Verifying policy data for ctest-vn4-48872750 in API_Server ====== 2026-08-04 06:17:39,209 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-04 06:17:39,215 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9c93f504-bac6-4fd6-9e84-cb4b34ac1e18 2026-08-04 06:17:39,227 - DEBUG - Requesting: http://10.0.0.50:8082/project/b42b013b-2231-4782-a517-a3df94333eeb 2026-08-04 06:17:39,311 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/00d7e08d-9e5a-4096-8daf-91c19dca51c3 2026-08-04 06:17:39,322 - DEBUG - ==>Verifying data for policy with id: fc7f8e4b-00a1-488d-9f91-7f5926fe2729, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05006599', 'ctest-policy1-28642158'] 2026-08-04 06:17:39,322 - INFO - VN ctest-vn4-48872750 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-04 06:17:39,323 - DEBUG - Verifying the vn in opserver 2026-08-04 06:17:39,323 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750 virtual network link through opserver 10.0.0.50 2026-08-04 06:17:39,323 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-04 06:17:39,693 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-04 06:17:39,751 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750?flat'} 2026-08-04 06:17:39,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05006599:ctest-vn4-48872750 is found in opserver 2026-08-04 06:17:39,763 - DEBUG - Do not have enough data to verify VN in agent 2026-08-04 06:17:39,768 - DEBUG - VRF ids for VN ctest-vn4-48872750: {} 2026-08-04 06:17:39,768 - DEBUG - ====Verifying data for ctest-policy1-28642158 in API_Server ====== 2026-08-04 06:17:39,769 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-04 06:17:39,775 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9c93f504-bac6-4fd6-9e84-cb4b34ac1e18 2026-08-04 06:17:39,789 - DEBUG - Requesting: http://10.0.0.50:8082/project/b42b013b-2231-4782-a517-a3df94333eeb 2026-08-04 06:17:39,895 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/fc7f8e4b-00a1-488d-9f91-7f5926fe2729 2026-08-04 06:17:39,908 - INFO - Verified policy ctest-policy1-28642158 in API Server, Result: True 2026-08-04 06:17:39,909 - INFO - Done with setup and verification, moving onto test .. 2026-08-04 06:17:39,920 - INFO - Deleting VN ctest-vn4-48872750 2026-08-04 06:17:40,074 - DEBUG - Response for deleting network () 2026-08-04 06:17:40,074 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cb732230-ff76-4b38-879e-ef63ce76e04f 2026-08-04 06:17:40,080 - DEBUG - Response Code: 404 2026-08-04 06:17:40,080 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-04 06:17:40,087 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9c93f504-bac6-4fd6-9e84-cb4b34ac1e18 2026-08-04 06:17:40,143 - DEBUG - Requesting: http://10.0.0.50:8082/project/b42b013b-2231-4782-a517-a3df94333eeb 2026-08-04 06:17:40,223 - INFO - Validated that VN ctest-vn4-48872750 is not found in API Server 2026-08-04 06:17:40,235 - DEBUG - VN ctest-vn4-48872750 is not present in Agent 10.0.0.50 2026-08-04 06:17:40,235 - INFO - Validated that VN ctest-vn4-48872750 is not in any agent 2026-08-04 06:17:40,256 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48872750 info 2026-08-04 06:17:40,289 - INFO - Deleted policy ctest-policy1-28642158 2026-08-04 06:17:40,465 - DEBUG - policy ctest-policy1-28642158 is not found in API Server 2026-08-04 06:17:40,735 - DEBUG - No XMPP flaps were noticed during the test 2026-08-04 06:17:40,735 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-04 06:17:40,735 - INFO - -------------------------------------------------------------------------------- 2026-08-04 06:17:41,032 - DEBUG - No XMPP flaps were noticed during the test 2026-08-04 06:17:41,032 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-04 06:17:41,032 - INFO - -------------------------------------------------------------------------------- 2026-08-04 06:17:41,857 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05006599, ID : b42b013b-2231-4782-a517-a3df94333eeb