2026-03-05 12:48:20,429 - INFO - Domain Default found not creating 2026-03-05 12:48:20,648 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53094902 not found, creating it 2026-03-05 12:48:21,153 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53094902, ID : 9ea66485-bc72-44f5-bbbd-4d3da6ce52ba 2026-03-05 12:48:22,893 - INFO - ================================================================================ 2026-03-05 12:48:22,894 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 12:48:23,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-03-05 12:48:23,167 - INFO - Initial checks done. Running the testcase now 2026-03-05 12:48:23,167 - INFO - 2026-03-05 12:48:23,167 - INFO - ================================================================================ 2026-03-05 12:48:23,167 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 12:48:23,167 - 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-03-05 12:48:23,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-03-05 12:48:23,462 - INFO - Initial checks done. Running the testcase now 2026-03-05 12:48:23,462 - INFO - 2026-03-05 12:48:23,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813, 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-53094902:ctest-vn4-26565813, 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-53094902:ctest-vn4-26565813, 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-53094902:ctest-vn4-26565813, 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-03-05 12:48:24,577 - DEBUG - Response for create_network : {'network': {'id': 'b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d', 'name': 'ctest-vn4-26565813', 'tenant_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'project_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53094902', 'ctest-vn4-26565813'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 12:48:24,816 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ca71435-0d2e-4cbb-aa7f-3636a317df62', 'name': '', 'tenant_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'network_id': 'b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d', 'ip_version': 4, 'cidr': '121.45.148.64/26', 'allocation_pools': [{'start': '121.45.148.66', 'end': '121.45.148.126'}], 'gateway_ip': '121.45.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.45.148.66', 'tags': [], 'project_id': '9ea66485bc7244f5bbbd4d3da6ce52ba'}} 2026-03-05 12:48:25,030 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9bb7cf7-7f5e-4219-b6e8-99d937182e1e', 'name': '', 'tenant_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'network_id': 'b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d', 'ip_version': 6, 'cidr': '2fc3:2ef1:64b3:57df:68da:5e2d::/96', 'allocation_pools': [{'start': '2fc3:2ef1:64b3:57df:68da:5e2d:0:2', 'end': '2fc3:2ef1:64b3:57df:68da:5e2d:ffff:fffe'}], 'gateway_ip': '2fc3:2ef1:64b3:57df:68da:5e2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fc3:2ef1:64b3:57df:68da:5e2d:0:2', 'tags': [], 'project_id': '9ea66485bc7244f5bbbd4d3da6ce52ba'}} 2026-03-05 12:48:25,055 - INFO - Created VN ctest-vn4-26565813 2026-03-05 12:48:25,108 - DEBUG - VN ctest-vn4-26565813 UUID is b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:25,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d', 'name': 'ctest-vn4-26565813', 'tenant_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'project_id': '9ea66485bc7244f5bbbd4d3da6ce52ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ca71435-0d2e-4cbb-aa7f-3636a317df62', 'c9bb7cf7-7f5e-4219-b6e8-99d937182e1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53094902', 'ctest-vn4-26565813'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53094902', 'ctest-policy1-54460353']], 'subnet_ipam': [{'subnet_cidr': '121.45.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fc3:2ef1:64b3:57df:68da:5e2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 12:48:25,552 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 12:48:25,893 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 12:48:25,939 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2 2026-03-05 12:48:25,956 - DEBUG - Requesting: http://10.0.0.33:8082/project/9ea66485-bc72-44f5-bbbd-4d3da6ce52ba 2026-03-05 12:48:26,043 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,060 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:26,084 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:26,092 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d45af316-2a9e-44bc-b0bf-8fb48b501f86 2026-03-05 12:48:26,100 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 12:48:26,100 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,110 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:26,128 - INFO - Verified VN network id 12 for VN b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,128 - INFO - Verifications in API Server for VN ctest-vn4-26565813 passed 2026-03-05 12:48:26,129 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,141 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:26,149 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:26,158 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d45af316-2a9e-44bc-b0bf-8fb48b501f86 2026-03-05 12:48:26,175 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53094902', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12836101061044686844', 'uuid-lslong': '12871448374790610765'}, 'enable': 'true', 'created': '2026-03-05T12:48:24', 'last-modified': '2026-03-05T12:48:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.854155'} 2026-03-05 12:48:26,183 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 12:48:26,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26565813 passed 2026-03-05 12:48:26,184 - DEBUG - ====Verifying policy data for ctest-vn4-26565813 in API_Server ====== 2026-03-05 12:48:26,184 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 12:48:26,190 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2 2026-03-05 12:48:26,205 - DEBUG - Requesting: http://10.0.0.33:8082/project/9ea66485-bc72-44f5-bbbd-4d3da6ce52ba 2026-03-05 12:48:26,297 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b222fde8-0c95-4ffc-b2a0-9219dc2c5f4d 2026-03-05 12:48:26,309 - DEBUG - ==>Verifying data for policy with id: 0c71adcf-b186-4882-acbc-80d5d0d12d53, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53094902', 'ctest-policy1-54460353'] 2026-03-05 12:48:26,310 - INFO - VN ctest-vn4-26565813 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 12:48:26,310 - DEBUG - Verifying the vn in opserver 2026-03-05 12:48:26,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813 virtual network link through opserver 10.0.0.33 2026-03-05 12:48:26,310 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 12:48:26,637 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 12:48:26,720 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813?flat'} 2026-03-05 12:48:26,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53094902:ctest-vn4-26565813 is found in opserver 2026-03-05 12:48:26,731 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 12:48:26,735 - DEBUG - VRF ids for VN ctest-vn4-26565813: {} 2026-03-05 12:48:26,736 - DEBUG - ====Verifying data for ctest-policy1-54460353 in API_Server ====== 2026-03-05 12:48:26,736 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 12:48:26,742 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2 2026-03-05 12:48:26,756 - DEBUG - Requesting: http://10.0.0.33:8082/project/9ea66485-bc72-44f5-bbbd-4d3da6ce52ba 2026-03-05 12:48:26,836 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/0c71adcf-b186-4882-acbc-80d5d0d12d53 2026-03-05 12:48:26,848 - INFO - Verified policy ctest-policy1-54460353 in API Server, Result: True 2026-03-05 12:48:26,848 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 12:48:26,858 - INFO - Deleting VN ctest-vn4-26565813 2026-03-05 12:48:27,007 - DEBUG - Response for deleting network () 2026-03-05 12:48:27,007 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bc1e264-41a5-461c-b0b1-10b711bc1e6c 2026-03-05 12:48:27,014 - DEBUG - Response Code: 404 2026-03-05 12:48:27,014 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 12:48:27,021 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2 2026-03-05 12:48:27,077 - DEBUG - Requesting: http://10.0.0.33:8082/project/9ea66485-bc72-44f5-bbbd-4d3da6ce52ba 2026-03-05 12:48:27,158 - INFO - Validated that VN ctest-vn4-26565813 is not found in API Server 2026-03-05 12:48:27,170 - DEBUG - VN ctest-vn4-26565813 is not present in Agent 10.0.0.33 2026-03-05 12:48:27,170 - INFO - Validated that VN ctest-vn4-26565813 is not in any agent 2026-03-05 12:48:27,186 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26565813 info 2026-03-05 12:48:27,213 - INFO - Deleted policy ctest-policy1-54460353 2026-03-05 12:48:27,380 - DEBUG - policy ctest-policy1-54460353 is not found in API Server 2026-03-05 12:48:27,645 - DEBUG - No XMPP flaps were noticed during the test