2026-01-07 15:40:20,308 - INFO - Domain Default found not creating 2026-01-07 15:40:20,445 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92990161 not found, creating it 2026-01-07 15:40:20,860 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92990161, ID : 1037572e-0d8a-47fd-b689-c41a0d3f6188 2026-01-07 15:40:22,224 - INFO - ================================================================================ 2026-01-07 15:40:22,224 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 15:40:22,472 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-07 15:40:22,472 - INFO - Initial checks done. Running the testcase now 2026-01-07 15:40:22,472 - INFO - 2026-01-07 15:40:22,472 - INFO - ================================================================================ 2026-01-07 15:40:22,472 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 15:40:22,473 - 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-07 15:40:22,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-07 15:40:22,772 - INFO - Initial checks done. Running the testcase now 2026-01-07 15:40:22,772 - INFO - 2026-01-07 15:40:23,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325, 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-92990161:ctest-vn4-68696325, 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-92990161:ctest-vn4-68696325, 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-92990161:ctest-vn4-68696325, 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-07 15:40:23,588 - DEBUG - Response for create_network : {'network': {'id': '419cbcf3-54c6-4f99-a6f5-0191e18a0b9c', 'name': 'ctest-vn4-68696325', 'tenant_id': '1037572e0d8a47fdb689c41a0d3f6188', 'project_id': '1037572e0d8a47fdb689c41a0d3f6188', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92990161', 'ctest-vn4-68696325'], 'port_security_enabled': True, 'description': ''}} 2026-01-07 15:40:23,756 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f246ef7-deae-4921-a8be-68d959d4e58f', 'name': '', 'tenant_id': '1037572e0d8a47fdb689c41a0d3f6188', 'network_id': '419cbcf3-54c6-4f99-a6f5-0191e18a0b9c', 'ip_version': 4, 'cidr': '166.132.99.0/26', 'allocation_pools': [{'start': '166.132.99.2', 'end': '166.132.99.62'}], 'gateway_ip': '166.132.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.132.99.2', 'tags': [], 'project_id': '1037572e0d8a47fdb689c41a0d3f6188'}} 2026-01-07 15:40:23,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c8c9232-ea54-4dba-9584-c3a137925484', 'name': '', 'tenant_id': '1037572e0d8a47fdb689c41a0d3f6188', 'network_id': '419cbcf3-54c6-4f99-a6f5-0191e18a0b9c', 'ip_version': 6, 'cidr': '2f4d:3759:f9ed:472c:4f85:45c6::/96', 'allocation_pools': [{'start': '2f4d:3759:f9ed:472c:4f85:45c6:0:2', 'end': '2f4d:3759:f9ed:472c:4f85:45c6:ffff:fffe'}], 'gateway_ip': '2f4d:3759:f9ed:472c:4f85:45c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f4d:3759:f9ed:472c:4f85:45c6:0:2', 'tags': [], 'project_id': '1037572e0d8a47fdb689c41a0d3f6188'}} 2026-01-07 15:40:23,967 - INFO - Created VN ctest-vn4-68696325 2026-01-07 15:40:24,016 - DEBUG - VN ctest-vn4-68696325 UUID is 419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '419cbcf3-54c6-4f99-a6f5-0191e18a0b9c', 'name': 'ctest-vn4-68696325', 'tenant_id': '1037572e0d8a47fdb689c41a0d3f6188', 'project_id': '1037572e0d8a47fdb689c41a0d3f6188', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f246ef7-deae-4921-a8be-68d959d4e58f', '8c8c9232-ea54-4dba-9584-c3a137925484'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92990161', 'ctest-vn4-68696325'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92990161', 'ctest-policy1-71232986']], 'subnet_ipam': [{'subnet_cidr': '166.132.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f4d:3759:f9ed:472c:4f85:45c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-07 15:40:24,352 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 15:40:24,640 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 15:40:24,667 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4 2026-01-07 15:40:24,678 - DEBUG - Requesting: http://10.0.0.38:8082/project/1037572e-0d8a-47fd-b689-c41a0d3f6188 2026-01-07 15:40:24,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:24,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:24,812 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c2140d2b-4554-4841-a8a3-2cbf6ff512ed 2026-01-07 15:40:24,817 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 15:40:24,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,824 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:24,834 - INFO - Verified VN network id 11 for VN 419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,834 - INFO - Verifications in API Server for VN ctest-vn4-68696325 passed 2026-01-07 15:40:24,834 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:24,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:24,852 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c2140d2b-4554-4841-a8a3-2cbf6ff512ed 2026-01-07 15:40:24,860 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92990161', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4727861462117535641', 'uuid-lslong': '12030523705655954332'}, 'enable': 'true', 'created': '2026-01-07T15:40:23', 'last-modified': '2026-01-07T15:40:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695216'} 2026-01-07 15:40:24,865 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 15:40:24,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68696325 passed 2026-01-07 15:40:24,866 - DEBUG - ====Verifying policy data for ctest-vn4-68696325 in API_Server ====== 2026-01-07 15:40:24,866 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 15:40:24,869 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4 2026-01-07 15:40:24,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/1037572e-0d8a-47fd-b689-c41a0d3f6188 2026-01-07 15:40:24,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/419cbcf3-54c6-4f99-a6f5-0191e18a0b9c 2026-01-07 15:40:24,951 - DEBUG - ==>Verifying data for policy with id: a55bc290-631d-4690-929c-c8ee3a066997, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92990161', 'ctest-policy1-71232986'] 2026-01-07 15:40:24,951 - INFO - VN ctest-vn4-68696325 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-07 15:40:24,951 - DEBUG - Verifying the vn in opserver 2026-01-07 15:40:24,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325 virtual network link through opserver 10.0.0.38 2026-01-07 15:40:24,951 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-07 15:40:25,237 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-07 15:40:25,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325?flat'} 2026-01-07 15:40:25,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92990161:ctest-vn4-68696325 is found in opserver 2026-01-07 15:40:25,299 - DEBUG - Do not have enough data to verify VN in agent 2026-01-07 15:40:25,302 - DEBUG - VRF ids for VN ctest-vn4-68696325: {} 2026-01-07 15:40:25,303 - DEBUG - ====Verifying data for ctest-policy1-71232986 in API_Server ====== 2026-01-07 15:40:25,303 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 15:40:25,307 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4 2026-01-07 15:40:25,316 - DEBUG - Requesting: http://10.0.0.38:8082/project/1037572e-0d8a-47fd-b689-c41a0d3f6188 2026-01-07 15:40:25,391 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a55bc290-631d-4690-929c-c8ee3a066997 2026-01-07 15:40:25,405 - INFO - Verified policy ctest-policy1-71232986 in API Server, Result: True 2026-01-07 15:40:25,405 - INFO - Done with setup and verification, moving onto test .. 2026-01-07 15:40:25,412 - INFO - Deleting VN ctest-vn4-68696325 2026-01-07 15:40:25,519 - DEBUG - Response for deleting network () 2026-01-07 15:40:25,519 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1c1be3f-f9d7-447e-9b81-e09abe45baf8 2026-01-07 15:40:25,523 - DEBUG - Response Code: 404 2026-01-07 15:40:25,523 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 15:40:25,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4 2026-01-07 15:40:25,580 - DEBUG - Requesting: http://10.0.0.38:8082/project/1037572e-0d8a-47fd-b689-c41a0d3f6188 2026-01-07 15:40:25,647 - INFO - Validated that VN ctest-vn4-68696325 is not found in API Server 2026-01-07 15:40:25,655 - DEBUG - VN ctest-vn4-68696325 is not present in Agent 10.0.0.38 2026-01-07 15:40:25,655 - INFO - Validated that VN ctest-vn4-68696325 is not in any agent 2026-01-07 15:40:25,666 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68696325 info 2026-01-07 15:40:25,688 - INFO - Deleted policy ctest-policy1-71232986 2026-01-07 15:40:25,844 - DEBUG - policy ctest-policy1-71232986 is not found in API Server 2026-01-07 15:40:26,092 - DEBUG - No XMPP flaps were noticed during the test 2026-01-07 15:40:26,092 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-07 15:40:26,092 - INFO - -------------------------------------------------------------------------------- 2026-01-07 15:40:26,380 - DEBUG - No XMPP flaps were noticed during the test 2026-01-07 15:40:26,380 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-07 15:40:26,381 - INFO - -------------------------------------------------------------------------------- 2026-01-07 15:40:27,030 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92990161, ID : 1037572e-0d8a-47fd-b689-c41a0d3f6188