2026-02-19 11:17:22,791 - INFO - Domain Default found not creating 2026-02-19 11:17:22,936 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84625015 not found, creating it 2026-02-19 11:17:23,359 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84625015, ID : 7aac19d9-a356-4e64-bad6-be54cf88bd70 2026-02-19 11:17:24,742 - INFO - ================================================================================ 2026-02-19 11:17:24,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 11:17:25,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-19 11:17:25,000 - INFO - Initial checks done. Running the testcase now 2026-02-19 11:17:25,000 - INFO - 2026-02-19 11:17:25,000 - INFO - ================================================================================ 2026-02-19 11:17:25,000 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 11:17:25,000 - 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-02-19 11:17:25,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-19 11:17:25,288 - INFO - Initial checks done. Running the testcase now 2026-02-19 11:17:25,288 - INFO - 2026-02-19 11:17:25,640 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219, 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-84625015:ctest-vn4-03070219, 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-84625015:ctest-vn4-03070219, 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-84625015:ctest-vn4-03070219, 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-19 11:17:26,151 - DEBUG - Response for create_network : {'network': {'id': '34f956c3-77f5-477c-be15-0839e2c61e3c', 'name': 'ctest-vn4-03070219', 'tenant_id': '7aac19d9a3564e64bad6be54cf88bd70', 'project_id': '7aac19d9a3564e64bad6be54cf88bd70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84625015', 'ctest-vn4-03070219'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 11:17:26,314 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3d9959a-06b1-4b82-817d-031355b37c12', 'name': '', 'tenant_id': '7aac19d9a3564e64bad6be54cf88bd70', 'network_id': '34f956c3-77f5-477c-be15-0839e2c61e3c', 'ip_version': 4, 'cidr': '34.231.83.128/26', 'allocation_pools': [{'start': '34.231.83.130', 'end': '34.231.83.190'}], 'gateway_ip': '34.231.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.231.83.130', 'tags': [], 'project_id': '7aac19d9a3564e64bad6be54cf88bd70'}} 2026-02-19 11:17:26,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e0f4a98-5845-4889-baa7-57c3d75d1c9e', 'name': '', 'tenant_id': '7aac19d9a3564e64bad6be54cf88bd70', 'network_id': '34f956c3-77f5-477c-be15-0839e2c61e3c', 'ip_version': 6, 'cidr': '36ac:10cd:eca7:ec92:71c0:c89f::/96', 'allocation_pools': [{'start': '36ac:10cd:eca7:ec92:71c0:c89f:0:2', 'end': '36ac:10cd:eca7:ec92:71c0:c89f:ffff:fffe'}], 'gateway_ip': '36ac:10cd:eca7:ec92:71c0:c89f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36ac:10cd:eca7:ec92:71c0:c89f:0:2', 'tags': [], 'project_id': '7aac19d9a3564e64bad6be54cf88bd70'}} 2026-02-19 11:17:26,483 - INFO - Created VN ctest-vn4-03070219 2026-02-19 11:17:26,535 - DEBUG - VN ctest-vn4-03070219 UUID is 34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:26,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34f956c3-77f5-477c-be15-0839e2c61e3c', 'name': 'ctest-vn4-03070219', 'tenant_id': '7aac19d9a3564e64bad6be54cf88bd70', 'project_id': '7aac19d9a3564e64bad6be54cf88bd70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3d9959a-06b1-4b82-817d-031355b37c12', '5e0f4a98-5845-4889-baa7-57c3d75d1c9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84625015', 'ctest-vn4-03070219'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84625015', 'ctest-policy1-50241690']], 'subnet_ipam': [{'subnet_cidr': '34.231.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36ac:10cd:eca7:ec92:71c0:c89f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 11:17:26,895 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-19 11:17:27,189 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-19 11:17:27,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ed4f3a69-05cd-4b0e-821f-1df6097db24e 2026-02-19 11:17:27,233 - DEBUG - Requesting: http://10.0.0.33:8082/project/7aac19d9-a356-4e64-bad6-be54cf88bd70 2026-02-19 11:17:27,315 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,328 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,341 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:27,349 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:27,356 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/498cd422-1b95-42e3-84b1-6a6f441a2237 2026-02-19 11:17:27,365 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 11:17:27,365 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,374 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:27,388 - INFO - Verified VN network id 12 for VN 34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,388 - INFO - Verifications in API Server for VN ctest-vn4-03070219 passed 2026-02-19 11:17:27,388 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,396 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:27,403 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:27,409 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/498cd422-1b95-42e3-84b1-6a6f441a2237 2026-02-19 11:17:27,420 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84625015', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3817177556704380796', 'uuid-lslong': '13696862886428024380'}, 'enable': 'true', 'created': '2026-02-19T11:17:26', 'last-modified': '2026-02-19T11:17:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712112'} 2026-02-19 11:17:27,425 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 11:17:27,425 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03070219 passed 2026-02-19 11:17:27,425 - DEBUG - ====Verifying policy data for ctest-vn4-03070219 in API_Server ====== 2026-02-19 11:17:27,425 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-19 11:17:27,430 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ed4f3a69-05cd-4b0e-821f-1df6097db24e 2026-02-19 11:17:27,439 - DEBUG - Requesting: http://10.0.0.33:8082/project/7aac19d9-a356-4e64-bad6-be54cf88bd70 2026-02-19 11:17:27,512 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34f956c3-77f5-477c-be15-0839e2c61e3c 2026-02-19 11:17:27,525 - DEBUG - ==>Verifying data for policy with id: 7fed2d56-e6a3-4653-872d-5e6731bddbf2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84625015', 'ctest-policy1-50241690'] 2026-02-19 11:17:27,525 - INFO - VN ctest-vn4-03070219 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 11:17:27,525 - DEBUG - Verifying the vn in opserver 2026-02-19 11:17:27,525 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219 virtual network link through opserver 10.0.0.33 2026-02-19 11:17:27,525 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-19 11:17:27,815 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-19 11:17:27,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219?flat'} 2026-02-19 11:17:27,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84625015:ctest-vn4-03070219 is found in opserver 2026-02-19 11:17:27,880 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 11:17:27,884 - DEBUG - VRF ids for VN ctest-vn4-03070219: {} 2026-02-19 11:17:27,884 - DEBUG - ====Verifying data for ctest-policy1-50241690 in API_Server ====== 2026-02-19 11:17:27,884 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-19 11:17:27,889 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ed4f3a69-05cd-4b0e-821f-1df6097db24e 2026-02-19 11:17:27,899 - DEBUG - Requesting: http://10.0.0.33:8082/project/7aac19d9-a356-4e64-bad6-be54cf88bd70 2026-02-19 11:17:27,967 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/7fed2d56-e6a3-4653-872d-5e6731bddbf2 2026-02-19 11:17:27,975 - INFO - Verified policy ctest-policy1-50241690 in API Server, Result: True 2026-02-19 11:17:27,975 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 11:17:27,982 - INFO - Deleting VN ctest-vn4-03070219 2026-02-19 11:17:28,090 - DEBUG - Response for deleting network () 2026-02-19 11:17:28,090 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a8d55a77-245c-46f3-8f5e-c1eb54930f51 2026-02-19 11:17:28,095 - DEBUG - Response Code: 404 2026-02-19 11:17:28,095 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-19 11:17:28,100 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ed4f3a69-05cd-4b0e-821f-1df6097db24e 2026-02-19 11:17:28,152 - DEBUG - Requesting: http://10.0.0.33:8082/project/7aac19d9-a356-4e64-bad6-be54cf88bd70 2026-02-19 11:17:28,222 - INFO - Validated that VN ctest-vn4-03070219 is not found in API Server 2026-02-19 11:17:28,231 - DEBUG - VN ctest-vn4-03070219 is not present in Agent 10.0.0.33 2026-02-19 11:17:28,231 - INFO - Validated that VN ctest-vn4-03070219 is not in any agent 2026-02-19 11:17:28,243 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03070219 info 2026-02-19 11:17:28,265 - INFO - Deleted policy ctest-policy1-50241690 2026-02-19 11:17:28,423 - DEBUG - policy ctest-policy1-50241690 is not found in API Server 2026-02-19 11:17:28,676 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 11:17:28,676 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-19 11:17:28,676 - INFO - -------------------------------------------------------------------------------- 2026-02-19 11:17:28,964 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 11:17:28,964 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-19 11:17:28,964 - INFO - -------------------------------------------------------------------------------- 2026-02-19 11:17:29,625 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84625015, ID : 7aac19d9-a356-4e64-bad6-be54cf88bd70