2026-03-05 02:12:20,688 - INFO - Domain Default found not creating 2026-03-05 02:12:20,850 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31625677 not found, creating it 2026-03-05 02:12:21,309 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31625677, ID : b0af697a-cb18-446c-b414-fed15c477412 2026-03-05 02:12:22,751 - INFO - ================================================================================ 2026-03-05 02:12:22,751 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:12:23,009 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with 2026-03-05 02:12:23,009 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:12:23,009 - INFO - 2026-03-05 02:12:23,009 - INFO - ================================================================================ 2026-03-05 02:12:23,009 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:12:23,009 - 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 02:12:23,305 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with 2026-03-05 02:12:23,306 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:12:23,306 - INFO - 2026-03-05 02:12:23,654 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940, 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-31625677:ctest-vn4-50734940, 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-31625677:ctest-vn4-50734940, 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-31625677:ctest-vn4-50734940, 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 02:12:24,153 - DEBUG - Response for create_network : {'network': {'id': '302d2edf-ca06-4d23-ab6b-3c82c35c5cde', 'name': 'ctest-vn4-50734940', 'tenant_id': 'b0af697acb18446cb414fed15c477412', 'project_id': 'b0af697acb18446cb414fed15c477412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31625677', 'ctest-vn4-50734940'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:12:24,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cc74684-830f-4697-afb7-f0e9f0cc4c65', 'name': '', 'tenant_id': 'b0af697acb18446cb414fed15c477412', 'network_id': '302d2edf-ca06-4d23-ab6b-3c82c35c5cde', 'ip_version': 4, 'cidr': '31.158.93.0/26', 'allocation_pools': [{'start': '31.158.93.2', 'end': '31.158.93.62'}], 'gateway_ip': '31.158.93.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.158.93.2', 'tags': [], 'project_id': 'b0af697acb18446cb414fed15c477412'}} 2026-03-05 02:12:24,481 - DEBUG - Response for create_subnet : {'subnet': {'id': '00f094d3-2035-4279-9969-1156f81b2c6c', 'name': '', 'tenant_id': 'b0af697acb18446cb414fed15c477412', 'network_id': '302d2edf-ca06-4d23-ab6b-3c82c35c5cde', 'ip_version': 6, 'cidr': '32b6:c449:1138:ecd7:dc1e:2c6b::/96', 'allocation_pools': [{'start': '32b6:c449:1138:ecd7:dc1e:2c6b:0:2', 'end': '32b6:c449:1138:ecd7:dc1e:2c6b:ffff:fffe'}], 'gateway_ip': '32b6:c449:1138:ecd7:dc1e:2c6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32b6:c449:1138:ecd7:dc1e:2c6b:0:2', 'tags': [], 'project_id': 'b0af697acb18446cb414fed15c477412'}} 2026-03-05 02:12:24,500 - INFO - Created VN ctest-vn4-50734940 2026-03-05 02:12:24,553 - DEBUG - VN ctest-vn4-50734940 UUID is 302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:24,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '302d2edf-ca06-4d23-ab6b-3c82c35c5cde', 'name': 'ctest-vn4-50734940', 'tenant_id': 'b0af697acb18446cb414fed15c477412', 'project_id': 'b0af697acb18446cb414fed15c477412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cc74684-830f-4697-afb7-f0e9f0cc4c65', '00f094d3-2035-4279-9969-1156f81b2c6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31625677', 'ctest-vn4-50734940'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31625677', 'ctest-policy1-83489526']], 'subnet_ipam': [{'subnet_cidr': '31.158.93.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32b6:c449:1138:ecd7:dc1e:2c6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:12:24,889 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2026-03-05 02:12:25,181 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2026-03-05 02:12:25,271 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a 2026-03-05 02:12:25,282 - DEBUG - Requesting: http://10.0.0.49:8082/project/b0af697a-cb18-446c-b414-fed15c477412 2026-03-05 02:12:25,358 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,369 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,377 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:25,383 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:25,390 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/34a89ef8-5781-4c46-a25e-312460feb495 2026-03-05 02:12:25,396 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:12:25,396 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,404 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:25,416 - INFO - Verified VN network id 11 for VN 302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,416 - INFO - Verifications in API Server for VN ctest-vn4-50734940 passed 2026-03-05 02:12:25,416 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,425 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:25,431 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:25,437 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/34a89ef8-5781-4c46-a25e-312460feb495 2026-03-05 02:12:25,446 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31625677', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3471482426474515747', 'uuid-lslong': '12352032935314742494'}, 'enable': 'true', 'created': '2026-03-05T02:12:24', 'last-modified': '2026-03-05T02:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741166'} 2026-03-05 02:12:25,453 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:12:25,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50734940 passed 2026-03-05 02:12:25,454 - DEBUG - ====Verifying policy data for ctest-vn4-50734940 in API_Server ====== 2026-03-05 02:12:25,454 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2026-03-05 02:12:25,460 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a 2026-03-05 02:12:25,469 - DEBUG - Requesting: http://10.0.0.49:8082/project/b0af697a-cb18-446c-b414-fed15c477412 2026-03-05 02:12:25,539 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/302d2edf-ca06-4d23-ab6b-3c82c35c5cde 2026-03-05 02:12:25,549 - DEBUG - ==>Verifying data for policy with id: e68bac15-fae4-4c6d-af4d-d41192a64844, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31625677', 'ctest-policy1-83489526'] 2026-03-05 02:12:25,549 - INFO - VN ctest-vn4-50734940 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 02:12:25,549 - DEBUG - Verifying the vn in opserver 2026-03-05 02:12:25,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940 virtual network link through opserver 10.0.0.49 2026-03-05 02:12:25,550 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2026-03-05 02:12:25,864 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2026-03-05 02:12:25,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940?flat'} 2026-03-05 02:12:25,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31625677:ctest-vn4-50734940 is found in opserver 2026-03-05 02:12:25,959 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 02:12:25,964 - DEBUG - VRF ids for VN ctest-vn4-50734940: {} 2026-03-05 02:12:25,964 - DEBUG - ====Verifying data for ctest-policy1-83489526 in API_Server ====== 2026-03-05 02:12:25,964 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2026-03-05 02:12:25,970 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a 2026-03-05 02:12:25,980 - DEBUG - Requesting: http://10.0.0.49:8082/project/b0af697a-cb18-446c-b414-fed15c477412 2026-03-05 02:12:26,053 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/e68bac15-fae4-4c6d-af4d-d41192a64844 2026-03-05 02:12:26,063 - INFO - Verified policy ctest-policy1-83489526 in API Server, Result: True 2026-03-05 02:12:26,063 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 02:12:26,072 - INFO - Deleting VN ctest-vn4-50734940 2026-03-05 02:12:26,181 - DEBUG - Response for deleting network () 2026-03-05 02:12:26,181 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4fe5a0a0-5a9d-4ec2-adcc-5ecd2b3cba40 2026-03-05 02:12:26,185 - DEBUG - Response Code: 404 2026-03-05 02:12:26,185 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2026-03-05 02:12:26,190 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a 2026-03-05 02:12:26,241 - DEBUG - Requesting: http://10.0.0.49:8082/project/b0af697a-cb18-446c-b414-fed15c477412 2026-03-05 02:12:26,310 - INFO - Validated that VN ctest-vn4-50734940 is not found in API Server 2026-03-05 02:12:26,320 - DEBUG - VN ctest-vn4-50734940 is not present in Agent 10.0.0.49 2026-03-05 02:12:26,320 - INFO - Validated that VN ctest-vn4-50734940 is not in any agent 2026-03-05 02:12:26,334 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50734940 info 2026-03-05 02:12:26,356 - INFO - Deleted policy ctest-policy1-83489526 2026-03-05 02:12:26,517 - DEBUG - policy ctest-policy1-83489526 is not found in API Server 2026-03-05 02:12:26,779 - DEBUG - No XMPP flaps were noticed during the test