2026-09-17 08:51:18,867 - INFO - Domain Default found not creating 2026-09-17 08:51:19,061 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64860476 not found, creating it 2026-09-17 08:51:19,558 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64860476, ID : c86da03e-e6b4-4166-a38a-bb093151d706 2026-09-17 08:51:21,292 - INFO - ================================================================================ 2026-09-17 08:51:21,292 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 08:51:21,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-17 08:51:21,568 - INFO - Initial checks done. Running the testcase now 2026-09-17 08:51:21,568 - INFO - 2026-09-17 08:51:21,568 - INFO - ================================================================================ 2026-09-17 08:51:21,568 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 08:51:21,568 - 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-09-17 08:51:21,873 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-17 08:51:21,874 - INFO - Initial checks done. Running the testcase now 2026-09-17 08:51:21,874 - INFO - 2026-09-17 08:51:22,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492, 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-64860476:ctest-vn4-67637492, 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-64860476:ctest-vn4-67637492, 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-64860476:ctest-vn4-67637492, 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-09-17 08:51:22,872 - DEBUG - Response for create_network : {'network': {'id': '6a3ae893-5406-4923-b3a1-3ffa92585f76', 'name': 'ctest-vn4-67637492', 'tenant_id': 'c86da03ee6b44166a38abb093151d706', 'project_id': 'c86da03ee6b44166a38abb093151d706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64860476', 'ctest-vn4-67637492'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 08:51:23,085 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9711e2c-970f-4898-9da4-b1ff056600a6', 'name': '', 'tenant_id': 'c86da03ee6b44166a38abb093151d706', 'network_id': '6a3ae893-5406-4923-b3a1-3ffa92585f76', 'ip_version': 4, 'cidr': '171.21.191.64/26', 'allocation_pools': [{'start': '171.21.191.66', 'end': '171.21.191.126'}], 'gateway_ip': '171.21.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.21.191.66', 'tags': [], 'project_id': 'c86da03ee6b44166a38abb093151d706'}} 2026-09-17 08:51:23,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9dca0c5-cb28-4255-8428-c3bcb5086326', 'name': '', 'tenant_id': 'c86da03ee6b44166a38abb093151d706', 'network_id': '6a3ae893-5406-4923-b3a1-3ffa92585f76', 'ip_version': 6, 'cidr': '33ce:3b70:2007:7430:bec9:c4a8::/96', 'allocation_pools': [{'start': '33ce:3b70:2007:7430:bec9:c4a8:0:2', 'end': '33ce:3b70:2007:7430:bec9:c4a8:ffff:fffe'}], 'gateway_ip': '33ce:3b70:2007:7430:bec9:c4a8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33ce:3b70:2007:7430:bec9:c4a8:0:2', 'tags': [], 'project_id': 'c86da03ee6b44166a38abb093151d706'}} 2026-09-17 08:51:23,328 - INFO - Created VN ctest-vn4-67637492 2026-09-17 08:51:23,379 - DEBUG - VN ctest-vn4-67637492 UUID is 6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:23,604 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a3ae893-5406-4923-b3a1-3ffa92585f76', 'name': 'ctest-vn4-67637492', 'tenant_id': 'c86da03ee6b44166a38abb093151d706', 'project_id': 'c86da03ee6b44166a38abb093151d706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f9711e2c-970f-4898-9da4-b1ff056600a6', 'e9dca0c5-cb28-4255-8428-c3bcb5086326'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64860476', 'ctest-vn4-67637492'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64860476', 'ctest-policy1-16687444']], 'subnet_ipam': [{'subnet_cidr': '171.21.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33ce:3b70:2007:7430:bec9:c4a8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 08:51:23,767 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-17 08:51:24,135 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-17 08:51:24,164 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581 2026-09-17 08:51:24,179 - DEBUG - Requesting: http://10.0.0.185:8082/project/c86da03e-e6b4-4166-a38a-bb093151d706 2026-09-17 08:51:24,315 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,331 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,343 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:24,352 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:24,358 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/9ce80d32-b429-4057-b15e-34c91cfa07ca 2026-09-17 08:51:24,366 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 08:51:24,366 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,377 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:24,393 - INFO - Verified VN network id 12 for VN 6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,393 - INFO - Verifications in API Server for VN ctest-vn4-67637492 passed 2026-09-17 08:51:24,393 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,408 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:24,418 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:24,427 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/9ce80d32-b429-4057-b15e-34c91cfa07ca 2026-09-17 08:51:24,444 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64860476', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7654686236137113891', 'uuid-lslong': '12943697149469155190'}, 'enable': 'true', 'created': '2026-09-17T08:51:22', 'last-modified': '2026-09-17T08:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882608'} 2026-09-17 08:51:24,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 08:51:24,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67637492 passed 2026-09-17 08:51:24,453 - DEBUG - ====Verifying policy data for ctest-vn4-67637492 in API_Server ====== 2026-09-17 08:51:24,454 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-17 08:51:24,461 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581 2026-09-17 08:51:24,474 - DEBUG - Requesting: http://10.0.0.185:8082/project/c86da03e-e6b4-4166-a38a-bb093151d706 2026-09-17 08:51:24,555 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/6a3ae893-5406-4923-b3a1-3ffa92585f76 2026-09-17 08:51:24,568 - DEBUG - ==>Verifying data for policy with id: 0b044f5b-70c4-4c0b-9369-671e5e7e03e6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64860476', 'ctest-policy1-16687444'] 2026-09-17 08:51:24,568 - INFO - VN ctest-vn4-67637492 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 08:51:24,568 - DEBUG - Verifying the vn in opserver 2026-09-17 08:51:24,568 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492 virtual network link through opserver 10.0.0.185 2026-09-17 08:51:24,568 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-17 08:51:24,947 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-17 08:51:25,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492?flat'} 2026-09-17 08:51:25,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64860476:ctest-vn4-67637492 is found in opserver 2026-09-17 08:51:25,024 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 08:51:25,031 - DEBUG - VRF ids for VN ctest-vn4-67637492: {} 2026-09-17 08:51:25,032 - DEBUG - ====Verifying data for ctest-policy1-16687444 in API_Server ====== 2026-09-17 08:51:25,032 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-17 08:51:25,040 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581 2026-09-17 08:51:25,053 - DEBUG - Requesting: http://10.0.0.185:8082/project/c86da03e-e6b4-4166-a38a-bb093151d706 2026-09-17 08:51:25,128 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/0b044f5b-70c4-4c0b-9369-671e5e7e03e6 2026-09-17 08:51:25,140 - INFO - Verified policy ctest-policy1-16687444 in API Server, Result: True 2026-09-17 08:51:25,140 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 08:51:25,149 - INFO - Deleting VN ctest-vn4-67637492 2026-09-17 08:51:25,287 - DEBUG - Response for deleting network () 2026-09-17 08:51:25,288 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/9e9cd86e-7d48-4b84-8e3e-9d3a0e2212c3 2026-09-17 08:51:25,293 - DEBUG - Response Code: 404 2026-09-17 08:51:25,293 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-17 08:51:25,301 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581 2026-09-17 08:51:25,356 - DEBUG - Requesting: http://10.0.0.185:8082/project/c86da03e-e6b4-4166-a38a-bb093151d706 2026-09-17 08:51:25,434 - INFO - Validated that VN ctest-vn4-67637492 is not found in API Server 2026-09-17 08:51:25,446 - DEBUG - VN ctest-vn4-67637492 is not present in Agent 10.0.0.185 2026-09-17 08:51:25,446 - INFO - Validated that VN ctest-vn4-67637492 is not in any agent 2026-09-17 08:51:25,465 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67637492 info 2026-09-17 08:51:25,504 - INFO - Deleted policy ctest-policy1-16687444 2026-09-17 08:51:25,679 - DEBUG - policy ctest-policy1-16687444 is not found in API Server 2026-09-17 08:51:25,949 - DEBUG - No XMPP flaps were noticed during the test
2026-09-17 08:51:25,949 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-17 08:51:25,949 - INFO - -------------------------------------------------------------------------------- 2026-09-17 08:51:26,250 - DEBUG - No XMPP flaps were noticed during the test
2026-09-17 08:51:26,250 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-17 08:51:26,250 - INFO - -------------------------------------------------------------------------------- 2026-09-17 08:51:27,039 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64860476, ID : c86da03e-e6b4-4166-a38a-bb093151d706