2026-06-11 21:13:14,764 - INFO - Domain Default found not creating 2026-06-11 21:13:14,917 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09573642 not found, creating it 2026-06-11 21:13:15,379 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09573642, ID : f0452f58-9961-42db-8a3f-85f73e49869b 2026-06-11 21:13:16,874 - INFO - ================================================================================ 2026-06-11 21:13:16,874 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-11 21:13:17,131 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-06-11 21:13:17,131 - INFO - Initial checks done. Running the testcase now 2026-06-11 21:13:17,131 - INFO - 2026-06-11 21:13:17,131 - INFO - ================================================================================ 2026-06-11 21:13:17,131 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-11 21:13:17,131 - 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-06-11 21:13:17,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-06-11 21:13:17,418 - INFO - Initial checks done. Running the testcase now 2026-06-11 21:13:17,418 - INFO - 2026-06-11 21:13:17,799 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235, 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-09573642:ctest-vn4-30114235, 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-09573642:ctest-vn4-30114235, 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-09573642:ctest-vn4-30114235, 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-11 21:13:18,297 - DEBUG - Response for create_network : {'network': {'id': 'ce45098d-0231-4f6b-9c79-b6a265d97d7f', 'name': 'ctest-vn4-30114235', 'tenant_id': 'f0452f58996142db8a3f85f73e49869b', 'project_id': 'f0452f58996142db8a3f85f73e49869b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09573642', 'ctest-vn4-30114235'], 'port_security_enabled': True, 'description': ''}} 2026-06-11 21:13:18,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fd67d6a-f82b-422d-b422-ed7ea7aa615d', 'name': '', 'tenant_id': 'f0452f58996142db8a3f85f73e49869b', 'network_id': 'ce45098d-0231-4f6b-9c79-b6a265d97d7f', 'ip_version': 4, 'cidr': '4.8.163.128/26', 'allocation_pools': [{'start': '4.8.163.130', 'end': '4.8.163.190'}], 'gateway_ip': '4.8.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.8.163.130', 'tags': [], 'project_id': 'f0452f58996142db8a3f85f73e49869b'}} 2026-06-11 21:13:18,628 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b257c709-5a73-47cc-aee9-94788a09b186', 'name': '', 'tenant_id': 'f0452f58996142db8a3f85f73e49869b', 'network_id': 'ce45098d-0231-4f6b-9c79-b6a265d97d7f', 'ip_version': 6, 'cidr': '3a4e:e97b:692a:2ad0:f79b:b908::/96', 'allocation_pools': [{'start': '3a4e:e97b:692a:2ad0:f79b:b908:0:2', 'end': '3a4e:e97b:692a:2ad0:f79b:b908:ffff:fffe'}], 'gateway_ip': '3a4e:e97b:692a:2ad0:f79b:b908:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a4e:e97b:692a:2ad0:f79b:b908:0:2', 'tags': [], 'project_id': 'f0452f58996142db8a3f85f73e49869b'}} 2026-06-11 21:13:18,646 - INFO - Created VN ctest-vn4-30114235 2026-06-11 21:13:18,697 - DEBUG - VN ctest-vn4-30114235 UUID is ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:18,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce45098d-0231-4f6b-9c79-b6a265d97d7f', 'name': 'ctest-vn4-30114235', 'tenant_id': 'f0452f58996142db8a3f85f73e49869b', 'project_id': 'f0452f58996142db8a3f85f73e49869b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fd67d6a-f82b-422d-b422-ed7ea7aa615d', 'b257c709-5a73-47cc-aee9-94788a09b186'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09573642', 'ctest-vn4-30114235'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09573642', 'ctest-policy1-98925177']], 'subnet_ipam': [{'subnet_cidr': '4.8.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a4e:e97b:692a:2ad0:f79b:b908::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-11 21:13:19,033 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-11 21:13:19,363 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-11 21:13:19,388 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c 2026-06-11 21:13:19,400 - DEBUG - Requesting: http://10.0.0.33:8082/project/f0452f58-9961-42db-8a3f-85f73e49869b 2026-06-11 21:13:19,469 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,492 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,500 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:19,507 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:19,513 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a54f053d-2cb2-4668-9351-d59bab911269 2026-06-11 21:13:19,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-11 21:13:19,519 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,526 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:19,539 - INFO - Verified VN network id 11 for VN ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,539 - INFO - Verifications in API Server for VN ctest-vn4-30114235 passed 2026-06-11 21:13:19,539 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,549 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:19,555 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:19,563 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a54f053d-2cb2-4668-9351-d59bab911269 2026-06-11 21:13:19,575 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09573642', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14863296646438014827', 'uuid-lslong': '11275243950708456831'}, 'enable': 'true', 'created': '2026-06-11T21:13:18', 'last-modified': '2026-06-11T21:13:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725292'} 2026-06-11 21:13:19,583 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-11 21:13:19,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30114235 passed 2026-06-11 21:13:19,584 - DEBUG - ====Verifying policy data for ctest-vn4-30114235 in API_Server ====== 2026-06-11 21:13:19,584 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-11 21:13:19,593 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c 2026-06-11 21:13:19,603 - DEBUG - Requesting: http://10.0.0.33:8082/project/f0452f58-9961-42db-8a3f-85f73e49869b 2026-06-11 21:13:19,677 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ce45098d-0231-4f6b-9c79-b6a265d97d7f 2026-06-11 21:13:19,686 - DEBUG - ==>Verifying data for policy with id: b8e10722-e04b-449a-af04-b2be34c2df62, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09573642', 'ctest-policy1-98925177'] 2026-06-11 21:13:19,686 - INFO - VN ctest-vn4-30114235 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-11 21:13:19,686 - DEBUG - Verifying the vn in opserver 2026-06-11 21:13:19,686 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235 virtual network link through opserver 10.0.0.33 2026-06-11 21:13:19,686 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-11 21:13:20,023 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-11 21:13:20,078 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235?flat'} 2026-06-11 21:13:20,078 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09573642:ctest-vn4-30114235 is found in opserver 2026-06-11 21:13:20,087 - DEBUG - Do not have enough data to verify VN in agent 2026-06-11 21:13:20,093 - DEBUG - VRF ids for VN ctest-vn4-30114235: {} 2026-06-11 21:13:20,093 - DEBUG - ====Verifying data for ctest-policy1-98925177 in API_Server ====== 2026-06-11 21:13:20,093 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-11 21:13:20,098 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c 2026-06-11 21:13:20,108 - DEBUG - Requesting: http://10.0.0.33:8082/project/f0452f58-9961-42db-8a3f-85f73e49869b 2026-06-11 21:13:20,178 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/b8e10722-e04b-449a-af04-b2be34c2df62 2026-06-11 21:13:20,186 - INFO - Verified policy ctest-policy1-98925177 in API Server, Result: True 2026-06-11 21:13:20,186 - INFO - Done with setup and verification, moving onto test .. 2026-06-11 21:13:20,195 - INFO - Deleting VN ctest-vn4-30114235 2026-06-11 21:13:20,303 - DEBUG - Response for deleting network () 2026-06-11 21:13:20,304 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/18cc6e95-6c6a-4ff6-8617-68b7d92c14c8 2026-06-11 21:13:20,308 - DEBUG - Response Code: 404 2026-06-11 21:13:20,308 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-11 21:13:20,312 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c 2026-06-11 21:13:20,365 - DEBUG - Requesting: http://10.0.0.33:8082/project/f0452f58-9961-42db-8a3f-85f73e49869b 2026-06-11 21:13:20,434 - INFO - Validated that VN ctest-vn4-30114235 is not found in API Server 2026-06-11 21:13:20,443 - DEBUG - VN ctest-vn4-30114235 is not present in Agent 10.0.0.33 2026-06-11 21:13:20,443 - INFO - Validated that VN ctest-vn4-30114235 is not in any agent 2026-06-11 21:13:20,457 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30114235 info 2026-06-11 21:13:20,480 - INFO - Deleted policy ctest-policy1-98925177 2026-06-11 21:13:20,637 - DEBUG - policy ctest-policy1-98925177 is not found in API Server 2026-06-11 21:13:20,897 - DEBUG - No XMPP flaps were noticed during the test 2026-06-11 21:13:20,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-06-11 21:13:20,897 - INFO - -------------------------------------------------------------------------------- 2026-06-11 21:13:21,194 - DEBUG - No XMPP flaps were noticed during the test 2026-06-11 21:13:21,194 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-11 21:13:21,194 - INFO - -------------------------------------------------------------------------------- 2026-06-11 21:13:21,900 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09573642, ID : f0452f58-9961-42db-8a3f-85f73e49869b