2026-01-28 17:03:20,326 - INFO - Domain Default found not creating 2026-01-28 17:03:20,523 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62208048 not found, creating it 2026-01-28 17:03:21,011 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62208048, ID : 481ccc2f-5785-47d4-915e-6cec34453312 2026-01-28 17:03:22,582 - INFO - ================================================================================ 2026-01-28 17:03:22,582 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 17:03:22,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-01-28 17:03:22,838 - INFO - Initial checks done. Running the testcase now 2026-01-28 17:03:22,838 - INFO - 2026-01-28 17:03:22,838 - INFO - ================================================================================ 2026-01-28 17:03:22,838 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 17:03:22,839 - 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-01-28 17:03:23,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-01-28 17:03:23,129 - INFO - Initial checks done. Running the testcase now 2026-01-28 17:03:23,129 - INFO - 2026-01-28 17:03:23,524 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233, 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-62208048:ctest-vn4-79723233, 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-62208048:ctest-vn4-79723233, 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-62208048:ctest-vn4-79723233, 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-01-28 17:03:24,049 - DEBUG - Response for create_network : {'network': {'id': 'fc6f9bf1-8bce-433b-a7fb-04a9680abfe4', 'name': 'ctest-vn4-79723233', 'tenant_id': '481ccc2f578547d4915e6cec34453312', 'project_id': '481ccc2f578547d4915e6cec34453312', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62208048', 'ctest-vn4-79723233'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 17:03:24,246 - DEBUG - Response for create_subnet : {'subnet': {'id': '04e05c7d-7aee-4adc-a34b-accccbb42227', 'name': '', 'tenant_id': '481ccc2f578547d4915e6cec34453312', 'network_id': 'fc6f9bf1-8bce-433b-a7fb-04a9680abfe4', 'ip_version': 4, 'cidr': '204.80.33.192/26', 'allocation_pools': [{'start': '204.80.33.194', 'end': '204.80.33.254'}], 'gateway_ip': '204.80.33.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.80.33.194', 'tags': [], 'project_id': '481ccc2f578547d4915e6cec34453312'}} 2026-01-28 17:03:24,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '1841eb2e-08c7-4ff5-84ed-c090d7a04d71', 'name': '', 'tenant_id': '481ccc2f578547d4915e6cec34453312', 'network_id': 'fc6f9bf1-8bce-433b-a7fb-04a9680abfe4', 'ip_version': 6, 'cidr': '2a71:5403:1331:7f5e:e6e:96cf::/96', 'allocation_pools': [{'start': '2a71:5403:1331:7f5e:e6e:96cf:0:2', 'end': '2a71:5403:1331:7f5e:e6e:96cf:ffff:fffe'}], 'gateway_ip': '2a71:5403:1331:7f5e:e6e:96cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a71:5403:1331:7f5e:e6e:96cf:0:2', 'tags': [], 'project_id': '481ccc2f578547d4915e6cec34453312'}} 2026-01-28 17:03:24,437 - INFO - Created VN ctest-vn4-79723233 2026-01-28 17:03:24,489 - DEBUG - VN ctest-vn4-79723233 UUID is fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:24,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc6f9bf1-8bce-433b-a7fb-04a9680abfe4', 'name': 'ctest-vn4-79723233', 'tenant_id': '481ccc2f578547d4915e6cec34453312', 'project_id': '481ccc2f578547d4915e6cec34453312', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04e05c7d-7aee-4adc-a34b-accccbb42227', '1841eb2e-08c7-4ff5-84ed-c090d7a04d71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62208048', 'ctest-vn4-79723233'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62208048', 'ctest-policy1-11917399']], 'subnet_ipam': [{'subnet_cidr': '204.80.33.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a71:5403:1331:7f5e:e6e:96cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 17:03:24,853 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-28 17:03:25,158 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-28 17:03:25,189 - DEBUG - Requesting: http://10.0.0.27:8082/domain/726a90fb-7f4e-4c0e-ae8f-8254d9be9068 2026-01-28 17:03:25,202 - DEBUG - Requesting: http://10.0.0.27:8082/project/481ccc2f-5785-47d4-915e-6cec34453312 2026-01-28 17:03:25,272 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,286 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,296 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:25,305 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:25,312 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/53ba2d47-6ad0-44e0-bc44-65b80d23cbe1 2026-01-28 17:03:25,318 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 17:03:25,318 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,327 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:25,343 - INFO - Verified VN network id 11 for VN fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,343 - INFO - Verifications in API Server for VN ctest-vn4-79723233 passed 2026-01-28 17:03:25,343 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,353 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:25,359 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:25,366 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/53ba2d47-6ad0-44e0-bc44-65b80d23cbe1 2026-01-28 17:03:25,376 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62208048', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18189928881707696955', 'uuid-lslong': '12104273549129859044'}, 'enable': 'true', 'created': '2026-01-28T17:03:24', 'last-modified': '2026-01-28T17:03:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714891'} 2026-01-28 17:03:25,383 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 17:03:25,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79723233 passed 2026-01-28 17:03:25,383 - DEBUG - ====Verifying policy data for ctest-vn4-79723233 in API_Server ====== 2026-01-28 17:03:25,383 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-28 17:03:25,389 - DEBUG - Requesting: http://10.0.0.27:8082/domain/726a90fb-7f4e-4c0e-ae8f-8254d9be9068 2026-01-28 17:03:25,401 - DEBUG - Requesting: http://10.0.0.27:8082/project/481ccc2f-5785-47d4-915e-6cec34453312 2026-01-28 17:03:25,471 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fc6f9bf1-8bce-433b-a7fb-04a9680abfe4 2026-01-28 17:03:25,480 - DEBUG - ==>Verifying data for policy with id: 443d3f73-4103-41ba-842e-7067eb48bf76, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62208048', 'ctest-policy1-11917399'] 2026-01-28 17:03:25,481 - INFO - VN ctest-vn4-79723233 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 17:03:25,481 - DEBUG - Verifying the vn in opserver 2026-01-28 17:03:25,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233 virtual network link through opserver 10.0.0.27 2026-01-28 17:03:25,481 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-28 17:03:25,781 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-28 17:03:25,843 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233?flat'} 2026-01-28 17:03:25,843 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62208048:ctest-vn4-79723233 is found in opserver 2026-01-28 17:03:25,854 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 17:03:25,859 - DEBUG - VRF ids for VN ctest-vn4-79723233: {} 2026-01-28 17:03:25,860 - DEBUG - ====Verifying data for ctest-policy1-11917399 in API_Server ====== 2026-01-28 17:03:25,860 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-28 17:03:25,865 - DEBUG - Requesting: http://10.0.0.27:8082/domain/726a90fb-7f4e-4c0e-ae8f-8254d9be9068 2026-01-28 17:03:25,880 - DEBUG - Requesting: http://10.0.0.27:8082/project/481ccc2f-5785-47d4-915e-6cec34453312 2026-01-28 17:03:25,954 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/443d3f73-4103-41ba-842e-7067eb48bf76 2026-01-28 17:03:25,965 - INFO - Verified policy ctest-policy1-11917399 in API Server, Result: True 2026-01-28 17:03:25,965 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 17:03:25,973 - INFO - Deleting VN ctest-vn4-79723233 2026-01-28 17:03:26,087 - DEBUG - Response for deleting network () 2026-01-28 17:03:26,088 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f9a72c56-e6eb-420b-b6c0-e67984925696 2026-01-28 17:03:26,093 - DEBUG - Response Code: 404 2026-01-28 17:03:26,093 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-28 17:03:26,100 - DEBUG - Requesting: http://10.0.0.27:8082/domain/726a90fb-7f4e-4c0e-ae8f-8254d9be9068 2026-01-28 17:03:26,153 - DEBUG - Requesting: http://10.0.0.27:8082/project/481ccc2f-5785-47d4-915e-6cec34453312 2026-01-28 17:03:26,228 - INFO - Validated that VN ctest-vn4-79723233 is not found in API Server 2026-01-28 17:03:26,239 - DEBUG - VN ctest-vn4-79723233 is not present in Agent 10.0.0.27 2026-01-28 17:03:26,239 - INFO - Validated that VN ctest-vn4-79723233 is not in any agent 2026-01-28 17:03:26,254 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79723233 info 2026-01-28 17:03:26,280 - INFO - Deleted policy ctest-policy1-11917399 2026-01-28 17:03:26,444 - DEBUG - policy ctest-policy1-11917399 is not found in API Server 2026-01-28 17:03:26,708 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 17:03:26,708 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 17:03:26,708 - INFO - -------------------------------------------------------------------------------- 2026-01-28 17:03:26,993 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 17:03:26,993 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 17:03:26,993 - INFO - -------------------------------------------------------------------------------- 2026-01-28 17:03:27,685 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62208048, ID : 481ccc2f-5785-47d4-915e-6cec34453312