2026-06-19 14:01:31,216 - INFO - Domain Default found not creating 2026-06-19 14:01:31,376 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28219659 not found, creating it 2026-06-19 14:01:31,833 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28219659, ID : a83ae769-bc58-4cfb-940e-65478e37a2a3 2026-06-19 14:01:33,429 - INFO - ================================================================================ 2026-06-19 14:01:33,429 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:01:33,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-19 14:01:33,687 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:01:33,687 - INFO - 2026-06-19 14:01:33,687 - INFO - ================================================================================ 2026-06-19 14:01:33,687 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:01:33,688 - 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-06-19 14:01:33,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-19 14:01:33,980 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:01:33,980 - INFO - 2026-06-19 14:01:34,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908, 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-28219659:ctest-vn4-83012908, 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-28219659:ctest-vn4-83012908, 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-28219659:ctest-vn4-83012908, 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-06-19 14:01:34,905 - DEBUG - Response for create_network : {'network': {'id': '857f5f72-5d3a-4621-87f6-36e7b3a8a361', 'name': 'ctest-vn4-83012908', 'tenant_id': 'a83ae769bc584cfb940e65478e37a2a3', 'project_id': 'a83ae769bc584cfb940e65478e37a2a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28219659', 'ctest-vn4-83012908'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:01:35,129 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b56c90bd-6896-4841-ae2d-22b10485dd73', 'name': '', 'tenant_id': 'a83ae769bc584cfb940e65478e37a2a3', 'network_id': '857f5f72-5d3a-4621-87f6-36e7b3a8a361', 'ip_version': 4, 'cidr': '216.106.157.0/26', 'allocation_pools': [{'start': '216.106.157.2', 'end': '216.106.157.62'}], 'gateway_ip': '216.106.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.106.157.2', 'tags': [], 'project_id': 'a83ae769bc584cfb940e65478e37a2a3'}} 2026-06-19 14:01:35,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b8ccc10-af72-45fe-8533-dde245ddc7a7', 'name': '', 'tenant_id': 'a83ae769bc584cfb940e65478e37a2a3', 'network_id': '857f5f72-5d3a-4621-87f6-36e7b3a8a361', 'ip_version': 6, 'cidr': '3106:5849:38fc:ec93:7a14:d158::/96', 'allocation_pools': [{'start': '3106:5849:38fc:ec93:7a14:d158:0:2', 'end': '3106:5849:38fc:ec93:7a14:d158:ffff:fffe'}], 'gateway_ip': '3106:5849:38fc:ec93:7a14:d158:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3106:5849:38fc:ec93:7a14:d158:0:2', 'tags': [], 'project_id': 'a83ae769bc584cfb940e65478e37a2a3'}} 2026-06-19 14:01:35,343 - INFO - Created VN ctest-vn4-83012908 2026-06-19 14:01:35,397 - DEBUG - VN ctest-vn4-83012908 UUID is 857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:35,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '857f5f72-5d3a-4621-87f6-36e7b3a8a361', 'name': 'ctest-vn4-83012908', 'tenant_id': 'a83ae769bc584cfb940e65478e37a2a3', 'project_id': 'a83ae769bc584cfb940e65478e37a2a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b56c90bd-6896-4841-ae2d-22b10485dd73', '7b8ccc10-af72-45fe-8533-dde245ddc7a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28219659', 'ctest-vn4-83012908'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28219659', 'ctest-policy1-62839002']], 'subnet_ipam': [{'subnet_cidr': '216.106.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3106:5849:38fc:ec93:7a14:d158::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:01:35,749 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 14:01:36,115 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 14:01:36,138 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6 2026-06-19 14:01:36,149 - DEBUG - Requesting: http://10.0.0.33:8082/project/a83ae769-bc58-4cfb-940e-65478e37a2a3 2026-06-19 14:01:36,219 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,231 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,239 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:36,245 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:36,252 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2778ffbe-e81c-41c4-824f-6e062c4bce7a 2026-06-19 14:01:36,257 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:01:36,257 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,267 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:36,281 - INFO - Verified VN network id 11 for VN 857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,282 - INFO - Verifications in API Server for VN ctest-vn4-83012908 passed 2026-06-19 14:01:36,282 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,291 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:36,299 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:36,305 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2778ffbe-e81c-41c4-824f-6e062c4bce7a 2026-06-19 14:01:36,322 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28219659', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9619512273881679393', 'uuid-lslong': '9797078408170611553'}, 'enable': 'true', 'created': '2026-06-19T14:01:34', 'last-modified': '2026-06-19T14:01:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759518'} 2026-06-19 14:01:36,333 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:01:36,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83012908 passed 2026-06-19 14:01:36,334 - DEBUG - ====Verifying policy data for ctest-vn4-83012908 in API_Server ====== 2026-06-19 14:01:36,334 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 14:01:36,341 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6 2026-06-19 14:01:36,356 - DEBUG - Requesting: http://10.0.0.33:8082/project/a83ae769-bc58-4cfb-940e-65478e37a2a3 2026-06-19 14:01:36,438 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/857f5f72-5d3a-4621-87f6-36e7b3a8a361 2026-06-19 14:01:36,452 - DEBUG - ==>Verifying data for policy with id: f7fcb5bc-cda6-4df5-a686-2f12a423240b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28219659', 'ctest-policy1-62839002'] 2026-06-19 14:01:36,453 - INFO - VN ctest-vn4-83012908 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 14:01:36,453 - DEBUG - Verifying the vn in opserver 2026-06-19 14:01:36,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908 virtual network link through opserver 10.0.0.33 2026-06-19 14:01:36,453 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-19 14:01:36,819 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-19 14:01:36,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908?flat'} 2026-06-19 14:01:36,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28219659:ctest-vn4-83012908 is found in opserver 2026-06-19 14:01:36,883 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 14:01:36,888 - DEBUG - VRF ids for VN ctest-vn4-83012908: {} 2026-06-19 14:01:36,888 - DEBUG - ====Verifying data for ctest-policy1-62839002 in API_Server ====== 2026-06-19 14:01:36,888 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 14:01:36,893 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6 2026-06-19 14:01:36,905 - DEBUG - Requesting: http://10.0.0.33:8082/project/a83ae769-bc58-4cfb-940e-65478e37a2a3 2026-06-19 14:01:36,987 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/f7fcb5bc-cda6-4df5-a686-2f12a423240b 2026-06-19 14:01:36,997 - INFO - Verified policy ctest-policy1-62839002 in API Server, Result: True 2026-06-19 14:01:36,997 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 14:01:37,004 - INFO - Deleting VN ctest-vn4-83012908 2026-06-19 14:01:37,125 - DEBUG - Response for deleting network () 2026-06-19 14:01:37,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a3eba0f9-3115-45c4-afb5-080190a4e08c 2026-06-19 14:01:37,130 - DEBUG - Response Code: 404 2026-06-19 14:01:37,130 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 14:01:37,137 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6 2026-06-19 14:01:37,189 - DEBUG - Requesting: http://10.0.0.33:8082/project/a83ae769-bc58-4cfb-940e-65478e37a2a3 2026-06-19 14:01:37,255 - INFO - Validated that VN ctest-vn4-83012908 is not found in API Server 2026-06-19 14:01:37,265 - DEBUG - VN ctest-vn4-83012908 is not present in Agent 10.0.0.33 2026-06-19 14:01:37,265 - INFO - Validated that VN ctest-vn4-83012908 is not in any agent 2026-06-19 14:01:37,283 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83012908 info 2026-06-19 14:01:37,305 - INFO - Deleted policy ctest-policy1-62839002 2026-06-19 14:01:37,469 - DEBUG - policy ctest-policy1-62839002 is not found in API Server 2026-06-19 14:01:37,737 - DEBUG - No XMPP flaps were noticed during the test