2026-12-02 16:00:18,514 - INFO - Domain Default found not creating 2026-12-02 16:00:19,105 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43310390 not found, creating it 2026-12-02 16:00:19,602 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43310390, ID : 95f8b22f-b2f8-4e10-9ffb-cdad7cc91095 2026-12-02 16:00:21,378 - INFO - ================================================================================ 2026-12-02 16:00:21,378 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-02 16:00:21,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-12-02 16:00:21,638 - INFO - Initial checks done. Running the testcase now 2026-12-02 16:00:21,638 - INFO - 2026-12-02 16:00:21,638 - INFO - ================================================================================ 2026-12-02 16:00:21,639 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-02 16:00:21,639 - 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-12-02 16:00:21,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-12-02 16:00:21,936 - INFO - Initial checks done. Running the testcase now 2026-12-02 16:00:21,936 - INFO - 2026-12-02 16:00:22,385 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079, 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-43310390:ctest-vn4-52630079, 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-43310390:ctest-vn4-52630079, 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-43310390:ctest-vn4-52630079, 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-12-02 16:00:22,948 - DEBUG - Response for create_network : {'network': {'id': '6fd51307-3e4f-4e9d-8c47-855998b7a12d', 'name': 'ctest-vn4-52630079', 'tenant_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'project_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43310390', 'ctest-vn4-52630079'], 'port_security_enabled': True, 'description': ''}} 2026-12-02 16:00:23,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '676bc65a-f0bb-4d50-a4c7-af82f4b7ec92', 'name': '', 'tenant_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'network_id': '6fd51307-3e4f-4e9d-8c47-855998b7a12d', 'ip_version': 4, 'cidr': '69.30.131.0/26', 'allocation_pools': [{'start': '69.30.131.2', 'end': '69.30.131.62'}], 'gateway_ip': '69.30.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.30.131.2', 'tags': [], 'project_id': '95f8b22fb2f84e109ffbcdad7cc91095'}} 2026-12-02 16:00:23,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc64d082-8ad3-42bf-aa70-93ce934d3474', 'name': '', 'tenant_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'network_id': '6fd51307-3e4f-4e9d-8c47-855998b7a12d', 'ip_version': 6, 'cidr': '27d1:455b:495b:8f1f:a67:6455::/96', 'allocation_pools': [{'start': '27d1:455b:495b:8f1f:a67:6455:0:2', 'end': '27d1:455b:495b:8f1f:a67:6455:ffff:fffe'}], 'gateway_ip': '27d1:455b:495b:8f1f:a67:6455:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27d1:455b:495b:8f1f:a67:6455:0:2', 'tags': [], 'project_id': '95f8b22fb2f84e109ffbcdad7cc91095'}} 2026-12-02 16:00:23,356 - INFO - Created VN ctest-vn4-52630079 2026-12-02 16:00:23,412 - DEBUG - VN ctest-vn4-52630079 UUID is 6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:23,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fd51307-3e4f-4e9d-8c47-855998b7a12d', 'name': 'ctest-vn4-52630079', 'tenant_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'project_id': '95f8b22fb2f84e109ffbcdad7cc91095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['676bc65a-f0bb-4d50-a4c7-af82f4b7ec92', 'dc64d082-8ad3-42bf-aa70-93ce934d3474'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43310390', 'ctest-vn4-52630079'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43310390', 'ctest-policy1-65604238']], 'subnet_ipam': [{'subnet_cidr': '69.30.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27d1:455b:495b:8f1f:a67:6455::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-12-02 16:00:23,797 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-02 16:00:24,169 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-02 16:00:24,197 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4 2026-12-02 16:00:24,210 - DEBUG - Requesting: http://10.0.0.163:8082/project/95f8b22f-b2f8-4e10-9ffb-cdad7cc91095 2026-12-02 16:00:24,293 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,309 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,322 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:24,331 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:24,338 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/a91c4221-6e2b-44b4-a2ad-43b44812ed76 2026-12-02 16:00:24,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-02 16:00:24,346 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,360 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:24,378 - INFO - Verified VN network id 12 for VN 6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,378 - INFO - Verifications in API Server for VN ctest-vn4-52630079 passed 2026-12-02 16:00:24,378 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,389 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:24,396 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:24,404 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/a91c4221-6e2b-44b4-a2ad-43b44812ed76 2026-12-02 16:00:24,418 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43310390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8058368030080454301', 'uuid-lslong': '10108194508517122349'}, 'enable': 'true', 'created': '2026-12-02T16:00:22', 'last-modified': '2026-12-02T16:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.822682'} 2026-12-02 16:00:24,427 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-02 16:00:24,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52630079 passed 2026-12-02 16:00:24,427 - DEBUG - ====Verifying policy data for ctest-vn4-52630079 in API_Server ====== 2026-12-02 16:00:24,427 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-02 16:00:24,433 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4 2026-12-02 16:00:24,448 - DEBUG - Requesting: http://10.0.0.163:8082/project/95f8b22f-b2f8-4e10-9ffb-cdad7cc91095 2026-12-02 16:00:24,524 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/6fd51307-3e4f-4e9d-8c47-855998b7a12d 2026-12-02 16:00:24,536 - DEBUG - ==>Verifying data for policy with id: c8f6df0c-94c1-4e73-b08a-308180d6f0c3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43310390', 'ctest-policy1-65604238'] 2026-12-02 16:00:24,536 - INFO - VN ctest-vn4-52630079 Policy verification: verify_vn_policy_in_api_server, status: True 2026-12-02 16:00:24,536 - DEBUG - Verifying the vn in opserver 2026-12-02 16:00:24,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079 virtual network link through opserver 10.0.0.163 2026-12-02 16:00:24,537 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-12-02 16:00:24,904 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-12-02 16:00:24,962 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079?flat'} 2026-12-02 16:00:24,962 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43310390:ctest-vn4-52630079 is found in opserver 2026-12-02 16:00:24,976 - DEBUG - Do not have enough data to verify VN in agent 2026-12-02 16:00:24,981 - DEBUG - VRF ids for VN ctest-vn4-52630079: {} 2026-12-02 16:00:24,981 - DEBUG - ====Verifying data for ctest-policy1-65604238 in API_Server ====== 2026-12-02 16:00:24,982 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-02 16:00:24,988 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4 2026-12-02 16:00:24,999 - DEBUG - Requesting: http://10.0.0.163:8082/project/95f8b22f-b2f8-4e10-9ffb-cdad7cc91095 2026-12-02 16:00:25,077 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/c8f6df0c-94c1-4e73-b08a-308180d6f0c3 2026-12-02 16:00:25,087 - INFO - Verified policy ctest-policy1-65604238 in API Server, Result: True 2026-12-02 16:00:25,088 - INFO - Done with setup and verification, moving onto test .. 2026-12-02 16:00:25,097 - INFO - Deleting VN ctest-vn4-52630079 2026-12-02 16:00:25,240 - DEBUG - Response for deleting network () 2026-12-02 16:00:25,240 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/c6627078-fc50-4fbf-a556-e38d5f91718f 2026-12-02 16:00:25,245 - DEBUG - Response Code: 404 2026-12-02 16:00:25,245 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-02 16:00:25,250 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4 2026-12-02 16:00:25,301 - DEBUG - Requesting: http://10.0.0.163:8082/project/95f8b22f-b2f8-4e10-9ffb-cdad7cc91095 2026-12-02 16:00:25,378 - INFO - Validated that VN ctest-vn4-52630079 is not found in API Server 2026-12-02 16:00:25,389 - DEBUG - VN ctest-vn4-52630079 is not present in Agent 10.0.0.163 2026-12-02 16:00:25,389 - INFO - Validated that VN ctest-vn4-52630079 is not in any agent 2026-12-02 16:00:25,406 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52630079 info 2026-12-02 16:00:25,437 - INFO - Deleted policy ctest-policy1-65604238 2026-12-02 16:00:25,608 - DEBUG - policy ctest-policy1-65604238 is not found in API Server 2026-12-02 16:00:25,876 - DEBUG - No XMPP flaps were noticed during the test
2026-12-02 16:00:25,876 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-12-02 16:00:25,876 - INFO - -------------------------------------------------------------------------------- 2026-12-02 16:00:26,162 - DEBUG - No XMPP flaps were noticed during the test
2026-12-02 16:00:26,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-12-02 16:00:26,162 - INFO - -------------------------------------------------------------------------------- 2026-12-02 16:00:26,948 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43310390, ID : 95f8b22f-b2f8-4e10-9ffb-cdad7cc91095