2026-02-10 20:45:45,356 - INFO - Domain Default found not creating 2026-02-10 20:45:45,748 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30923167 not found, creating it 2026-02-10 20:45:46,540 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30923167, ID : fd10bcdd-3ba7-4e3b-a765-2211a734095d 2026-02-10 20:45:48,750 - INFO - ================================================================================ 2026-02-10 20:45:48,750 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 20:45:49,074 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-10 20:45:49,074 - INFO - Initial checks done. Running the testcase now 2026-02-10 20:45:49,074 - INFO - 2026-02-10 20:45:49,074 - INFO - ================================================================================ 2026-02-10 20:45:49,075 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 20:45:49,075 - 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-10 20:45:49,407 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-10 20:45:49,407 - INFO - Initial checks done. Running the testcase now 2026-02-10 20:45:49,408 - INFO - 2026-02-10 20:45:49,927 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844, 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-30923167:ctest-vn4-33371844, 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-30923167:ctest-vn4-33371844, 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-30923167:ctest-vn4-33371844, 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-10 20:45:50,728 - DEBUG - Response for create_network : {'network': {'id': '431b88c8-59f4-4091-9ea8-64cba2e7a935', 'name': 'ctest-vn4-33371844', 'tenant_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'project_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30923167', 'ctest-vn4-33371844'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 20:45:50,935 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abc351c8-7bbb-4288-94b1-5b457bafc83c', 'name': '', 'tenant_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'network_id': '431b88c8-59f4-4091-9ea8-64cba2e7a935', 'ip_version': 4, 'cidr': '101.66.85.64/26', 'allocation_pools': [{'start': '101.66.85.66', 'end': '101.66.85.126'}], 'gateway_ip': '101.66.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.66.85.66', 'tags': [], 'project_id': 'fd10bcdd3ba74e3ba7652211a734095d'}} 2026-02-10 20:45:51,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '706db19b-2512-44c2-84e2-a3fe8fcb1a78', 'name': '', 'tenant_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'network_id': '431b88c8-59f4-4091-9ea8-64cba2e7a935', 'ip_version': 6, 'cidr': '2f0b:3856:a621:d376:a0c4:d1d0::/96', 'allocation_pools': [{'start': '2f0b:3856:a621:d376:a0c4:d1d0:0:2', 'end': '2f0b:3856:a621:d376:a0c4:d1d0:ffff:fffe'}], 'gateway_ip': '2f0b:3856:a621:d376:a0c4:d1d0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f0b:3856:a621:d376:a0c4:d1d0:0:2', 'tags': [], 'project_id': 'fd10bcdd3ba74e3ba7652211a734095d'}} 2026-02-10 20:45:51,262 - INFO - Created VN ctest-vn4-33371844 2026-02-10 20:45:51,329 - DEBUG - VN ctest-vn4-33371844 UUID is 431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:51,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '431b88c8-59f4-4091-9ea8-64cba2e7a935', 'name': 'ctest-vn4-33371844', 'tenant_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'project_id': 'fd10bcdd3ba74e3ba7652211a734095d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abc351c8-7bbb-4288-94b1-5b457bafc83c', '706db19b-2512-44c2-84e2-a3fe8fcb1a78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30923167', 'ctest-vn4-33371844'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30923167', 'ctest-policy1-17361603']], 'subnet_ipam': [{'subnet_cidr': '101.66.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f0b:3856:a621:d376:a0c4:d1d0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 20:45:51,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 20:45:52,238 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 20:45:52,321 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d7fb4692-c5cd-4053-b645-b89da6856965 2026-02-10 20:45:52,354 - DEBUG - Requesting: http://10.0.0.33:8082/project/fd10bcdd-3ba7-4e3b-a765-2211a734095d 2026-02-10 20:45:52,476 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,542 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:52,561 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:52,576 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/013d67f4-b76a-4b4b-a9fa-b84dd2ffe183 2026-02-10 20:45:52,598 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 20:45:52,598 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,625 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:52,664 - INFO - Verified VN network id 11 for VN 431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,665 - INFO - Verifications in API Server for VN ctest-vn4-33371844 passed 2026-02-10 20:45:52,665 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,693 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:52,711 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:52,729 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/013d67f4-b76a-4b4b-a9fa-b84dd2ffe183 2026-02-10 20:45:52,762 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30923167', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4835609018996375697', 'uuid-lslong': '11432498479854233909'}, 'enable': 'true', 'created': '2026-02-10T20:45:50', 'last-modified': '2026-02-10T20:45:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.118402'} 2026-02-10 20:45:52,779 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 20:45:52,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33371844 passed 2026-02-10 20:45:52,780 - DEBUG - ====Verifying policy data for ctest-vn4-33371844 in API_Server ====== 2026-02-10 20:45:52,780 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 20:45:52,795 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d7fb4692-c5cd-4053-b645-b89da6856965 2026-02-10 20:45:52,826 - DEBUG - Requesting: http://10.0.0.33:8082/project/fd10bcdd-3ba7-4e3b-a765-2211a734095d 2026-02-10 20:45:52,950 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/431b88c8-59f4-4091-9ea8-64cba2e7a935 2026-02-10 20:45:52,975 - DEBUG - ==>Verifying data for policy with id: 092b36d6-4028-4e0e-b4c3-222f4eb81cc5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30923167', 'ctest-policy1-17361603'] 2026-02-10 20:45:52,975 - INFO - VN ctest-vn4-33371844 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 20:45:52,975 - DEBUG - Verifying the vn in opserver 2026-02-10 20:45:52,975 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844 virtual network link through opserver 10.0.0.33 2026-02-10 20:45:52,976 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 20:45:53,325 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 20:45:53,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844?flat'} 2026-02-10 20:45:53,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30923167:ctest-vn4-33371844 is found in opserver 2026-02-10 20:45:53,508 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 20:45:53,521 - DEBUG - VRF ids for VN ctest-vn4-33371844: {} 2026-02-10 20:45:53,522 - DEBUG - ====Verifying data for ctest-policy1-17361603 in API_Server ====== 2026-02-10 20:45:53,523 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 20:45:53,538 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d7fb4692-c5cd-4053-b645-b89da6856965 2026-02-10 20:45:53,576 - DEBUG - Requesting: http://10.0.0.33:8082/project/fd10bcdd-3ba7-4e3b-a765-2211a734095d 2026-02-10 20:45:53,691 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/092b36d6-4028-4e0e-b4c3-222f4eb81cc5 2026-02-10 20:45:53,720 - INFO - Verified policy ctest-policy1-17361603 in API Server, Result: True 2026-02-10 20:45:53,721 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 20:45:53,743 - INFO - Deleting VN ctest-vn4-33371844 2026-02-10 20:45:53,937 - DEBUG - Response for deleting network () 2026-02-10 20:45:53,937 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ea8f7229-03c3-4afc-a9d1-137c0951cf98 2026-02-10 20:45:53,943 - DEBUG - Response Code: 404 2026-02-10 20:45:53,944 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 20:45:53,951 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d7fb4692-c5cd-4053-b645-b89da6856965 2026-02-10 20:45:54,006 - DEBUG - Requesting: http://10.0.0.33:8082/project/fd10bcdd-3ba7-4e3b-a765-2211a734095d 2026-02-10 20:45:54,099 - INFO - Validated that VN ctest-vn4-33371844 is not found in API Server 2026-02-10 20:45:54,121 - DEBUG - VN ctest-vn4-33371844 is not present in Agent 10.0.0.33 2026-02-10 20:45:54,122 - INFO - Validated that VN ctest-vn4-33371844 is not in any agent 2026-02-10 20:45:54,149 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33371844 info 2026-02-10 20:45:54,195 - INFO - Deleted policy ctest-policy1-17361603 2026-02-10 20:45:54,384 - DEBUG - policy ctest-policy1-17361603 is not found in API Server 2026-02-10 20:45:54,714 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 20:45:54,714 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 20:45:54,714 - INFO - -------------------------------------------------------------------------------- 2026-02-10 20:45:55,067 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 20:45:55,068 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-10 20:45:55,068 - INFO - -------------------------------------------------------------------------------- 2026-02-10 20:45:55,893 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30923167, ID : fd10bcdd-3ba7-4e3b-a765-2211a734095d