2026-06-17 16:41:09,438 - INFO - Domain Default found not creating 2026-06-17 16:41:09,594 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88791627 not found, creating it 2026-06-17 16:41:10,069 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88791627, ID : ad651464-5534-47af-bc36-c0675c6c0f55 2026-06-17 16:41:11,508 - INFO - ================================================================================ 2026-06-17 16:41:11,508 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 16:41:11,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-17 16:41:11,764 - INFO - Initial checks done. Running the testcase now 2026-06-17 16:41:11,764 - INFO - 2026-06-17 16:41:11,764 - INFO - ================================================================================ 2026-06-17 16:41:11,764 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 16:41:11,764 - 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-17 16:41:12,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-17 16:41:12,054 - INFO - Initial checks done. Running the testcase now 2026-06-17 16:41:12,055 - INFO - 2026-06-17 16:41:12,423 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600, 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-88791627:ctest-vn4-50510600, 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-88791627:ctest-vn4-50510600, 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-88791627:ctest-vn4-50510600, 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:12,893 - DEBUG - Response for create_network : {'network': {'id': 'a5b87474-b785-40d3-8633-3d5c2724a245', 'name': 'ctest-vn4-50510600', 'tenant_id': 'ad651464553447afbc36c0675c6c0f55', 'project_id': 'ad651464553447afbc36c0675c6c0f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88791627', 'ctest-vn4-50510600'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 16:41:13,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '8da767a9-b6e9-4ce5-872e-3331a9000b31', 'name': '', 'tenant_id': 'ad651464553447afbc36c0675c6c0f55', 'network_id': 'a5b87474-b785-40d3-8633-3d5c2724a245', 'ip_version': 4, 'cidr': '154.97.137.64/26', 'allocation_pools': [{'start': '154.97.137.66', 'end': '154.97.137.126'}], 'gateway_ip': '154.97.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.97.137.66', 'tags': [], 'project_id': 'ad651464553447afbc36c0675c6c0f55'}} 2026-06-17 16:41:13,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a223f49-99e3-46e8-8edd-ea4886fc8d2e', 'name': '', 'tenant_id': 'ad651464553447afbc36c0675c6c0f55', 'network_id': 'a5b87474-b785-40d3-8633-3d5c2724a245', 'ip_version': 6, 'cidr': '2f39:af0f:8879:568d:2cc0:37f3::/96', 'allocation_pools': [{'start': '2f39:af0f:8879:568d:2cc0:37f3:0:2', 'end': '2f39:af0f:8879:568d:2cc0:37f3:ffff:fffe'}], 'gateway_ip': '2f39:af0f:8879:568d:2cc0:37f3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f39:af0f:8879:568d:2cc0:37f3:0:2', 'tags': [], 'project_id': 'ad651464553447afbc36c0675c6c0f55'}} 2026-06-17 16:41:13,250 - INFO - Created VN ctest-vn4-50510600 2026-06-17 16:41:13,302 - DEBUG - VN ctest-vn4-50510600 UUID is a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:13,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5b87474-b785-40d3-8633-3d5c2724a245', 'name': 'ctest-vn4-50510600', 'tenant_id': 'ad651464553447afbc36c0675c6c0f55', 'project_id': 'ad651464553447afbc36c0675c6c0f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8da767a9-b6e9-4ce5-872e-3331a9000b31', '9a223f49-99e3-46e8-8edd-ea4886fc8d2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88791627', 'ctest-vn4-50510600'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88791627', 'ctest-policy1-09263037']], 'subnet_ipam': [{'subnet_cidr': '154.97.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f39:af0f:8879:568d:2cc0:37f3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 16:41:13,642 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-17 16:41:13,957 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-17 16:41:13,979 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700 2026-06-17 16:41:13,992 - DEBUG - Requesting: http://10.0.0.33:8082/project/ad651464-5534-47af-bc36-c0675c6c0f55 2026-06-17 16:41:14,058 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,067 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,080 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,085 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f6d02eed-2bb0-4f7e-a0bb-289d5b8cf133 2026-06-17 16:41:14,090 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 16:41:14,091 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,109 - INFO - Verified VN network id 11 for VN a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,110 - INFO - Verifications in API Server for VN ctest-vn4-50510600 passed 2026-06-17 16:41:14,110 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,118 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,124 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,129 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f6d02eed-2bb0-4f7e-a0bb-289d5b8cf133 2026-06-17 16:41:14,139 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88791627', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11941422456616861907', 'uuid-lslong': '9670140290897584709'}, 'enable': 'true', 'created': '2026-06-17T16:41:12', 'last-modified': '2026-06-17T16:41:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679975'} 2026-06-17 16:41:14,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 16:41:14,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50510600 passed 2026-06-17 16:41:14,145 - DEBUG - ====Verifying policy data for ctest-vn4-50510600 in API_Server ====== 2026-06-17 16:41:14,145 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-17 16:41:14,150 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700 2026-06-17 16:41:14,160 - DEBUG - Requesting: http://10.0.0.33:8082/project/ad651464-5534-47af-bc36-c0675c6c0f55 2026-06-17 16:41:14,228 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a5b87474-b785-40d3-8633-3d5c2724a245 2026-06-17 16:41:14,237 - DEBUG - ==>Verifying data for policy with id: 33b0afbd-2b5b-4c48-933f-c246c30cb3d5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88791627', 'ctest-policy1-09263037'] 2026-06-17 16:41:14,237 - INFO - VN ctest-vn4-50510600 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 16:41:14,237 - DEBUG - Verifying the vn in opserver 2026-06-17 16:41:14,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600 virtual network link through opserver 10.0.0.33 2026-06-17 16:41:14,238 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-17 16:41:14,554 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-17 16:41:14,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600?flat'} 2026-06-17 16:41:14,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88791627:ctest-vn4-50510600 is found in opserver 2026-06-17 16:41:14,616 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 16:41:14,620 - DEBUG - VRF ids for VN ctest-vn4-50510600: {} 2026-06-17 16:41:14,620 - DEBUG - ====Verifying data for ctest-policy1-09263037 in API_Server ====== 2026-06-17 16:41:14,621 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-17 16:41:14,626 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700 2026-06-17 16:41:14,635 - DEBUG - Requesting: http://10.0.0.33:8082/project/ad651464-5534-47af-bc36-c0675c6c0f55 2026-06-17 16:41:14,701 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/33b0afbd-2b5b-4c48-933f-c246c30cb3d5 2026-06-17 16:41:14,710 - INFO - Verified policy ctest-policy1-09263037 in API Server, Result: True 2026-06-17 16:41:14,710 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 16:41:14,717 - INFO - Deleting VN ctest-vn4-50510600 2026-06-17 16:41:14,822 - DEBUG - Response for deleting network () 2026-06-17 16:41:14,822 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7bb154b1-6ff6-4e0a-9e7a-ea84f3cc45ae 2026-06-17 16:41:14,826 - DEBUG - Response Code: 404 2026-06-17 16:41:14,826 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-17 16:41:14,831 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6dd884bc-3ee3-4c34-81a3-bd4ac144d700 2026-06-17 16:41:14,882 - DEBUG - Requesting: http://10.0.0.33:8082/project/ad651464-5534-47af-bc36-c0675c6c0f55 2026-06-17 16:41:14,948 - INFO - Validated that VN ctest-vn4-50510600 is not found in API Server 2026-06-17 16:41:14,956 - DEBUG - VN ctest-vn4-50510600 is not present in Agent 10.0.0.33 2026-06-17 16:41:14,956 - INFO - Validated that VN ctest-vn4-50510600 is not in any agent 2026-06-17 16:41:14,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50510600 info 2026-06-17 16:41:14,991 - INFO - Deleted policy ctest-policy1-09263037 2026-06-17 16:41:15,154 - DEBUG - policy ctest-policy1-09263037 is not found in API Server 2026-06-17 16:41:15,407 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 16:41:15,407 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 16:41:15,407 - INFO - -------------------------------------------------------------------------------- 2026-06-17 16:41:15,695 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 16:41:15,695 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 16:41:15,695 - INFO - -------------------------------------------------------------------------------- 2026-06-17 16:41:16,372 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88791627, ID : ad651464-5534-47af-bc36-c0675c6c0f55