2026-12-03 16:57:02,596 - INFO - Domain Default found not creating 2026-12-03 16:57:02,793 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66677334 not found, creating it 2026-12-03 16:57:03,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66677334, ID : 562b4808-d4b4-4fe8-a741-609615a97fb5 2026-12-03 16:57:05,135 - INFO - ================================================================================ 2026-12-03 16:57:05,135 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-03 16:57:05,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-12-03 16:57:05,395 - INFO - Initial checks done. Running the testcase now 2026-12-03 16:57:05,396 - INFO - 2026-12-03 16:57:05,396 - INFO - ================================================================================ 2026-12-03 16:57:05,396 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-03 16:57:05,397 - 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-12-03 16:57:05,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-12-03 16:57:05,696 - INFO - Initial checks done. Running the testcase now 2026-12-03 16:57:05,696 - INFO - 2026-12-03 16:57:06,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816, 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-66677334:ctest-vn4-68613816, 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-66677334:ctest-vn4-68613816, 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-66677334:ctest-vn4-68613816, 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-12-03 16:57:06,649 - DEBUG - Response for create_network : {'network': {'id': '1a1ffcb0-bf43-45ed-9343-e2e52f57650f', 'name': 'ctest-vn4-68613816', 'tenant_id': '562b4808d4b44fe8a741609615a97fb5', 'project_id': '562b4808d4b44fe8a741609615a97fb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66677334', 'ctest-vn4-68613816'], 'port_security_enabled': True, 'description': ''}} 2026-12-03 16:57:06,889 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eed410ab-9289-412c-9b3a-5f5bcc71f81e', 'name': '', 'tenant_id': '562b4808d4b44fe8a741609615a97fb5', 'network_id': '1a1ffcb0-bf43-45ed-9343-e2e52f57650f', 'ip_version': 4, 'cidr': '157.55.161.0/26', 'allocation_pools': [{'start': '157.55.161.2', 'end': '157.55.161.62'}], 'gateway_ip': '157.55.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.55.161.2', 'tags': [], 'project_id': '562b4808d4b44fe8a741609615a97fb5'}} 2026-12-03 16:57:07,094 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdf215c0-c483-4914-89a7-e1e08380edab', 'name': '', 'tenant_id': '562b4808d4b44fe8a741609615a97fb5', 'network_id': '1a1ffcb0-bf43-45ed-9343-e2e52f57650f', 'ip_version': 6, 'cidr': '3f4b:61c9:35ac:d4c0:72e1:2b56::/96', 'allocation_pools': [{'start': '3f4b:61c9:35ac:d4c0:72e1:2b56:0:2', 'end': '3f4b:61c9:35ac:d4c0:72e1:2b56:ffff:fffe'}], 'gateway_ip': '3f4b:61c9:35ac:d4c0:72e1:2b56:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f4b:61c9:35ac:d4c0:72e1:2b56:0:2', 'tags': [], 'project_id': '562b4808d4b44fe8a741609615a97fb5'}} 2026-12-03 16:57:07,112 - INFO - Created VN ctest-vn4-68613816 2026-12-03 16:57:07,167 - DEBUG - VN ctest-vn4-68613816 UUID is 1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:07,371 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a1ffcb0-bf43-45ed-9343-e2e52f57650f', 'name': 'ctest-vn4-68613816', 'tenant_id': '562b4808d4b44fe8a741609615a97fb5', 'project_id': '562b4808d4b44fe8a741609615a97fb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['eed410ab-9289-412c-9b3a-5f5bcc71f81e', 'cdf215c0-c483-4914-89a7-e1e08380edab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66677334', 'ctest-vn4-68613816'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66677334', 'ctest-policy1-08297005']], 'subnet_ipam': [{'subnet_cidr': '157.55.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f4b:61c9:35ac:d4c0:72e1:2b56::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-12-03 16:57:07,532 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-12-03 16:57:07,896 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-12-03 16:57:07,938 - DEBUG - Requesting: http://10.0.0.250:8082/domain/d80cba0b-af28-4228-b456-68298c359d7a 2026-12-03 16:57:07,953 - DEBUG - Requesting: http://10.0.0.250:8082/project/562b4808-d4b4-4fe8-a741-609615a97fb5 2026-12-03 16:57:08,041 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,065 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,078 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:08,086 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:08,094 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/c752e97d-d2f1-4010-9073-d6dd9476e85b 2026-12-03 16:57:08,100 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-03 16:57:08,100 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,111 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:08,127 - INFO - Verified VN network id 12 for VN 1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,127 - INFO - Verifications in API Server for VN ctest-vn4-68613816 passed 2026-12-03 16:57:08,127 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,137 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:08,146 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:08,155 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/c752e97d-d2f1-4010-9073-d6dd9476e85b 2026-12-03 16:57:08,172 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66677334', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1882501005317457389', 'uuid-lslong': '10611574620984665359'}, 'enable': 'true', 'created': '2026-12-03T16:57:06', 'last-modified': '2026-12-03T16:57:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.833273'} 2026-12-03 16:57:08,181 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-03 16:57:08,181 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68613816 passed 2026-12-03 16:57:08,181 - DEBUG - ====Verifying policy data for ctest-vn4-68613816 in API_Server ====== 2026-12-03 16:57:08,181 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-12-03 16:57:08,187 - DEBUG - Requesting: http://10.0.0.250:8082/domain/d80cba0b-af28-4228-b456-68298c359d7a 2026-12-03 16:57:08,198 - DEBUG - Requesting: http://10.0.0.250:8082/project/562b4808-d4b4-4fe8-a741-609615a97fb5 2026-12-03 16:57:08,279 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1a1ffcb0-bf43-45ed-9343-e2e52f57650f 2026-12-03 16:57:08,290 - DEBUG - ==>Verifying data for policy with id: 1eb847f3-2da2-40f7-a4d6-da35acf124df, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66677334', 'ctest-policy1-08297005'] 2026-12-03 16:57:08,290 - INFO - VN ctest-vn4-68613816 Policy verification: verify_vn_policy_in_api_server, status: True 2026-12-03 16:57:08,290 - DEBUG - Verifying the vn in opserver 2026-12-03 16:57:08,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816 virtual network link through opserver 10.0.0.250 2026-12-03 16:57:08,291 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-12-03 16:57:08,668 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-12-03 16:57:08,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816?flat'} 2026-12-03 16:57:08,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66677334:ctest-vn4-68613816 is found in opserver 2026-12-03 16:57:08,741 - DEBUG - Do not have enough data to verify VN in agent 2026-12-03 16:57:08,747 - DEBUG - VRF ids for VN ctest-vn4-68613816: {} 2026-12-03 16:57:08,748 - DEBUG - ====Verifying data for ctest-policy1-08297005 in API_Server ====== 2026-12-03 16:57:08,749 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-12-03 16:57:08,756 - DEBUG - Requesting: http://10.0.0.250:8082/domain/d80cba0b-af28-4228-b456-68298c359d7a 2026-12-03 16:57:08,769 - DEBUG - Requesting: http://10.0.0.250:8082/project/562b4808-d4b4-4fe8-a741-609615a97fb5 2026-12-03 16:57:08,860 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/1eb847f3-2da2-40f7-a4d6-da35acf124df 2026-12-03 16:57:08,877 - INFO - Verified policy ctest-policy1-08297005 in API Server, Result: True 2026-12-03 16:57:08,877 - INFO - Done with setup and verification, moving onto test .. 2026-12-03 16:57:08,889 - INFO - Deleting VN ctest-vn4-68613816 2026-12-03 16:57:09,027 - DEBUG - Response for deleting network () 2026-12-03 16:57:09,027 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6029f2c2-9999-48e2-b3c1-8f8af4cd6475 2026-12-03 16:57:09,034 - DEBUG - Response Code: 404 2026-12-03 16:57:09,034 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-12-03 16:57:09,041 - DEBUG - Requesting: http://10.0.0.250:8082/domain/d80cba0b-af28-4228-b456-68298c359d7a 2026-12-03 16:57:09,096 - DEBUG - Requesting: http://10.0.0.250:8082/project/562b4808-d4b4-4fe8-a741-609615a97fb5 2026-12-03 16:57:09,171 - INFO - Validated that VN ctest-vn4-68613816 is not found in API Server 2026-12-03 16:57:09,183 - DEBUG - VN ctest-vn4-68613816 is not present in Agent 10.0.0.250 2026-12-03 16:57:09,183 - INFO - Validated that VN ctest-vn4-68613816 is not in any agent 2026-12-03 16:57:09,198 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68613816 info 2026-12-03 16:57:09,230 - INFO - Deleted policy ctest-policy1-08297005 2026-12-03 16:57:09,403 - DEBUG - policy ctest-policy1-08297005 is not found in API Server 2026-12-03 16:57:09,677 - DEBUG - No XMPP flaps were noticed during the test
2026-12-03 16:57:09,678 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-12-03 16:57:09,678 - INFO - -------------------------------------------------------------------------------- 2026-12-03 16:57:09,987 - DEBUG - No XMPP flaps were noticed during the test
2026-12-03 16:57:09,987 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-12-03 16:57:09,988 - INFO - -------------------------------------------------------------------------------- 2026-12-03 16:57:10,795 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66677334, ID : 562b4808-d4b4-4fe8-a741-609615a97fb5