2026-03-02 02:00:52,280 - INFO - Domain Default found not creating 2026-03-02 02:00:52,414 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20642713 not found, creating it 2026-03-02 02:00:52,827 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20642713, ID : 5a361fbf-159d-4870-be13-5bb22e4162d3 2026-03-02 02:00:54,167 - INFO - ================================================================================ 2026-03-02 02:00:54,167 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 02:00:54,421 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-02 02:00:54,421 - INFO - Initial checks done. Running the testcase now 2026-03-02 02:00:54,421 - INFO - 2026-03-02 02:00:54,421 - INFO - ================================================================================ 2026-03-02 02:00:54,422 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 02:00:54,422 - 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-02 02:00:54,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-02 02:00:54,705 - INFO - Initial checks done. Running the testcase now 2026-03-02 02:00:54,705 - INFO - 2026-03-02 02:00:55,052 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881, 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-20642713:ctest-vn4-54220881, 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-20642713:ctest-vn4-54220881, 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-20642713:ctest-vn4-54220881, 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-02 02:00:55,549 - DEBUG - Response for create_network : {'network': {'id': '23a766af-2a17-4226-8fdb-2d08bfa7c7d0', 'name': 'ctest-vn4-54220881', 'tenant_id': '5a361fbf159d4870be135bb22e4162d3', 'project_id': '5a361fbf159d4870be135bb22e4162d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20642713', 'ctest-vn4-54220881'], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:00:55,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cf13c3b-6cb0-4e2a-94f8-f9470d42ed72', 'name': '', 'tenant_id': '5a361fbf159d4870be135bb22e4162d3', 'network_id': '23a766af-2a17-4226-8fdb-2d08bfa7c7d0', 'ip_version': 4, 'cidr': '22.183.214.192/26', 'allocation_pools': [{'start': '22.183.214.194', 'end': '22.183.214.254'}], 'gateway_ip': '22.183.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.183.214.194', 'tags': [], 'project_id': '5a361fbf159d4870be135bb22e4162d3'}} 2026-03-02 02:00:55,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d3ea29d-1414-4ea3-9103-507c91c4ad3b', 'name': '', 'tenant_id': '5a361fbf159d4870be135bb22e4162d3', 'network_id': '23a766af-2a17-4226-8fdb-2d08bfa7c7d0', 'ip_version': 6, 'cidr': '2d51:e970:bec8:d7ac:d44b:216a::/96', 'allocation_pools': [{'start': '2d51:e970:bec8:d7ac:d44b:216a:0:2', 'end': '2d51:e970:bec8:d7ac:d44b:216a:ffff:fffe'}], 'gateway_ip': '2d51:e970:bec8:d7ac:d44b:216a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d51:e970:bec8:d7ac:d44b:216a:0:2', 'tags': [], 'project_id': '5a361fbf159d4870be135bb22e4162d3'}} 2026-03-02 02:00:55,923 - INFO - Created VN ctest-vn4-54220881 2026-03-02 02:00:55,972 - DEBUG - VN ctest-vn4-54220881 UUID is 23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23a766af-2a17-4226-8fdb-2d08bfa7c7d0', 'name': 'ctest-vn4-54220881', 'tenant_id': '5a361fbf159d4870be135bb22e4162d3', 'project_id': '5a361fbf159d4870be135bb22e4162d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0cf13c3b-6cb0-4e2a-94f8-f9470d42ed72', '3d3ea29d-1414-4ea3-9103-507c91c4ad3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20642713', 'ctest-vn4-54220881'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20642713', 'ctest-policy1-71688024']], 'subnet_ipam': [{'subnet_cidr': '22.183.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d51:e970:bec8:d7ac:d44b:216a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:00:56,324 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-02 02:00:56,615 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-02 02:00:56,642 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ef259376-98d4-4d40-8afd-670806ec0d15 2026-03-02 02:00:56,652 - DEBUG - Requesting: http://10.0.0.141:8082/project/5a361fbf-159d-4870-be13-5bb22e4162d3 2026-03-02 02:00:56,731 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,745 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,755 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:56,763 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:56,769 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4901064b-7366-44bc-a3fe-5df187c5f4ac 2026-03-02 02:00:56,774 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:00:56,774 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,782 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:56,795 - INFO - Verified VN network id 11 for VN 23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,795 - INFO - Verifications in API Server for VN ctest-vn4-54220881 passed 2026-03-02 02:00:56,795 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,803 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:56,809 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:56,814 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4901064b-7366-44bc-a3fe-5df187c5f4ac 2026-03-02 02:00:56,825 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20642713', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2569135014949634598', 'uuid-lslong': '10365928482921760720'}, 'enable': 'true', 'created': '2026-03-02T02:00:55', 'last-modified': '2026-03-02T02:00:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698827'} 2026-03-02 02:00:56,832 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:00:56,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54220881 passed 2026-03-02 02:00:56,833 - DEBUG - ====Verifying policy data for ctest-vn4-54220881 in API_Server ====== 2026-03-02 02:00:56,833 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-02 02:00:56,839 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ef259376-98d4-4d40-8afd-670806ec0d15 2026-03-02 02:00:56,851 - DEBUG - Requesting: http://10.0.0.141:8082/project/5a361fbf-159d-4870-be13-5bb22e4162d3 2026-03-02 02:00:56,918 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/23a766af-2a17-4226-8fdb-2d08bfa7c7d0 2026-03-02 02:00:56,926 - DEBUG - ==>Verifying data for policy with id: 4d324aa3-bf46-4f70-a4ee-c3807558b9f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20642713', 'ctest-policy1-71688024'] 2026-03-02 02:00:56,926 - INFO - VN ctest-vn4-54220881 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-02 02:00:56,927 - DEBUG - Verifying the vn in opserver 2026-03-02 02:00:56,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881 virtual network link through opserver 10.0.0.141 2026-03-02 02:00:56,927 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-02 02:00:57,216 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-02 02:00:57,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881?flat'} 2026-03-02 02:00:57,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20642713:ctest-vn4-54220881 is found in opserver 2026-03-02 02:00:57,282 - DEBUG - Do not have enough data to verify VN in agent 2026-03-02 02:00:57,286 - DEBUG - VRF ids for VN ctest-vn4-54220881: {} 2026-03-02 02:00:57,286 - DEBUG - ====Verifying data for ctest-policy1-71688024 in API_Server ====== 2026-03-02 02:00:57,287 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-02 02:00:57,292 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ef259376-98d4-4d40-8afd-670806ec0d15 2026-03-02 02:00:57,301 - DEBUG - Requesting: http://10.0.0.141:8082/project/5a361fbf-159d-4870-be13-5bb22e4162d3 2026-03-02 02:00:57,369 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/4d324aa3-bf46-4f70-a4ee-c3807558b9f1 2026-03-02 02:00:57,381 - INFO - Verified policy ctest-policy1-71688024 in API Server, Result: True 2026-03-02 02:00:57,381 - INFO - Done with setup and verification, moving onto test .. 2026-03-02 02:00:57,387 - INFO - Deleting VN ctest-vn4-54220881 2026-03-02 02:00:57,494 - DEBUG - Response for deleting network () 2026-03-02 02:00:57,495 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a7b04d35-bea8-41fe-becc-13827d2e152b 2026-03-02 02:00:57,500 - DEBUG - Response Code: 404 2026-03-02 02:00:57,500 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-02 02:00:57,505 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ef259376-98d4-4d40-8afd-670806ec0d15 2026-03-02 02:00:57,560 - DEBUG - Requesting: http://10.0.0.141:8082/project/5a361fbf-159d-4870-be13-5bb22e4162d3 2026-03-02 02:00:57,639 - INFO - Validated that VN ctest-vn4-54220881 is not found in API Server 2026-03-02 02:00:57,648 - DEBUG - VN ctest-vn4-54220881 is not present in Agent 10.0.0.141 2026-03-02 02:00:57,648 - INFO - Validated that VN ctest-vn4-54220881 is not in any agent 2026-03-02 02:00:57,660 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54220881 info 2026-03-02 02:00:57,678 - INFO - Deleted policy ctest-policy1-71688024 2026-03-02 02:00:57,844 - DEBUG - policy ctest-policy1-71688024 is not found in API Server 2026-03-02 02:00:58,096 - DEBUG - No XMPP flaps were noticed during the test
2026-03-02 02:00:58,096 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-02 02:00:58,096 - INFO - -------------------------------------------------------------------------------- 2026-03-02 02:00:58,385 - DEBUG - No XMPP flaps were noticed during the test
2026-03-02 02:00:58,385 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-02 02:00:58,385 - INFO - -------------------------------------------------------------------------------- 2026-03-02 02:00:59,051 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20642713, ID : 5a361fbf-159d-4870-be13-5bb22e4162d3