2026-03-23 15:24:48,056 - INFO - Domain Default found not creating 2026-03-23 15:24:48,274 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95479370 not found, creating it 2026-03-23 15:24:48,746 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95479370, ID : 0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51 2026-03-23 15:24:50,422 - INFO - ================================================================================ 2026-03-23 15:24:50,422 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 15:24:50,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-03-23 15:24:50,688 - INFO - Initial checks done. Running the testcase now 2026-03-23 15:24:50,688 - INFO - 2026-03-23 15:24:50,688 - INFO - ================================================================================ 2026-03-23 15:24:50,688 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 15:24:50,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-03-23 15:24:50,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-03-23 15:24:50,982 - INFO - Initial checks done. Running the testcase now 2026-03-23 15:24:50,982 - INFO - 2026-03-23 15:24:51,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836, 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-95479370:ctest-vn4-38091836, 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-95479370:ctest-vn4-38091836, 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-95479370:ctest-vn4-38091836, 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-23 15:24:51,936 - DEBUG - Response for create_network : {'network': {'id': 'a0825d64-d123-49da-8488-e03558ed7127', 'name': 'ctest-vn4-38091836', 'tenant_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'project_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95479370', 'ctest-vn4-38091836'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 15:24:52,122 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad3c3473-f1b1-4ccf-a777-1b5ce3c3fa97', 'name': '', 'tenant_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'network_id': 'a0825d64-d123-49da-8488-e03558ed7127', 'ip_version': 4, 'cidr': '212.108.180.128/26', 'allocation_pools': [{'start': '212.108.180.130', 'end': '212.108.180.190'}], 'gateway_ip': '212.108.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.108.180.130', 'tags': [], 'project_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51'}} 2026-03-23 15:24:52,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b1765cf-fa14-438d-845e-f74f91912239', 'name': '', 'tenant_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'network_id': 'a0825d64-d123-49da-8488-e03558ed7127', 'ip_version': 6, 'cidr': '2493:f815:c8ab:df61:9cb9:1d50::/96', 'allocation_pools': [{'start': '2493:f815:c8ab:df61:9cb9:1d50:0:2', 'end': '2493:f815:c8ab:df61:9cb9:1d50:ffff:fffe'}], 'gateway_ip': '2493:f815:c8ab:df61:9cb9:1d50:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2493:f815:c8ab:df61:9cb9:1d50:0:2', 'tags': [], 'project_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51'}} 2026-03-23 15:24:52,333 - INFO - Created VN ctest-vn4-38091836 2026-03-23 15:24:52,389 - DEBUG - VN ctest-vn4-38091836 UUID is a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:52,621 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0825d64-d123-49da-8488-e03558ed7127', 'name': 'ctest-vn4-38091836', 'tenant_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'project_id': '0f9e9c9d8df84a5cb2cc9d1889da4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad3c3473-f1b1-4ccf-a777-1b5ce3c3fa97', '2b1765cf-fa14-438d-845e-f74f91912239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95479370', 'ctest-vn4-38091836'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95479370', 'ctest-policy1-10923178']], 'subnet_ipam': [{'subnet_cidr': '212.108.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2493:f815:c8ab:df61:9cb9:1d50::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 15:24:52,789 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-23 15:24:53,111 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-23 15:24:53,147 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055 2026-03-23 15:24:53,161 - DEBUG - Requesting: http://10.0.0.129:8082/project/0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51 2026-03-23 15:24:53,236 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,249 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,262 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:53,270 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:53,279 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6fd8e785-ef64-4855-ae81-8e8c852d6a5b 2026-03-23 15:24:53,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 15:24:53,288 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,298 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:53,317 - INFO - Verified VN network id 12 for VN a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,317 - INFO - Verifications in API Server for VN ctest-vn4-38091836 passed 2026-03-23 15:24:53,317 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,329 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:53,339 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:53,349 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6fd8e785-ef64-4855-ae81-8e8c852d6a5b 2026-03-23 15:24:53,364 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95479370', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11565909480627718618', 'uuid-lslong': '9550129529568981287'}, 'enable': 'true', 'created': '2026-03-23T15:24:51', 'last-modified': '2026-03-23T15:24:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777303'} 2026-03-23 15:24:53,371 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 15:24:53,371 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38091836 passed 2026-03-23 15:24:53,371 - DEBUG - ====Verifying policy data for ctest-vn4-38091836 in API_Server ====== 2026-03-23 15:24:53,371 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-23 15:24:53,379 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055 2026-03-23 15:24:53,391 - DEBUG - Requesting: http://10.0.0.129:8082/project/0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51 2026-03-23 15:24:53,470 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a0825d64-d123-49da-8488-e03558ed7127 2026-03-23 15:24:53,481 - DEBUG - ==>Verifying data for policy with id: 15fb095a-d9c8-45f7-8c81-18b454e5a161, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95479370', 'ctest-policy1-10923178'] 2026-03-23 15:24:53,481 - INFO - VN ctest-vn4-38091836 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 15:24:53,481 - DEBUG - Verifying the vn in opserver 2026-03-23 15:24:53,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836 virtual network link through opserver 10.0.0.129 2026-03-23 15:24:53,481 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-23 15:24:53,796 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-23 15:24:53,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836?flat'} 2026-03-23 15:24:53,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95479370:ctest-vn4-38091836 is found in opserver 2026-03-23 15:24:53,883 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 15:24:53,889 - DEBUG - VRF ids for VN ctest-vn4-38091836: {} 2026-03-23 15:24:53,890 - DEBUG - ====Verifying data for ctest-policy1-10923178 in API_Server ====== 2026-03-23 15:24:53,891 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-23 15:24:53,898 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055 2026-03-23 15:24:53,910 - DEBUG - Requesting: http://10.0.0.129:8082/project/0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51 2026-03-23 15:24:53,982 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/15fb095a-d9c8-45f7-8c81-18b454e5a161 2026-03-23 15:24:53,993 - INFO - Verified policy ctest-policy1-10923178 in API Server, Result: True 2026-03-23 15:24:53,993 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 15:24:54,003 - INFO - Deleting VN ctest-vn4-38091836 2026-03-23 15:24:54,142 - DEBUG - Response for deleting network () 2026-03-23 15:24:54,142 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/43ecbdf9-23bd-4d31-af2c-2dbb98260788 2026-03-23 15:24:54,148 - DEBUG - Response Code: 404 2026-03-23 15:24:54,148 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-23 15:24:54,154 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055 2026-03-23 15:24:54,211 - DEBUG - Requesting: http://10.0.0.129:8082/project/0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51 2026-03-23 15:24:54,291 - INFO - Validated that VN ctest-vn4-38091836 is not found in API Server 2026-03-23 15:24:54,303 - DEBUG - VN ctest-vn4-38091836 is not present in Agent 10.0.0.129 2026-03-23 15:24:54,303 - INFO - Validated that VN ctest-vn4-38091836 is not in any agent 2026-03-23 15:24:54,322 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38091836 info 2026-03-23 15:24:54,350 - INFO - Deleted policy ctest-policy1-10923178 2026-03-23 15:24:54,525 - DEBUG - policy ctest-policy1-10923178 is not found in API Server 2026-03-23 15:24:54,783 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 15:24:54,783 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-23 15:24:54,783 - INFO - -------------------------------------------------------------------------------- 2026-03-23 15:24:55,075 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 15:24:55,075 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-23 15:24:55,076 - INFO - -------------------------------------------------------------------------------- 2026-03-23 15:24:55,818 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95479370, ID : 0f9e9c9d-8df8-4a5c-b2cc-9d1889da4f51