2026-09-11 07:29:36,906 - INFO - Domain Default found not creating 2026-09-11 07:29:37,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36585821 not found, creating it 2026-09-11 07:29:37,714 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36585821, ID : 08fa2be5-9d90-4258-a424-898c287f8d5a 2026-09-11 07:29:39,737 - INFO - ================================================================================ 2026-09-11 07:29:39,737 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-11 07:29:40,021 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-11 07:29:40,021 - INFO - Initial checks done. Running the testcase now 2026-09-11 07:29:40,021 - INFO - 2026-09-11 07:29:40,021 - INFO - ================================================================================ 2026-09-11 07:29:40,021 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-11 07:29:40,022 - 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-11 07:29:40,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-11 07:29:40,323 - INFO - Initial checks done. Running the testcase now 2026-09-11 07:29:40,323 - INFO - 2026-09-11 07:29:40,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954, 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-36585821:ctest-vn4-36422954, 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-36585821:ctest-vn4-36422954, 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-36585821:ctest-vn4-36422954, 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-11 07:29:41,917 - DEBUG - Response for create_network : {'network': {'id': '6ffa1225-9df5-4fd7-9ad3-e873c32fd334', 'name': 'ctest-vn4-36422954', 'tenant_id': '08fa2be59d904258a424898c287f8d5a', 'project_id': '08fa2be59d904258a424898c287f8d5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36585821', 'ctest-vn4-36422954'], 'port_security_enabled': True, 'description': ''}} 2026-09-11 07:29:42,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '4250185d-9a6f-45a9-bac2-70ad4ee4f9f4', 'name': '', 'tenant_id': '08fa2be59d904258a424898c287f8d5a', 'network_id': '6ffa1225-9df5-4fd7-9ad3-e873c32fd334', 'ip_version': 4, 'cidr': '24.71.17.64/26', 'allocation_pools': [{'start': '24.71.17.66', 'end': '24.71.17.126'}], 'gateway_ip': '24.71.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.71.17.66', 'tags': [], 'project_id': '08fa2be59d904258a424898c287f8d5a'}} 2026-09-11 07:29:42,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '13a04fcf-311b-40af-90f3-89a61e2102cf', 'name': '', 'tenant_id': '08fa2be59d904258a424898c287f8d5a', 'network_id': '6ffa1225-9df5-4fd7-9ad3-e873c32fd334', 'ip_version': 6, 'cidr': '2ff7:baa3:2f7c:3097:6b7e:36bd::/96', 'allocation_pools': [{'start': '2ff7:baa3:2f7c:3097:6b7e:36bd:0:2', 'end': '2ff7:baa3:2f7c:3097:6b7e:36bd:ffff:fffe'}], 'gateway_ip': '2ff7:baa3:2f7c:3097:6b7e:36bd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ff7:baa3:2f7c:3097:6b7e:36bd:0:2', 'tags': [], 'project_id': '08fa2be59d904258a424898c287f8d5a'}} 2026-09-11 07:29:42,610 - INFO - Created VN ctest-vn4-36422954 2026-09-11 07:29:42,674 - DEBUG - VN ctest-vn4-36422954 UUID is 6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:42,991 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ffa1225-9df5-4fd7-9ad3-e873c32fd334', 'name': 'ctest-vn4-36422954', 'tenant_id': '08fa2be59d904258a424898c287f8d5a', 'project_id': '08fa2be59d904258a424898c287f8d5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4250185d-9a6f-45a9-bac2-70ad4ee4f9f4', '13a04fcf-311b-40af-90f3-89a61e2102cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36585821', 'ctest-vn4-36422954'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36585821', 'ctest-policy1-97269264']], 'subnet_ipam': [{'subnet_cidr': '24.71.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ff7:baa3:2f7c:3097:6b7e:36bd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-11 07:29:43,170 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-11 07:29:43,581 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-11 07:29:43,618 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3415585b-ae0c-43ec-821d-5d55059e2417 2026-09-11 07:29:43,640 - DEBUG - Requesting: http://10.0.0.50:8082/project/08fa2be5-9d90-4258-a424-898c287f8d5a 2026-09-11 07:29:43,748 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:43,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:43,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:43,793 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:43,804 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fd5276b2-c15b-4679-babf-453cdd858938 2026-09-11 07:29:43,814 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-11 07:29:43,814 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:43,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:43,860 - INFO - Verified VN network id 12 for VN 6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:43,860 - INFO - Verifications in API Server for VN ctest-vn4-36422954 passed 2026-09-11 07:29:43,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:43,876 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:43,886 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:43,896 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fd5276b2-c15b-4679-babf-453cdd858938 2026-09-11 07:29:43,914 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36585821', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8068781635160854487', 'uuid-lslong': '11156516285820425012'}, 'enable': 'true', 'created': '2026-09-11T07:29:41', 'last-modified': '2026-09-11T07:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987287'} 2026-09-11 07:29:43,923 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-11 07:29:43,923 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36422954 passed 2026-09-11 07:29:43,923 - DEBUG - ====Verifying policy data for ctest-vn4-36422954 in API_Server ====== 2026-09-11 07:29:43,923 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-11 07:29:43,932 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3415585b-ae0c-43ec-821d-5d55059e2417 2026-09-11 07:29:43,948 - DEBUG - Requesting: http://10.0.0.50:8082/project/08fa2be5-9d90-4258-a424-898c287f8d5a 2026-09-11 07:29:44,049 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6ffa1225-9df5-4fd7-9ad3-e873c32fd334 2026-09-11 07:29:44,063 - DEBUG - ==>Verifying data for policy with id: 66afd69d-5962-457f-8e99-354624cdca13, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36585821', 'ctest-policy1-97269264'] 2026-09-11 07:29:44,064 - INFO - VN ctest-vn4-36422954 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-11 07:29:44,064 - DEBUG - Verifying the vn in opserver 2026-09-11 07:29:44,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954 virtual network link through opserver 10.0.0.50 2026-09-11 07:29:44,064 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-11 07:29:44,444 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-11 07:29:44,513 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954?flat'} 2026-09-11 07:29:44,513 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36585821:ctest-vn4-36422954 is found in opserver 2026-09-11 07:29:44,528 - DEBUG - Do not have enough data to verify VN in agent 2026-09-11 07:29:44,534 - DEBUG - VRF ids for VN ctest-vn4-36422954: {} 2026-09-11 07:29:44,535 - DEBUG - ====Verifying data for ctest-policy1-97269264 in API_Server ====== 2026-09-11 07:29:44,535 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-11 07:29:44,542 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3415585b-ae0c-43ec-821d-5d55059e2417 2026-09-11 07:29:44,556 - DEBUG - Requesting: http://10.0.0.50:8082/project/08fa2be5-9d90-4258-a424-898c287f8d5a 2026-09-11 07:29:44,646 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/66afd69d-5962-457f-8e99-354624cdca13 2026-09-11 07:29:44,662 - INFO - Verified policy ctest-policy1-97269264 in API Server, Result: True 2026-09-11 07:29:44,662 - INFO - Done with setup and verification, moving onto test .. 2026-09-11 07:29:44,674 - INFO - Deleting VN ctest-vn4-36422954 2026-09-11 07:29:44,849 - DEBUG - Response for deleting network () 2026-09-11 07:29:44,850 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d114a908-11ab-428a-bbf7-ed6b04f0b639 2026-09-11 07:29:44,858 - DEBUG - Response Code: 404 2026-09-11 07:29:44,858 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-11 07:29:44,869 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3415585b-ae0c-43ec-821d-5d55059e2417 2026-09-11 07:29:44,928 - DEBUG - Requesting: http://10.0.0.50:8082/project/08fa2be5-9d90-4258-a424-898c287f8d5a 2026-09-11 07:29:45,014 - INFO - Validated that VN ctest-vn4-36422954 is not found in API Server 2026-09-11 07:29:45,027 - DEBUG - VN ctest-vn4-36422954 is not present in Agent 10.0.0.50 2026-09-11 07:29:45,027 - INFO - Validated that VN ctest-vn4-36422954 is not in any agent 2026-09-11 07:29:45,048 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36422954 info 2026-09-11 07:29:45,080 - INFO - Deleted policy ctest-policy1-97269264 2026-09-11 07:29:45,270 - DEBUG - policy ctest-policy1-97269264 is not found in API Server 2026-09-11 07:29:45,544 - DEBUG - No XMPP flaps were noticed during the test
2026-09-11 07:29:45,544 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-11 07:29:45,544 - INFO - -------------------------------------------------------------------------------- 2026-09-11 07:29:45,840 - DEBUG - No XMPP flaps were noticed during the test
2026-09-11 07:29:45,840 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-09-11 07:29:45,840 - INFO - -------------------------------------------------------------------------------- 2026-09-11 07:29:46,630 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36585821, ID : 08fa2be5-9d90-4258-a424-898c287f8d5a