2026-04-20 18:10:39,845 - INFO - Domain Default found not creating 2026-04-20 18:10:40,054 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04017626 not found, creating it 2026-04-20 18:10:40,567 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04017626, ID : 907273a4-3457-4dc2-b18a-e9b8fab48606 2026-04-20 18:10:42,179 - INFO - ================================================================================ 2026-04-20 18:10:42,179 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 18:10:42,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-04-20 18:10:42,439 - INFO - Initial checks done. Running the testcase now 2026-04-20 18:10:42,439 - INFO - 2026-04-20 18:10:42,439 - INFO - ================================================================================ 2026-04-20 18:10:42,439 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 18:10:42,439 - 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-04-20 18:10:42,743 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-04-20 18:10:42,743 - INFO - Initial checks done. Running the testcase now 2026-04-20 18:10:42,743 - INFO - 2026-04-20 18:10:43,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759, 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-04017626:ctest-vn4-82685759, 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-04017626:ctest-vn4-82685759, 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-04017626:ctest-vn4-82685759, 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-04-20 18:10:43,675 - DEBUG - Response for create_network : {'network': {'id': '829925e5-2039-44e4-913e-7ecf5d2f7d36', 'name': 'ctest-vn4-82685759', 'tenant_id': '907273a434574dc2b18ae9b8fab48606', 'project_id': '907273a434574dc2b18ae9b8fab48606', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04017626', 'ctest-vn4-82685759'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 18:10:43,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f54146a-55e9-47b8-962d-113fcbdc01d7', 'name': '', 'tenant_id': '907273a434574dc2b18ae9b8fab48606', 'network_id': '829925e5-2039-44e4-913e-7ecf5d2f7d36', 'ip_version': 4, 'cidr': '56.214.93.192/26', 'allocation_pools': [{'start': '56.214.93.194', 'end': '56.214.93.254'}], 'gateway_ip': '56.214.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.214.93.194', 'tags': [], 'project_id': '907273a434574dc2b18ae9b8fab48606'}} 2026-04-20 18:10:44,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9afaaee-2df2-4ef8-945b-b96be7479496', 'name': '', 'tenant_id': '907273a434574dc2b18ae9b8fab48606', 'network_id': '829925e5-2039-44e4-913e-7ecf5d2f7d36', 'ip_version': 6, 'cidr': '3362:5603:1d9c:4c2:50ba:3cfd::/96', 'allocation_pools': [{'start': '3362:5603:1d9c:4c2:50ba:3cfd:0:2', 'end': '3362:5603:1d9c:4c2:50ba:3cfd:ffff:fffe'}], 'gateway_ip': '3362:5603:1d9c:4c2:50ba:3cfd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3362:5603:1d9c:4c2:50ba:3cfd:0:2', 'tags': [], 'project_id': '907273a434574dc2b18ae9b8fab48606'}} 2026-04-20 18:10:44,103 - INFO - Created VN ctest-vn4-82685759 2026-04-20 18:10:44,161 - DEBUG - VN ctest-vn4-82685759 UUID is 829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:44,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '829925e5-2039-44e4-913e-7ecf5d2f7d36', 'name': 'ctest-vn4-82685759', 'tenant_id': '907273a434574dc2b18ae9b8fab48606', 'project_id': '907273a434574dc2b18ae9b8fab48606', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f54146a-55e9-47b8-962d-113fcbdc01d7', 'd9afaaee-2df2-4ef8-945b-b96be7479496'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04017626', 'ctest-vn4-82685759'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04017626', 'ctest-policy1-23034486']], 'subnet_ipam': [{'subnet_cidr': '56.214.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3362:5603:1d9c:4c2:50ba:3cfd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 18:10:44,577 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-20 18:10:44,885 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-20 18:10:44,928 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385 2026-04-20 18:10:44,941 - DEBUG - Requesting: http://10.0.0.22:8082/project/907273a4-3457-4dc2-b18a-e9b8fab48606 2026-04-20 18:10:45,022 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,034 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,044 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,059 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/efa3c8b8-4336-420c-8d65-f99c90e7dfa2 2026-04-20 18:10:45,066 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 18:10:45,066 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,078 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,094 - INFO - Verified VN network id 12 for VN 829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,094 - INFO - Verifications in API Server for VN ctest-vn4-82685759 passed 2026-04-20 18:10:45,094 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,104 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,112 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,120 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/efa3c8b8-4336-420c-8d65-f99c90e7dfa2 2026-04-20 18:10:45,132 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04017626', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9410594562385724644', 'uuid-lslong': '10465942013142334774'}, 'enable': 'true', 'created': '2026-04-20T18:10:43', 'last-modified': '2026-04-20T18:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762431'} 2026-04-20 18:10:45,137 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 18:10:45,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82685759 passed 2026-04-20 18:10:45,138 - DEBUG - ====Verifying policy data for ctest-vn4-82685759 in API_Server ====== 2026-04-20 18:10:45,138 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-20 18:10:45,143 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385 2026-04-20 18:10:45,156 - DEBUG - Requesting: http://10.0.0.22:8082/project/907273a4-3457-4dc2-b18a-e9b8fab48606 2026-04-20 18:10:45,229 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/829925e5-2039-44e4-913e-7ecf5d2f7d36 2026-04-20 18:10:45,238 - DEBUG - ==>Verifying data for policy with id: 40067c23-d27b-4115-a6cf-47b49da17d4f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04017626', 'ctest-policy1-23034486'] 2026-04-20 18:10:45,238 - INFO - VN ctest-vn4-82685759 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 18:10:45,238 - DEBUG - Verifying the vn in opserver 2026-04-20 18:10:45,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759 virtual network link through opserver 10.0.0.22 2026-04-20 18:10:45,238 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-20 18:10:45,561 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-20 18:10:45,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759?flat'} 2026-04-20 18:10:45,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04017626:ctest-vn4-82685759 is found in opserver 2026-04-20 18:10:45,652 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 18:10:45,657 - DEBUG - VRF ids for VN ctest-vn4-82685759: {} 2026-04-20 18:10:45,657 - DEBUG - ====Verifying data for ctest-policy1-23034486 in API_Server ====== 2026-04-20 18:10:45,657 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-20 18:10:45,664 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385 2026-04-20 18:10:45,677 - DEBUG - Requesting: http://10.0.0.22:8082/project/907273a4-3457-4dc2-b18a-e9b8fab48606 2026-04-20 18:10:45,752 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/40067c23-d27b-4115-a6cf-47b49da17d4f 2026-04-20 18:10:45,763 - INFO - Verified policy ctest-policy1-23034486 in API Server, Result: True 2026-04-20 18:10:45,763 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 18:10:45,772 - INFO - Deleting VN ctest-vn4-82685759 2026-04-20 18:10:45,899 - DEBUG - Response for deleting network () 2026-04-20 18:10:45,899 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35875e70-efce-4e0c-a300-259774b517dd 2026-04-20 18:10:45,905 - DEBUG - Response Code: 404 2026-04-20 18:10:45,905 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-20 18:10:45,910 - DEBUG - Requesting: http://10.0.0.22:8082/domain/889d0d15-c3e0-43c9-a34b-dc5056337385 2026-04-20 18:10:45,962 - DEBUG - Requesting: http://10.0.0.22:8082/project/907273a4-3457-4dc2-b18a-e9b8fab48606 2026-04-20 18:10:46,029 - INFO - Validated that VN ctest-vn4-82685759 is not found in API Server 2026-04-20 18:10:46,040 - DEBUG - VN ctest-vn4-82685759 is not present in Agent 10.0.0.22 2026-04-20 18:10:46,040 - INFO - Validated that VN ctest-vn4-82685759 is not in any agent 2026-04-20 18:10:46,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82685759 info 2026-04-20 18:10:46,082 - INFO - Deleted policy ctest-policy1-23034486 2026-04-20 18:10:46,244 - DEBUG - policy ctest-policy1-23034486 is not found in API Server 2026-04-20 18:10:46,511 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 18:10:46,512 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-20 18:10:46,512 - INFO - -------------------------------------------------------------------------------- 2026-04-20 18:10:46,798 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 18:10:46,798 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-20 18:10:46,798 - INFO - -------------------------------------------------------------------------------- 2026-04-20 18:10:47,554 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04017626, ID : 907273a4-3457-4dc2-b18a-e9b8fab48606