2026-01-19 02:15:25,952 - INFO - Domain Default found not creating 2026-01-19 02:15:26,146 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71478785 not found, creating it 2026-01-19 02:15:26,604 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71478785, ID : fb0217ce-494b-4da9-9199-54cb7487f54c 2026-01-19 02:15:28,122 - INFO - ================================================================================ 2026-01-19 02:15:28,122 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:15:28,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.209': '0'}} with 2026-01-19 02:15:28,379 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:15:28,379 - INFO - 2026-01-19 02:15:28,379 - INFO - ================================================================================ 2026-01-19 02:15:28,379 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:15:28,379 - 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-01-19 02:15:28,668 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.209': '0'}} with 2026-01-19 02:15:28,668 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:15:28,668 - INFO - 2026-01-19 02:15:29,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033, 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-71478785:ctest-vn4-93617033, 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-71478785:ctest-vn4-93617033, 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-71478785:ctest-vn4-93617033, 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-01-19 02:15:29,541 - DEBUG - Response for create_network : {'network': {'id': '0471481d-8a2d-4c38-b57d-d06591f1603d', 'name': 'ctest-vn4-93617033', 'tenant_id': 'fb0217ce494b4da9919954cb7487f54c', 'project_id': 'fb0217ce494b4da9919954cb7487f54c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71478785', 'ctest-vn4-93617033'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:15:29,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '769ae01b-6c79-4ab6-8b1c-fb8d49d5d4d8', 'name': '', 'tenant_id': 'fb0217ce494b4da9919954cb7487f54c', 'network_id': '0471481d-8a2d-4c38-b57d-d06591f1603d', 'ip_version': 4, 'cidr': '20.230.169.192/26', 'allocation_pools': [{'start': '20.230.169.194', 'end': '20.230.169.254'}], 'gateway_ip': '20.230.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.230.169.194', 'tags': [], 'project_id': 'fb0217ce494b4da9919954cb7487f54c'}} 2026-01-19 02:15:29,886 - DEBUG - Response for create_subnet : {'subnet': {'id': '265b2c41-9fbb-4a4c-b445-2ca613fcf0f6', 'name': '', 'tenant_id': 'fb0217ce494b4da9919954cb7487f54c', 'network_id': '0471481d-8a2d-4c38-b57d-d06591f1603d', 'ip_version': 6, 'cidr': '2c87:3f31:9d8c:8730:19eb:104b::/96', 'allocation_pools': [{'start': '2c87:3f31:9d8c:8730:19eb:104b:0:2', 'end': '2c87:3f31:9d8c:8730:19eb:104b:ffff:fffe'}], 'gateway_ip': '2c87:3f31:9d8c:8730:19eb:104b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c87:3f31:9d8c:8730:19eb:104b:0:2', 'tags': [], 'project_id': 'fb0217ce494b4da9919954cb7487f54c'}} 2026-01-19 02:15:29,908 - INFO - Created VN ctest-vn4-93617033 2026-01-19 02:15:29,959 - DEBUG - VN ctest-vn4-93617033 UUID is 0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0471481d-8a2d-4c38-b57d-d06591f1603d', 'name': 'ctest-vn4-93617033', 'tenant_id': 'fb0217ce494b4da9919954cb7487f54c', 'project_id': 'fb0217ce494b4da9919954cb7487f54c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['769ae01b-6c79-4ab6-8b1c-fb8d49d5d4d8', '265b2c41-9fbb-4a4c-b445-2ca613fcf0f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71478785', 'ctest-vn4-93617033'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71478785', 'ctest-policy1-91780941']], 'subnet_ipam': [{'subnet_cidr': '20.230.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c87:3f31:9d8c:8730:19eb:104b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:15:30,319 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-19 02:15:30,617 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-19 02:15:30,653 - DEBUG - Requesting: http://10.0.0.130:8082/domain/6b1950eb-3744-4375-a1be-2f40ed6a9311 2026-01-19 02:15:30,664 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb0217ce-494b-4da9-9199-54cb7487f54c 2026-01-19 02:15:30,733 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,744 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,753 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:30,759 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:30,766 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c7a492ff-59db-4f43-8071-d1351f27e3d6 2026-01-19 02:15:30,772 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:15:30,772 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,780 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:30,792 - INFO - Verified VN network id 11 for VN 0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,792 - INFO - Verifications in API Server for VN ctest-vn4-93617033 passed 2026-01-19 02:15:30,792 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,802 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:30,808 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:30,814 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c7a492ff-59db-4f43-8071-d1351f27e3d6 2026-01-19 02:15:30,824 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71478785', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '320116340229491768', 'uuid-lslong': '13077838027612577853'}, 'enable': 'true', 'created': '2026-01-19T02:15:29', 'last-modified': '2026-01-19T02:15:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699436'} 2026-01-19 02:15:30,832 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:15:30,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93617033 passed 2026-01-19 02:15:30,832 - DEBUG - ====Verifying policy data for ctest-vn4-93617033 in API_Server ====== 2026-01-19 02:15:30,832 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-19 02:15:30,838 - DEBUG - Requesting: http://10.0.0.130:8082/domain/6b1950eb-3744-4375-a1be-2f40ed6a9311 2026-01-19 02:15:30,849 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb0217ce-494b-4da9-9199-54cb7487f54c 2026-01-19 02:15:30,917 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/0471481d-8a2d-4c38-b57d-d06591f1603d 2026-01-19 02:15:30,926 - DEBUG - ==>Verifying data for policy with id: e57173cd-11ea-45d0-aa73-85a2396a612f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71478785', 'ctest-policy1-91780941'] 2026-01-19 02:15:30,926 - INFO - VN ctest-vn4-93617033 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:15:30,926 - DEBUG - Verifying the vn in opserver 2026-01-19 02:15:30,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033 virtual network link through opserver 10.0.0.130 2026-01-19 02:15:30,926 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-19 02:15:31,224 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-19 02:15:31,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033?flat'} 2026-01-19 02:15:31,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71478785:ctest-vn4-93617033 is found in opserver 2026-01-19 02:15:31,306 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:15:31,311 - DEBUG - VRF ids for VN ctest-vn4-93617033: {} 2026-01-19 02:15:31,311 - DEBUG - ====Verifying data for ctest-policy1-91780941 in API_Server ====== 2026-01-19 02:15:31,311 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-19 02:15:31,316 - DEBUG - Requesting: http://10.0.0.130:8082/domain/6b1950eb-3744-4375-a1be-2f40ed6a9311 2026-01-19 02:15:31,328 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb0217ce-494b-4da9-9199-54cb7487f54c 2026-01-19 02:15:31,399 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/e57173cd-11ea-45d0-aa73-85a2396a612f 2026-01-19 02:15:31,407 - INFO - Verified policy ctest-policy1-91780941 in API Server, Result: True 2026-01-19 02:15:31,407 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 02:15:31,413 - INFO - Deleting VN ctest-vn4-93617033 2026-01-19 02:15:31,533 - DEBUG - Response for deleting network () 2026-01-19 02:15:31,533 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/752bcbfc-f1cc-487a-ba60-0ee5cc75305e 2026-01-19 02:15:31,538 - DEBUG - Response Code: 404 2026-01-19 02:15:31,538 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-19 02:15:31,544 - DEBUG - Requesting: http://10.0.0.130:8082/domain/6b1950eb-3744-4375-a1be-2f40ed6a9311 2026-01-19 02:15:31,595 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb0217ce-494b-4da9-9199-54cb7487f54c 2026-01-19 02:15:31,671 - INFO - Validated that VN ctest-vn4-93617033 is not found in API Server 2026-01-19 02:15:31,679 - DEBUG - VN ctest-vn4-93617033 is not present in Agent 10.0.0.130 2026-01-19 02:15:31,679 - INFO - Validated that VN ctest-vn4-93617033 is not in any agent 2026-01-19 02:15:31,692 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93617033 info 2026-01-19 02:15:31,716 - INFO - Deleted policy ctest-policy1-91780941 2026-01-19 02:15:31,895 - DEBUG - policy ctest-policy1-91780941 is not found in API Server 2026-01-19 02:15:32,148 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 02:15:32,148 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-19 02:15:32,148 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:15:32,451 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 02:15:32,451 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-19 02:15:32,451 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:15:33,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71478785, ID : fb0217ce-494b-4da9-9199-54cb7487f54c