2026-08-14 08:35:45,546 - INFO - Domain Default found not creating 2026-08-14 08:35:45,719 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99991474 not found, creating it 2026-08-14 08:35:46,219 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99991474, ID : b07ed5e2-8183-4484-9cbf-35240e3cb53b 2026-08-14 08:35:47,802 - INFO - ================================================================================ 2026-08-14 08:35:47,802 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:35:48,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-08-14 08:35:48,063 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:35:48,063 - INFO - 2026-08-14 08:35:48,063 - INFO - ================================================================================ 2026-08-14 08:35:48,063 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:35:48,063 - 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-14 08:35:48,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-08-14 08:35:48,378 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:35:48,378 - INFO - 2026-08-14 08:35:48,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641, 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-99991474:ctest-vn4-15096641, 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-99991474:ctest-vn4-15096641, 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-99991474:ctest-vn4-15096641, 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-14 08:35:49,305 - DEBUG - Response for create_network : {'network': {'id': 'aa77d011-2c9d-4d67-8da6-84cc925ae95e', 'name': 'ctest-vn4-15096641', 'tenant_id': 'b07ed5e2818344849cbf35240e3cb53b', 'project_id': 'b07ed5e2818344849cbf35240e3cb53b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99991474', 'ctest-vn4-15096641'], 'port_security_enabled': True, 'description': ''}} 2026-08-14 08:35:49,464 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8b82641-b00f-478c-a057-e7ffaf263a3f', 'name': '', 'tenant_id': 'b07ed5e2818344849cbf35240e3cb53b', 'network_id': 'aa77d011-2c9d-4d67-8da6-84cc925ae95e', 'ip_version': 4, 'cidr': '115.103.156.64/26', 'allocation_pools': [{'start': '115.103.156.66', 'end': '115.103.156.126'}], 'gateway_ip': '115.103.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.103.156.66', 'tags': [], 'project_id': 'b07ed5e2818344849cbf35240e3cb53b'}} 2026-08-14 08:35:49,612 - DEBUG - Response for create_subnet : {'subnet': {'id': '874c6311-6d07-4cf1-878a-4d69e5c843d2', 'name': '', 'tenant_id': 'b07ed5e2818344849cbf35240e3cb53b', 'network_id': 'aa77d011-2c9d-4d67-8da6-84cc925ae95e', 'ip_version': 6, 'cidr': '2e51:2038:2e70:ba87:9db6:7f3::/96', 'allocation_pools': [{'start': '2e51:2038:2e70:ba87:9db6:7f3:0:2', 'end': '2e51:2038:2e70:ba87:9db6:7f3:ffff:fffe'}], 'gateway_ip': '2e51:2038:2e70:ba87:9db6:7f3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e51:2038:2e70:ba87:9db6:7f3:0:2', 'tags': [], 'project_id': 'b07ed5e2818344849cbf35240e3cb53b'}} 2026-08-14 08:35:49,632 - INFO - Created VN ctest-vn4-15096641 2026-08-14 08:35:49,685 - DEBUG - VN ctest-vn4-15096641 UUID is aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:49,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa77d011-2c9d-4d67-8da6-84cc925ae95e', 'name': 'ctest-vn4-15096641', 'tenant_id': 'b07ed5e2818344849cbf35240e3cb53b', 'project_id': 'b07ed5e2818344849cbf35240e3cb53b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8b82641-b00f-478c-a057-e7ffaf263a3f', '874c6311-6d07-4cf1-878a-4d69e5c843d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99991474', 'ctest-vn4-15096641'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99991474', 'ctest-policy1-83670322']], 'subnet_ipam': [{'subnet_cidr': '115.103.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e51:2038:2e70:ba87:9db6:7f3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-14 08:35:50,073 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-08-14 08:35:50,404 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-08-14 08:35:50,437 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc 2026-08-14 08:35:50,451 - DEBUG - Requesting: http://10.0.0.22:8082/project/b07ed5e2-8183-4484-9cbf-35240e3cb53b 2026-08-14 08:35:50,536 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,550 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,561 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:50,569 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:50,576 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43360c60-b094-4b63-ac7b-f5c010961cae 2026-08-14 08:35:50,583 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 08:35:50,583 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,593 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:50,608 - INFO - Verified VN network id 12 for VN aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,608 - INFO - Verifications in API Server for VN ctest-vn4-15096641 passed 2026-08-14 08:35:50,608 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:50,630 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:50,637 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43360c60-b094-4b63-ac7b-f5c010961cae 2026-08-14 08:35:50,650 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99991474', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12283515280857845095', 'uuid-lslong': '10206991619645434206'}, 'enable': 'true', 'created': '2026-08-14T08:35:49', 'last-modified': '2026-08-14T08:35:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786573'} 2026-08-14 08:35:50,656 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 08:35:50,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15096641 passed 2026-08-14 08:35:50,656 - DEBUG - ====Verifying policy data for ctest-vn4-15096641 in API_Server ====== 2026-08-14 08:35:50,656 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-08-14 08:35:50,662 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc 2026-08-14 08:35:50,674 - DEBUG - Requesting: http://10.0.0.22:8082/project/b07ed5e2-8183-4484-9cbf-35240e3cb53b 2026-08-14 08:35:50,750 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/aa77d011-2c9d-4d67-8da6-84cc925ae95e 2026-08-14 08:35:50,763 - DEBUG - ==>Verifying data for policy with id: a536eae4-eb34-482c-87e9-881157f62efe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99991474', 'ctest-policy1-83670322'] 2026-08-14 08:35:50,763 - INFO - VN ctest-vn4-15096641 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 08:35:50,763 - DEBUG - Verifying the vn in opserver 2026-08-14 08:35:50,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641 virtual network link through opserver 10.0.0.22 2026-08-14 08:35:50,763 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-08-14 08:35:51,096 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-08-14 08:35:51,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641?flat'} 2026-08-14 08:35:51,154 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99991474:ctest-vn4-15096641 is found in opserver 2026-08-14 08:35:51,169 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 08:35:51,178 - DEBUG - VRF ids for VN ctest-vn4-15096641: {} 2026-08-14 08:35:51,179 - DEBUG - ====Verifying data for ctest-policy1-83670322 in API_Server ====== 2026-08-14 08:35:51,179 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-08-14 08:35:51,186 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc 2026-08-14 08:35:51,198 - DEBUG - Requesting: http://10.0.0.22:8082/project/b07ed5e2-8183-4484-9cbf-35240e3cb53b 2026-08-14 08:35:51,282 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/a536eae4-eb34-482c-87e9-881157f62efe 2026-08-14 08:35:51,294 - INFO - Verified policy ctest-policy1-83670322 in API Server, Result: True 2026-08-14 08:35:51,294 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 08:35:51,303 - INFO - Deleting VN ctest-vn4-15096641 2026-08-14 08:35:51,451 - DEBUG - Response for deleting network () 2026-08-14 08:35:51,451 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ff278087-112e-4e05-a9ca-60eb951943f0 2026-08-14 08:35:51,457 - DEBUG - Response Code: 404 2026-08-14 08:35:51,458 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-08-14 08:35:51,466 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc 2026-08-14 08:35:51,523 - DEBUG - Requesting: http://10.0.0.22:8082/project/b07ed5e2-8183-4484-9cbf-35240e3cb53b 2026-08-14 08:35:51,603 - INFO - Validated that VN ctest-vn4-15096641 is not found in API Server 2026-08-14 08:35:51,616 - DEBUG - VN ctest-vn4-15096641 is not present in Agent 10.0.0.22 2026-08-14 08:35:51,616 - INFO - Validated that VN ctest-vn4-15096641 is not in any agent 2026-08-14 08:35:51,634 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15096641 info 2026-08-14 08:35:51,658 - INFO - Deleted policy ctest-policy1-83670322 2026-08-14 08:35:51,829 - DEBUG - policy ctest-policy1-83670322 is not found in API Server 2026-08-14 08:35:52,087 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 08:35:52,087 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-14 08:35:52,087 - INFO - -------------------------------------------------------------------------------- 2026-08-14 08:35:52,383 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 08:35:52,384 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-14 08:35:52,384 - INFO - -------------------------------------------------------------------------------- 2026-08-14 08:35:53,114 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99991474, ID : b07ed5e2-8183-4484-9cbf-35240e3cb53b