2026-08-25 14:56:02,013 - INFO - Domain Default found not creating 2026-08-25 14:56:02,198 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02413173 not found, creating it 2026-08-25 14:56:02,722 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02413173, ID : 2fed34bc-58e4-47d2-9c6e-3dd0d96677d0 2026-08-25 14:56:04,340 - INFO - ================================================================================ 2026-08-25 14:56:04,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 14:56:04,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.187': {'10.20.0.254': '0'}} with 2026-08-25 14:56:04,618 - INFO - Initial checks done. Running the testcase now 2026-08-25 14:56:04,618 - INFO - 2026-08-25 14:56:04,618 - INFO - ================================================================================ 2026-08-25 14:56:04,618 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 14:56:04,618 - 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-08-25 14:56:04,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.187': {'10.20.0.254': '0'}} with 2026-08-25 14:56:04,917 - INFO - Initial checks done. Running the testcase now 2026-08-25 14:56:04,917 - INFO - 2026-08-25 14:56:05,298 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769, 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-02413173:ctest-vn4-54823769, 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-02413173:ctest-vn4-54823769, 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-02413173:ctest-vn4-54823769, 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-08-25 14:56:05,864 - DEBUG - Response for create_network : {'network': {'id': 'f8da3ef4-1f01-4ca6-bc11-e941e3cc3620', 'name': 'ctest-vn4-54823769', 'tenant_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'project_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02413173', 'ctest-vn4-54823769'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 14:56:06,021 - DEBUG - Response for create_subnet : {'subnet': {'id': '28944c1a-b5a3-4be5-9e9d-5e0e3cef9298', 'name': '', 'tenant_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'network_id': 'f8da3ef4-1f01-4ca6-bc11-e941e3cc3620', 'ip_version': 4, 'cidr': '52.130.89.192/26', 'allocation_pools': [{'start': '52.130.89.194', 'end': '52.130.89.254'}], 'gateway_ip': '52.130.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.130.89.194', 'tags': [], 'project_id': '2fed34bc58e447d29c6e3dd0d96677d0'}} 2026-08-25 14:56:06,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd171fad2-c06c-4112-ab0e-d3fcaf0db9ad', 'name': '', 'tenant_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'network_id': 'f8da3ef4-1f01-4ca6-bc11-e941e3cc3620', 'ip_version': 6, 'cidr': '2199:377a:37e5:91be:5489:57b4::/96', 'allocation_pools': [{'start': '2199:377a:37e5:91be:5489:57b4:0:2', 'end': '2199:377a:37e5:91be:5489:57b4:ffff:fffe'}], 'gateway_ip': '2199:377a:37e5:91be:5489:57b4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2199:377a:37e5:91be:5489:57b4:0:2', 'tags': [], 'project_id': '2fed34bc58e447d29c6e3dd0d96677d0'}} 2026-08-25 14:56:06,214 - INFO - Created VN ctest-vn4-54823769 2026-08-25 14:56:06,263 - DEBUG - VN ctest-vn4-54823769 UUID is f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:06,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8da3ef4-1f01-4ca6-bc11-e941e3cc3620', 'name': 'ctest-vn4-54823769', 'tenant_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'project_id': '2fed34bc58e447d29c6e3dd0d96677d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28944c1a-b5a3-4be5-9e9d-5e0e3cef9298', 'd171fad2-c06c-4112-ab0e-d3fcaf0db9ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02413173', 'ctest-vn4-54823769'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02413173', 'ctest-policy1-59341183']], 'subnet_ipam': [{'subnet_cidr': '52.130.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2199:377a:37e5:91be:5489:57b4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 14:56:06,619 - DEBUG - Requesting: http://10.0.0.187:8082/domains 2026-08-25 14:56:06,940 - DEBUG - Requesting: http://10.0.0.187:8082/domains 2026-08-25 14:56:06,966 - DEBUG - Requesting: http://10.0.0.187:8082/domain/04b83ad2-f4cf-4ce1-a8fe-047738aa5c9a 2026-08-25 14:56:06,981 - DEBUG - Requesting: http://10.0.0.187:8082/project/2fed34bc-58e4-47d2-9c6e-3dd0d96677d0 2026-08-25 14:56:07,059 - DEBUG - Requesting: http://10.0.0.187:8082/virtual-network/f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,072 - DEBUG - Requesting: http://10.0.0.187:8082/virtual-network/f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,081 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,087 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,093 - DEBUG - Requesting: http://10.0.0.187:8082/route-target/83b77644-9d6f-4774-b26b-049b96fb4ba8 2026-08-25 14:56:07,100 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 14:56:07,100 - DEBUG - Requesting: http://10.0.0.187:8082/virtual-network/f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,108 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,120 - INFO - Verified VN network id 11 for VN f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,120 - INFO - Verifications in API Server for VN ctest-vn4-54823769 passed 2026-08-25 14:56:07,120 - DEBUG - Requesting: http://10.0.0.187:8082/virtual-network/f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,130 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,139 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,145 - DEBUG - Requesting: http://10.0.0.187:8082/route-target/83b77644-9d6f-4774-b26b-049b96fb4ba8 2026-08-25 14:56:07,159 - DEBUG - Control-node 10.0.0.187 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02413173', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17931714084542172326', 'uuid-lslong': '13551869222938490400'}, 'enable': 'true', 'created': '2026-08-25T14:56:05', 'last-modified': '2026-08-25T14:56:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732464'} 2026-08-25 14:56:07,168 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 14:56:07,168 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54823769 passed 2026-08-25 14:56:07,169 - DEBUG - ====Verifying policy data for ctest-vn4-54823769 in API_Server ====== 2026-08-25 14:56:07,169 - DEBUG - Requesting: http://10.0.0.187:8082/domains 2026-08-25 14:56:07,176 - DEBUG - Requesting: http://10.0.0.187:8082/domain/04b83ad2-f4cf-4ce1-a8fe-047738aa5c9a 2026-08-25 14:56:07,187 - DEBUG - Requesting: http://10.0.0.187:8082/project/2fed34bc-58e4-47d2-9c6e-3dd0d96677d0 2026-08-25 14:56:07,260 - DEBUG - Requesting: http://10.0.0.187:8082/virtual-network/f8da3ef4-1f01-4ca6-bc11-e941e3cc3620 2026-08-25 14:56:07,272 - DEBUG - ==>Verifying data for policy with id: 46c0dd6c-491d-4d68-b13d-1a8167569d4a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02413173', 'ctest-policy1-59341183'] 2026-08-25 14:56:07,272 - INFO - VN ctest-vn4-54823769 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 14:56:07,272 - DEBUG - Verifying the vn in opserver 2026-08-25 14:56:07,272 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769 virtual network link through opserver 10.0.0.187 2026-08-25 14:56:07,272 - DEBUG - Requesting: http://10.0.0.187:8081/analytics/uves/virtual-networks 2026-08-25 14:56:07,599 - DEBUG - Requesting: http://10.0.0.187:8081/analytics/uves/virtual-networks 2026-08-25 14:56:07,656 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769', 'href': 'http://10.0.0.187:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769?flat'} 2026-08-25 14:56:07,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02413173:ctest-vn4-54823769 is found in opserver 2026-08-25 14:56:07,669 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 14:56:07,676 - DEBUG - VRF ids for VN ctest-vn4-54823769: {} 2026-08-25 14:56:07,677 - DEBUG - ====Verifying data for ctest-policy1-59341183 in API_Server ====== 2026-08-25 14:56:07,677 - DEBUG - Requesting: http://10.0.0.187:8082/domains 2026-08-25 14:56:07,684 - DEBUG - Requesting: http://10.0.0.187:8082/domain/04b83ad2-f4cf-4ce1-a8fe-047738aa5c9a 2026-08-25 14:56:07,697 - DEBUG - Requesting: http://10.0.0.187:8082/project/2fed34bc-58e4-47d2-9c6e-3dd0d96677d0 2026-08-25 14:56:07,776 - DEBUG - Requesting: http://10.0.0.187:8082/network-policy/46c0dd6c-491d-4d68-b13d-1a8167569d4a 2026-08-25 14:56:07,789 - INFO - Verified policy ctest-policy1-59341183 in API Server, Result: True 2026-08-25 14:56:07,789 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 14:56:07,801 - INFO - Deleting VN ctest-vn4-54823769 2026-08-25 14:56:07,955 - DEBUG - Response for deleting network () 2026-08-25 14:56:07,955 - DEBUG - Requesting: http://10.0.0.187:8082/routing-instance/1993adf2-f3b7-4e13-94f2-9b3c89a93043 2026-08-25 14:56:07,961 - DEBUG - Response Code: 404 2026-08-25 14:56:07,961 - DEBUG - Requesting: http://10.0.0.187:8082/domains 2026-08-25 14:56:07,967 - DEBUG - Requesting: http://10.0.0.187:8082/domain/04b83ad2-f4cf-4ce1-a8fe-047738aa5c9a 2026-08-25 14:56:08,021 - DEBUG - Requesting: http://10.0.0.187:8082/project/2fed34bc-58e4-47d2-9c6e-3dd0d96677d0 2026-08-25 14:56:08,103 - INFO - Validated that VN ctest-vn4-54823769 is not found in API Server 2026-08-25 14:56:08,118 - DEBUG - VN ctest-vn4-54823769 is not present in Agent 10.0.0.187 2026-08-25 14:56:08,118 - INFO - Validated that VN ctest-vn4-54823769 is not in any agent 2026-08-25 14:56:08,138 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54823769 info 2026-08-25 14:56:08,169 - INFO - Deleted policy ctest-policy1-59341183 2026-08-25 14:56:08,343 - DEBUG - policy ctest-policy1-59341183 is not found in API Server 2026-08-25 14:56:08,607 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 14:56:08,607 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 14:56:08,608 - INFO - -------------------------------------------------------------------------------- 2026-08-25 14:56:08,901 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 14:56:08,901 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 14:56:08,902 - INFO - -------------------------------------------------------------------------------- 2026-08-25 14:56:09,661 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02413173, ID : 2fed34bc-58e4-47d2-9c6e-3dd0d96677d0