2026-01-01 06:48:37,852 - INFO - Domain Default found not creating 2026-01-01 06:48:38,044 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71193438 not found, creating it 2026-01-01 06:48:38,544 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71193438, ID : d15e5c7a-5436-4c2d-b0da-ed370bca508d 2026-01-01 06:48:40,247 - INFO - ================================================================================ 2026-01-01 06:48:40,247 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 06:48:40,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-01 06:48:40,511 - INFO - Initial checks done. Running the testcase now 2026-01-01 06:48:40,511 - INFO - 2026-01-01 06:48:40,511 - INFO - ================================================================================ 2026-01-01 06:48:40,511 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 06:48:40,511 - 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-01 06:48:40,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-01 06:48:40,800 - INFO - Initial checks done. Running the testcase now 2026-01-01 06:48:40,800 - INFO - 2026-01-01 06:48:41,208 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287, 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-71193438:ctest-vn4-66245287, 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-71193438:ctest-vn4-66245287, 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-71193438:ctest-vn4-66245287, 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-01 06:48:41,753 - DEBUG - Response for create_network : {'network': {'id': 'a2ea12b2-8a08-4af6-9d00-8c5febd7b06d', 'name': 'ctest-vn4-66245287', 'tenant_id': 'd15e5c7a54364c2db0daed370bca508d', 'project_id': 'd15e5c7a54364c2db0daed370bca508d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71193438', 'ctest-vn4-66245287'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 06:48:41,940 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e375f0f8-fba4-43d3-be20-1b6f20c8e345', 'name': '', 'tenant_id': 'd15e5c7a54364c2db0daed370bca508d', 'network_id': 'a2ea12b2-8a08-4af6-9d00-8c5febd7b06d', 'ip_version': 4, 'cidr': '7.156.183.64/26', 'allocation_pools': [{'start': '7.156.183.66', 'end': '7.156.183.126'}], 'gateway_ip': '7.156.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.156.183.66', 'tags': [], 'project_id': 'd15e5c7a54364c2db0daed370bca508d'}} 2026-01-01 06:48:42,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '524f3f7a-7923-4263-bdda-854888c620f3', 'name': '', 'tenant_id': 'd15e5c7a54364c2db0daed370bca508d', 'network_id': 'a2ea12b2-8a08-4af6-9d00-8c5febd7b06d', 'ip_version': 6, 'cidr': '22ec:2b66:3a57:d4af:9321:aa5::/96', 'allocation_pools': [{'start': '22ec:2b66:3a57:d4af:9321:aa5:0:2', 'end': '22ec:2b66:3a57:d4af:9321:aa5:ffff:fffe'}], 'gateway_ip': '22ec:2b66:3a57:d4af:9321:aa5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22ec:2b66:3a57:d4af:9321:aa5:0:2', 'tags': [], 'project_id': 'd15e5c7a54364c2db0daed370bca508d'}} 2026-01-01 06:48:42,128 - INFO - Created VN ctest-vn4-66245287 2026-01-01 06:48:42,181 - DEBUG - VN ctest-vn4-66245287 UUID is a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:42,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2ea12b2-8a08-4af6-9d00-8c5febd7b06d', 'name': 'ctest-vn4-66245287', 'tenant_id': 'd15e5c7a54364c2db0daed370bca508d', 'project_id': 'd15e5c7a54364c2db0daed370bca508d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e375f0f8-fba4-43d3-be20-1b6f20c8e345', '524f3f7a-7923-4263-bdda-854888c620f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71193438', 'ctest-vn4-66245287'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71193438', 'ctest-policy1-93811697']], 'subnet_ipam': [{'subnet_cidr': '7.156.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22ec:2b66:3a57:d4af:9321:aa5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 06:48:42,561 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 06:48:42,899 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 06:48:42,936 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220 2026-01-01 06:48:42,951 - DEBUG - Requesting: http://10.0.0.38:8082/project/d15e5c7a-5436-4c2d-b0da-ed370bca508d 2026-01-01 06:48:43,025 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,065 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5632f90e-e578-4e98-b540-46e33d467852 2026-01-01 06:48:43,072 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 06:48:43,073 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,100 - INFO - Verified VN network id 11 for VN a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,100 - INFO - Verifications in API Server for VN ctest-vn4-66245287 passed 2026-01-01 06:48:43,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,110 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,125 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5632f90e-e578-4e98-b540-46e33d467852 2026-01-01 06:48:43,137 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71193438', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11739215936723897078', 'uuid-lslong': '11313196607561248877'}, 'enable': 'true', 'created': '2026-01-01T06:48:41', 'last-modified': '2026-01-01T06:48:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777864'} 2026-01-01 06:48:43,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 06:48:43,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66245287 passed 2026-01-01 06:48:43,144 - DEBUG - ====Verifying policy data for ctest-vn4-66245287 in API_Server ====== 2026-01-01 06:48:43,144 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 06:48:43,150 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220 2026-01-01 06:48:43,162 - DEBUG - Requesting: http://10.0.0.38:8082/project/d15e5c7a-5436-4c2d-b0da-ed370bca508d 2026-01-01 06:48:43,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2ea12b2-8a08-4af6-9d00-8c5febd7b06d 2026-01-01 06:48:43,245 - DEBUG - ==>Verifying data for policy with id: f9fd0dda-8d81-49ba-8921-77348db7d18b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71193438', 'ctest-policy1-93811697'] 2026-01-01 06:48:43,245 - INFO - VN ctest-vn4-66245287 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 06:48:43,245 - DEBUG - Verifying the vn in opserver 2026-01-01 06:48:43,245 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287 virtual network link through opserver 10.0.0.38 2026-01-01 06:48:43,245 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 06:48:43,592 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 06:48:43,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287?flat'} 2026-01-01 06:48:43,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71193438:ctest-vn4-66245287 is found in opserver 2026-01-01 06:48:43,675 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 06:48:43,680 - DEBUG - VRF ids for VN ctest-vn4-66245287: {} 2026-01-01 06:48:43,680 - DEBUG - ====Verifying data for ctest-policy1-93811697 in API_Server ====== 2026-01-01 06:48:43,680 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 06:48:43,686 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220 2026-01-01 06:48:43,698 - DEBUG - Requesting: http://10.0.0.38:8082/project/d15e5c7a-5436-4c2d-b0da-ed370bca508d 2026-01-01 06:48:43,773 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f9fd0dda-8d81-49ba-8921-77348db7d18b 2026-01-01 06:48:43,782 - INFO - Verified policy ctest-policy1-93811697 in API Server, Result: True 2026-01-01 06:48:43,782 - INFO - Done with setup and verification, moving onto test .. 2026-01-01 06:48:43,790 - INFO - Deleting VN ctest-vn4-66245287 2026-01-01 06:48:43,925 - DEBUG - Response for deleting network () 2026-01-01 06:48:43,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b494e04-2c65-41e2-b1f3-a479e3e79508 2026-01-01 06:48:43,930 - DEBUG - Response Code: 404 2026-01-01 06:48:43,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 06:48:43,936 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d00a501-1d0b-4d7e-a635-52bf1cdff220 2026-01-01 06:48:43,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/d15e5c7a-5436-4c2d-b0da-ed370bca508d 2026-01-01 06:48:44,066 - INFO - Validated that VN ctest-vn4-66245287 is not found in API Server 2026-01-01 06:48:44,079 - DEBUG - VN ctest-vn4-66245287 is not present in Agent 10.0.0.38 2026-01-01 06:48:44,079 - INFO - Validated that VN ctest-vn4-66245287 is not in any agent 2026-01-01 06:48:44,094 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66245287 info 2026-01-01 06:48:44,124 - INFO - Deleted policy ctest-policy1-93811697 2026-01-01 06:48:44,289 - DEBUG - policy ctest-policy1-93811697 is not found in API Server 2026-01-01 06:48:44,543 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 06:48:44,543 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-01 06:48:44,543 - INFO - -------------------------------------------------------------------------------- 2026-01-01 06:48:44,830 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 06:48:44,830 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-01 06:48:44,831 - INFO - -------------------------------------------------------------------------------- 2026-01-01 06:48:45,561 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71193438, ID : d15e5c7a-5436-4c2d-b0da-ed370bca508d