2026-08-20 13:32:54,483 - INFO - Domain Default found not creating 2026-08-20 13:32:54,688 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31739324 not found, creating it 2026-08-20 13:32:55,205 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31739324, ID : 93058c9f-0319-4a3d-a8a5-07f4fdc0397d 2026-08-20 13:32:56,985 - INFO - ================================================================================ 2026-08-20 13:32:56,986 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:32:57,263 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-08-20 13:32:57,263 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:32:57,263 - INFO - 2026-08-20 13:32:57,263 - INFO - ================================================================================ 2026-08-20 13:32:57,263 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:32:57,263 - 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-20 13:32:57,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-08-20 13:32:57,563 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:32:57,564 - INFO - 2026-08-20 13:32:57,997 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499, 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-31739324:ctest-vn4-71757499, 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-31739324:ctest-vn4-71757499, 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-31739324:ctest-vn4-71757499, 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-20 13:32:58,548 - DEBUG - Response for create_network : {'network': {'id': '55eef59e-0966-4d1c-9a45-bae7ea23d0ac', 'name': 'ctest-vn4-71757499', 'tenant_id': '93058c9f03194a3da8a507f4fdc0397d', 'project_id': '93058c9f03194a3da8a507f4fdc0397d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31739324', 'ctest-vn4-71757499'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:32:58,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a5cc05f-5cab-4792-8f98-4893534e178f', 'name': '', 'tenant_id': '93058c9f03194a3da8a507f4fdc0397d', 'network_id': '55eef59e-0966-4d1c-9a45-bae7ea23d0ac', 'ip_version': 4, 'cidr': '222.110.205.0/26', 'allocation_pools': [{'start': '222.110.205.2', 'end': '222.110.205.62'}], 'gateway_ip': '222.110.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.110.205.2', 'tags': [], 'project_id': '93058c9f03194a3da8a507f4fdc0397d'}} 2026-08-20 13:32:58,952 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c41dcbf-1cc6-49fd-90f0-8f4d13527bf3', 'name': '', 'tenant_id': '93058c9f03194a3da8a507f4fdc0397d', 'network_id': '55eef59e-0966-4d1c-9a45-bae7ea23d0ac', 'ip_version': 6, 'cidr': '26f1:186b:a903:1501:47c0:4f75::/96', 'allocation_pools': [{'start': '26f1:186b:a903:1501:47c0:4f75:0:2', 'end': '26f1:186b:a903:1501:47c0:4f75:ffff:fffe'}], 'gateway_ip': '26f1:186b:a903:1501:47c0:4f75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26f1:186b:a903:1501:47c0:4f75:0:2', 'tags': [], 'project_id': '93058c9f03194a3da8a507f4fdc0397d'}} 2026-08-20 13:32:58,972 - INFO - Created VN ctest-vn4-71757499 2026-08-20 13:32:59,026 - DEBUG - VN ctest-vn4-71757499 UUID is 55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55eef59e-0966-4d1c-9a45-bae7ea23d0ac', 'name': 'ctest-vn4-71757499', 'tenant_id': '93058c9f03194a3da8a507f4fdc0397d', 'project_id': '93058c9f03194a3da8a507f4fdc0397d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a5cc05f-5cab-4792-8f98-4893534e178f', '9c41dcbf-1cc6-49fd-90f0-8f4d13527bf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31739324', 'ctest-vn4-71757499'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31739324', 'ctest-policy1-49645966']], 'subnet_ipam': [{'subnet_cidr': '222.110.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26f1:186b:a903:1501:47c0:4f75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:32:59,398 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-20 13:32:59,769 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-20 13:32:59,796 - DEBUG - Requesting: http://10.0.0.190:8082/domain/1dc7306d-a491-4308-a5e6-4ea5aa32abb0 2026-08-20 13:32:59,810 - DEBUG - Requesting: http://10.0.0.190:8082/project/93058c9f-0319-4a3d-a8a5-07f4fdc0397d 2026-08-20 13:32:59,888 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,902 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,912 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:32:59,920 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:32:59,927 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f9fbc924-2bc1-4b4c-b5de-5e735c2bf2f4 2026-08-20 13:32:59,934 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:32:59,934 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,944 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:32:59,958 - INFO - Verified VN network id 11 for VN 55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,958 - INFO - Verifications in API Server for VN ctest-vn4-71757499 passed 2026-08-20 13:32:59,958 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:32:59,968 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:32:59,975 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:32:59,983 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f9fbc924-2bc1-4b4c-b5de-5e735c2bf2f4 2026-08-20 13:32:59,996 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31739324', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6192156596792347932', 'uuid-lslong': '11116496760462364844'}, 'enable': 'true', 'created': '2026-08-20T13:32:58', 'last-modified': '2026-08-20T13:32:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791743'} 2026-08-20 13:33:00,005 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:33:00,005 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71757499 passed 2026-08-20 13:33:00,005 - DEBUG - ====Verifying policy data for ctest-vn4-71757499 in API_Server ====== 2026-08-20 13:33:00,005 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-20 13:33:00,012 - DEBUG - Requesting: http://10.0.0.190:8082/domain/1dc7306d-a491-4308-a5e6-4ea5aa32abb0 2026-08-20 13:33:00,025 - DEBUG - Requesting: http://10.0.0.190:8082/project/93058c9f-0319-4a3d-a8a5-07f4fdc0397d 2026-08-20 13:33:00,103 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/55eef59e-0966-4d1c-9a45-bae7ea23d0ac 2026-08-20 13:33:00,114 - DEBUG - ==>Verifying data for policy with id: 26a873d4-0777-4ad9-bb70-ac5cf71de054, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31739324', 'ctest-policy1-49645966'] 2026-08-20 13:33:00,114 - INFO - VN ctest-vn4-71757499 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 13:33:00,114 - DEBUG - Verifying the vn in opserver 2026-08-20 13:33:00,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499 virtual network link through opserver 10.0.0.190 2026-08-20 13:33:00,115 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-20 13:33:00,487 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-20 13:33:00,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499?flat'} 2026-08-20 13:33:00,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31739324:ctest-vn4-71757499 is found in opserver 2026-08-20 13:33:00,576 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 13:33:00,584 - DEBUG - VRF ids for VN ctest-vn4-71757499: {} 2026-08-20 13:33:00,584 - DEBUG - ====Verifying data for ctest-policy1-49645966 in API_Server ====== 2026-08-20 13:33:00,584 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-20 13:33:00,592 - DEBUG - Requesting: http://10.0.0.190:8082/domain/1dc7306d-a491-4308-a5e6-4ea5aa32abb0 2026-08-20 13:33:00,604 - DEBUG - Requesting: http://10.0.0.190:8082/project/93058c9f-0319-4a3d-a8a5-07f4fdc0397d 2026-08-20 13:33:00,679 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/26a873d4-0777-4ad9-bb70-ac5cf71de054 2026-08-20 13:33:00,693 - INFO - Verified policy ctest-policy1-49645966 in API Server, Result: True 2026-08-20 13:33:00,693 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 13:33:00,703 - INFO - Deleting VN ctest-vn4-71757499 2026-08-20 13:33:00,850 - DEBUG - Response for deleting network () 2026-08-20 13:33:00,850 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/588d9f93-a4f4-45af-afab-6d0c1f08d401 2026-08-20 13:33:00,857 - DEBUG - Response Code: 404 2026-08-20 13:33:00,857 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-20 13:33:00,867 - DEBUG - Requesting: http://10.0.0.190:8082/domain/1dc7306d-a491-4308-a5e6-4ea5aa32abb0 2026-08-20 13:33:00,924 - DEBUG - Requesting: http://10.0.0.190:8082/project/93058c9f-0319-4a3d-a8a5-07f4fdc0397d 2026-08-20 13:33:01,005 - INFO - Validated that VN ctest-vn4-71757499 is not found in API Server 2026-08-20 13:33:01,018 - DEBUG - VN ctest-vn4-71757499 is not present in Agent 10.0.0.190 2026-08-20 13:33:01,018 - INFO - Validated that VN ctest-vn4-71757499 is not in any agent 2026-08-20 13:33:01,037 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71757499 info 2026-08-20 13:33:01,070 - INFO - Deleted policy ctest-policy1-49645966 2026-08-20 13:33:01,246 - DEBUG - policy ctest-policy1-49645966 is not found in API Server 2026-08-20 13:33:01,517 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 13:33:01,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-20 13:33:01,517 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:33:01,813 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 13:33:01,813 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-20 13:33:01,813 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:33:02,623 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31739324, ID : 93058c9f-0319-4a3d-a8a5-07f4fdc0397d