2026-08-20 16:27:21,730 - INFO - Domain Default found not creating 2026-08-20 16:27:21,901 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17045972 not found, creating it 2026-08-20 16:27:22,439 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17045972, ID : 075b2db9-995c-4159-8c2e-aacc13924a90 2026-08-20 16:27:24,116 - INFO - ================================================================================ 2026-08-20 16:27:24,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 16:27:24,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-20 16:27:24,389 - INFO - Initial checks done. Running the testcase now 2026-08-20 16:27:24,389 - INFO - 2026-08-20 16:27:24,389 - INFO - ================================================================================ 2026-08-20 16:27:24,389 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 16:27:24,389 - 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-08-20 16:27:24,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-20 16:27:24,686 - INFO - Initial checks done. Running the testcase now 2026-08-20 16:27:24,686 - INFO - 2026-08-20 16:27:25,124 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242, 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-17045972:ctest-vn4-96697242, 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-17045972:ctest-vn4-96697242, 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-17045972:ctest-vn4-96697242, 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-08-20 16:27:25,670 - DEBUG - Response for create_network : {'network': {'id': '23e3b885-c0e3-42c1-ae73-85e7c7c79e57', 'name': 'ctest-vn4-96697242', 'tenant_id': '075b2db9995c41598c2eaacc13924a90', 'project_id': '075b2db9995c41598c2eaacc13924a90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17045972', 'ctest-vn4-96697242'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 16:27:25,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '530ef4a9-3438-4c05-b30e-1d1354ab86ce', 'name': '', 'tenant_id': '075b2db9995c41598c2eaacc13924a90', 'network_id': '23e3b885-c0e3-42c1-ae73-85e7c7c79e57', 'ip_version': 4, 'cidr': '125.174.211.192/26', 'allocation_pools': [{'start': '125.174.211.194', 'end': '125.174.211.254'}], 'gateway_ip': '125.174.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.174.211.194', 'tags': [], 'project_id': '075b2db9995c41598c2eaacc13924a90'}} 2026-08-20 16:27:26,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '085eb9bf-32bd-4bf7-b79c-25d0196ad3d4', 'name': '', 'tenant_id': '075b2db9995c41598c2eaacc13924a90', 'network_id': '23e3b885-c0e3-42c1-ae73-85e7c7c79e57', 'ip_version': 6, 'cidr': '2ddc:9fd:b049:7762:3467:9dcd::/96', 'allocation_pools': [{'start': '2ddc:9fd:b049:7762:3467:9dcd:0:2', 'end': '2ddc:9fd:b049:7762:3467:9dcd:ffff:fffe'}], 'gateway_ip': '2ddc:9fd:b049:7762:3467:9dcd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ddc:9fd:b049:7762:3467:9dcd:0:2', 'tags': [], 'project_id': '075b2db9995c41598c2eaacc13924a90'}} 2026-08-20 16:27:26,058 - INFO - Created VN ctest-vn4-96697242 2026-08-20 16:27:26,113 - DEBUG - VN ctest-vn4-96697242 UUID is 23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:26,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23e3b885-c0e3-42c1-ae73-85e7c7c79e57', 'name': 'ctest-vn4-96697242', 'tenant_id': '075b2db9995c41598c2eaacc13924a90', 'project_id': '075b2db9995c41598c2eaacc13924a90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['530ef4a9-3438-4c05-b30e-1d1354ab86ce', '085eb9bf-32bd-4bf7-b79c-25d0196ad3d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17045972', 'ctest-vn4-96697242'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17045972', 'ctest-policy1-08975617']], 'subnet_ipam': [{'subnet_cidr': '125.174.211.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ddc:9fd:b049:7762:3467:9dcd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 16:27:26,492 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-20 16:27:26,861 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-20 16:27:26,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8 2026-08-20 16:27:26,905 - DEBUG - Requesting: http://10.0.0.38:8082/project/075b2db9-995c-4159-8c2e-aacc13924a90 2026-08-20 16:27:26,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,031 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2186a5ea-7f0e-4592-88db-6fabc2eb1924 2026-08-20 16:27:27,038 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 16:27:27,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,068 - INFO - Verified VN network id 11 for VN 23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,069 - INFO - Verifications in API Server for VN ctest-vn4-96697242 passed 2026-08-20 16:27:27,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,090 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,098 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2186a5ea-7f0e-4592-88db-6fabc2eb1924 2026-08-20 16:27:27,113 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17045972', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2586113495647077057', 'uuid-lslong': '12570538215456874071'}, 'enable': 'true', 'created': '2026-08-20T16:27:25', 'last-modified': '2026-08-20T16:27:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.815450'} 2026-08-20 16:27:27,120 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 16:27:27,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96697242 passed 2026-08-20 16:27:27,120 - DEBUG - ====Verifying policy data for ctest-vn4-96697242 in API_Server ====== 2026-08-20 16:27:27,120 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-20 16:27:27,126 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8 2026-08-20 16:27:27,140 - DEBUG - Requesting: http://10.0.0.38:8082/project/075b2db9-995c-4159-8c2e-aacc13924a90 2026-08-20 16:27:27,218 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/23e3b885-c0e3-42c1-ae73-85e7c7c79e57 2026-08-20 16:27:27,229 - DEBUG - ==>Verifying data for policy with id: caf66058-a651-4d64-b6cb-206c949fd553, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17045972', 'ctest-policy1-08975617'] 2026-08-20 16:27:27,229 - INFO - VN ctest-vn4-96697242 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 16:27:27,229 - DEBUG - Verifying the vn in opserver 2026-08-20 16:27:27,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242 virtual network link through opserver 10.0.0.38 2026-08-20 16:27:27,229 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-20 16:27:27,604 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-20 16:27:27,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242?flat'} 2026-08-20 16:27:27,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17045972:ctest-vn4-96697242 is found in opserver 2026-08-20 16:27:27,672 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 16:27:27,678 - DEBUG - VRF ids for VN ctest-vn4-96697242: {} 2026-08-20 16:27:27,678 - DEBUG - ====Verifying data for ctest-policy1-08975617 in API_Server ====== 2026-08-20 16:27:27,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-20 16:27:27,684 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8 2026-08-20 16:27:27,696 - DEBUG - Requesting: http://10.0.0.38:8082/project/075b2db9-995c-4159-8c2e-aacc13924a90 2026-08-20 16:27:27,774 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/caf66058-a651-4d64-b6cb-206c949fd553 2026-08-20 16:27:27,786 - INFO - Verified policy ctest-policy1-08975617 in API Server, Result: True 2026-08-20 16:27:27,786 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 16:27:27,797 - INFO - Deleting VN ctest-vn4-96697242 2026-08-20 16:27:27,926 - DEBUG - Response for deleting network () 2026-08-20 16:27:27,927 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8620ef8-e20e-4794-b283-29f5d3a8541a 2026-08-20 16:27:27,932 - DEBUG - Response Code: 404 2026-08-20 16:27:27,932 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-20 16:27:27,939 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8 2026-08-20 16:27:27,994 - DEBUG - Requesting: http://10.0.0.38:8082/project/075b2db9-995c-4159-8c2e-aacc13924a90 2026-08-20 16:27:28,073 - INFO - Validated that VN ctest-vn4-96697242 is not found in API Server 2026-08-20 16:27:28,086 - DEBUG - VN ctest-vn4-96697242 is not present in Agent 10.0.0.38 2026-08-20 16:27:28,086 - INFO - Validated that VN ctest-vn4-96697242 is not in any agent 2026-08-20 16:27:28,109 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96697242 info 2026-08-20 16:27:28,136 - INFO - Deleted policy ctest-policy1-08975617 2026-08-20 16:27:28,312 - DEBUG - policy ctest-policy1-08975617 is not found in API Server 2026-08-20 16:27:28,581 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 16:27:28,581 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-20 16:27:28,581 - INFO - -------------------------------------------------------------------------------- 2026-08-20 16:27:28,877 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 16:27:28,878 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-20 16:27:28,878 - INFO - -------------------------------------------------------------------------------- 2026-08-20 16:27:29,621 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17045972, ID : 075b2db9-995c-4159-8c2e-aacc13924a90