2026-02-05 02:34:47,474 - INFO - Domain Default found not creating 2026-02-05 02:34:47,700 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45838934 not found, creating it 2026-02-05 02:34:48,261 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45838934, ID : 63d28155-7000-433f-a3a9-a5ed9b1ae2ed 2026-02-05 02:34:50,164 - INFO - ================================================================================ 2026-02-05 02:34:50,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:34:51,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.192': '0', '10.20.0.209': '0'}} with 2026-02-05 02:34:51,456 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:34:51,456 - INFO - 2026-02-05 02:34:51,456 - INFO - ================================================================================ 2026-02-05 02:34:51,456 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:34:51,456 - 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-02-05 02:34:52,723 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.192': '0', '10.20.0.209': '0'}} with 2026-02-05 02:34:52,724 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:34:52,724 - INFO - 2026-02-05 02:34:53,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587, 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-45838934:ctest-vn4-12368587, 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-45838934:ctest-vn4-12368587, 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-45838934:ctest-vn4-12368587, 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-02-05 02:34:53,745 - DEBUG - Response for create_network : {'network': {'id': 'b6c7ed7a-8164-4955-83cd-5555da2d7e99', 'name': 'ctest-vn4-12368587', 'tenant_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'project_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'ctest-vn4-12368587'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:34:54,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c85a0bad-b777-4d6b-916f-7e0e39ce0bd0', 'name': '', 'tenant_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'network_id': 'b6c7ed7a-8164-4955-83cd-5555da2d7e99', 'ip_version': 4, 'cidr': '51.167.103.64/26', 'allocation_pools': [{'start': '51.167.103.66', 'end': '51.167.103.126'}], 'gateway_ip': '51.167.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.167.103.66', 'tags': [], 'project_id': '63d281557000433fa3a9a5ed9b1ae2ed'}} 2026-02-05 02:34:54,292 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1784dd4-f33f-4e0b-a1b8-32dcbc60a08c', 'name': '', 'tenant_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'network_id': 'b6c7ed7a-8164-4955-83cd-5555da2d7e99', 'ip_version': 6, 'cidr': '3e07:e83b:131:c5f:21f4:5020::/96', 'allocation_pools': [{'start': '3e07:e83b:131:c5f:21f4:5020:0:2', 'end': '3e07:e83b:131:c5f:21f4:5020:ffff:fffe'}], 'gateway_ip': '3e07:e83b:131:c5f:21f4:5020:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e07:e83b:131:c5f:21f4:5020:0:2', 'tags': [], 'project_id': '63d281557000433fa3a9a5ed9b1ae2ed'}} 2026-02-05 02:34:54,318 - INFO - Created VN ctest-vn4-12368587 2026-02-05 02:34:54,333 - DEBUG - VN ctest-vn4-12368587 UUID is b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:54,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6c7ed7a-8164-4955-83cd-5555da2d7e99', 'name': 'ctest-vn4-12368587', 'tenant_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'project_id': '63d281557000433fa3a9a5ed9b1ae2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c85a0bad-b777-4d6b-916f-7e0e39ce0bd0', 'a1784dd4-f33f-4e0b-a1b8-32dcbc60a08c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'ctest-vn4-12368587'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'ctest-policy1-46675414']], 'subnet_ipam': [{'subnet_cidr': '51.167.103.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e07:e83b:131:c5f:21f4:5020::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:34:54,703 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-05 02:34:55,009 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-05 02:34:55,043 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5920e650-1631-4d47-b92b-5466dc6ae97a 2026-02-05 02:34:55,063 - DEBUG - Requesting: http://10.0.0.27:8082/project/63d28155-7000-433f-a3a9-a5ed9b1ae2ed 2026-02-05 02:34:55,163 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,185 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,197 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:55,205 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:55,214 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0256b435-375f-473a-9009-2bfc5766941c 2026-02-05 02:34:55,221 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:34:55,221 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,232 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:55,250 - INFO - Verified VN network id 11 for VN b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,251 - INFO - Verifications in API Server for VN ctest-vn4-12368587 passed 2026-02-05 02:34:55,251 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,264 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:55,273 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:55,282 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0256b435-375f-473a-9009-2bfc5766941c 2026-02-05 02:34:55,297 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13170756745680931157', 'uuid-lslong': '9497341016415239833'}, 'enable': 'true', 'created': '2026-02-05T02:34:53', 'last-modified': '2026-02-05T02:34:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783172'} 2026-02-05 02:34:55,303 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:34:55,312 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13170756745680931157', 'uuid-lslong': '9497341016415239833'}, 'enable': 'true', 'created': '2026-02-05T02:34:53', 'last-modified': '2026-02-05T02:34:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781206'} 2026-02-05 02:34:55,318 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:34:55,325 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13170756745680931157', 'uuid-lslong': '9497341016415239833'}, 'enable': 'true', 'created': '2026-02-05T02:34:53', 'last-modified': '2026-02-05T02:34:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.811048'} 2026-02-05 02:34:55,332 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:34:55,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12368587 passed 2026-02-05 02:34:55,333 - DEBUG - ====Verifying policy data for ctest-vn4-12368587 in API_Server ====== 2026-02-05 02:34:55,333 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-05 02:34:55,342 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5920e650-1631-4d47-b92b-5466dc6ae97a 2026-02-05 02:34:55,361 - DEBUG - Requesting: http://10.0.0.27:8082/project/63d28155-7000-433f-a3a9-a5ed9b1ae2ed 2026-02-05 02:34:55,465 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b6c7ed7a-8164-4955-83cd-5555da2d7e99 2026-02-05 02:34:55,476 - DEBUG - ==>Verifying data for policy with id: 1ad3012b-7851-4fd1-bfe6-6420770c4b82, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45838934', 'ctest-policy1-46675414'] 2026-02-05 02:34:55,476 - INFO - VN ctest-vn4-12368587 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 02:34:55,476 - DEBUG - Verifying the vn in opserver 2026-02-05 02:34:55,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587 virtual network link through opserver 10.0.0.27 2026-02-05 02:34:55,476 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-05 02:34:55,782 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-05 02:34:55,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587?flat'} 2026-02-05 02:34:55,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587 virtual network link through opserver 10.0.0.50 2026-02-05 02:34:55,853 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-05 02:34:56,180 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-05 02:34:56,258 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587?flat'} 2026-02-05 02:34:56,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587 virtual network link through opserver 10.0.0.23 2026-02-05 02:34:56,258 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-05 02:34:56,564 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-05 02:34:56,646 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587?flat'} 2026-02-05 02:34:56,646 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45838934:ctest-vn4-12368587 is found in opserver 2026-02-05 02:34:56,671 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 02:34:56,682 - DEBUG - VRF ids for VN ctest-vn4-12368587: {} 2026-02-05 02:34:56,682 - DEBUG - ====Verifying data for ctest-policy1-46675414 in API_Server ====== 2026-02-05 02:34:56,682 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-05 02:34:56,689 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5920e650-1631-4d47-b92b-5466dc6ae97a 2026-02-05 02:34:56,701 - DEBUG - Requesting: http://10.0.0.27:8082/project/63d28155-7000-433f-a3a9-a5ed9b1ae2ed 2026-02-05 02:34:56,794 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/1ad3012b-7851-4fd1-bfe6-6420770c4b82 2026-02-05 02:34:56,808 - INFO - Verified policy ctest-policy1-46675414 in API Server, Result: True 2026-02-05 02:34:56,808 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 02:34:56,819 - INFO - Deleting VN ctest-vn4-12368587 2026-02-05 02:34:57,012 - DEBUG - Response for deleting network () 2026-02-05 02:34:57,012 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/447d44a2-b465-4a59-ab6c-acc9e5504baa 2026-02-05 02:34:57,026 - DEBUG - Response Code: 404 2026-02-05 02:34:57,026 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-05 02:34:57,034 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5920e650-1631-4d47-b92b-5466dc6ae97a 2026-02-05 02:34:57,048 - DEBUG - Requesting: http://10.0.0.27:8082/project/63d28155-7000-433f-a3a9-a5ed9b1ae2ed 2026-02-05 02:34:57,157 - INFO - Validated that VN ctest-vn4-12368587 is not found in API Server 2026-02-05 02:34:57,169 - DEBUG - VN ctest-vn4-12368587 is not present in Agent 10.0.0.19 2026-02-05 02:34:57,181 - DEBUG - VN ctest-vn4-12368587 is not present in Agent 10.0.0.65 2026-02-05 02:34:57,181 - INFO - Validated that VN ctest-vn4-12368587 is not in any agent 2026-02-05 02:34:57,218 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12368587 info 2026-02-05 02:34:57,264 - INFO - Deleted policy ctest-policy1-46675414 2026-02-05 02:34:57,456 - DEBUG - policy ctest-policy1-46675414 is not found in API Server 2026-02-05 02:34:58,748 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 02:34:58,748 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-05 02:34:58,749 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:35:00,012 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 02:35:00,013 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-02-05 02:35:00,013 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:35:00,790 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45838934, ID : 63d28155-7000-433f-a3a9-a5ed9b1ae2ed