2026-11-16 14:38:20,480 - INFO - Domain Default found not creating 2026-11-16 14:38:20,663 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90871513 not found, creating it 2026-11-16 14:38:21,116 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90871513, ID : ad4980a1-d927-4e7b-956e-0ded1e73987a 2026-11-16 14:38:22,814 - INFO - ================================================================================ 2026-11-16 14:38:22,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 14:38:23,086 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.254': '0'}} with 2026-11-16 14:38:23,086 - INFO - Initial checks done. Running the testcase now 2026-11-16 14:38:23,086 - INFO - 2026-11-16 14:38:23,087 - INFO - ================================================================================ 2026-11-16 14:38:23,087 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 14:38:23,087 - 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-11-16 14:38:23,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.254': '0'}} with 2026-11-16 14:38:23,384 - INFO - Initial checks done. Running the testcase now 2026-11-16 14:38:23,384 - INFO - 2026-11-16 14:38:23,817 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794, 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-90871513:ctest-vn4-68209794, 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-90871513:ctest-vn4-68209794, 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-90871513:ctest-vn4-68209794, 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-11-16 14:38:24,380 - DEBUG - Response for create_network : {'network': {'id': '22dd7682-9b41-44c5-9cfd-2576854d1959', 'name': 'ctest-vn4-68209794', 'tenant_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'project_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90871513', 'ctest-vn4-68209794'], 'port_security_enabled': True, 'description': ''}} 2026-11-16 14:38:24,609 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5598984-c9e7-41a5-b692-e83c118fe033', 'name': '', 'tenant_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'network_id': '22dd7682-9b41-44c5-9cfd-2576854d1959', 'ip_version': 4, 'cidr': '119.139.148.64/26', 'allocation_pools': [{'start': '119.139.148.66', 'end': '119.139.148.126'}], 'gateway_ip': '119.139.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.139.148.66', 'tags': [], 'project_id': 'ad4980a1d9274e7b956e0ded1e73987a'}} 2026-11-16 14:38:24,825 - DEBUG - Response for create_subnet : {'subnet': {'id': '98930ecf-6383-40e6-938c-86ba650b852f', 'name': '', 'tenant_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'network_id': '22dd7682-9b41-44c5-9cfd-2576854d1959', 'ip_version': 6, 'cidr': '3973:e33a:a043:ffa2:a70f:83d7::/96', 'allocation_pools': [{'start': '3973:e33a:a043:ffa2:a70f:83d7:0:2', 'end': '3973:e33a:a043:ffa2:a70f:83d7:ffff:fffe'}], 'gateway_ip': '3973:e33a:a043:ffa2:a70f:83d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3973:e33a:a043:ffa2:a70f:83d7:0:2', 'tags': [], 'project_id': 'ad4980a1d9274e7b956e0ded1e73987a'}} 2026-11-16 14:38:24,846 - INFO - Created VN ctest-vn4-68209794 2026-11-16 14:38:24,900 - DEBUG - VN ctest-vn4-68209794 UUID is 22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,115 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22dd7682-9b41-44c5-9cfd-2576854d1959', 'name': 'ctest-vn4-68209794', 'tenant_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'project_id': 'ad4980a1d9274e7b956e0ded1e73987a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e5598984-c9e7-41a5-b692-e83c118fe033', '98930ecf-6383-40e6-938c-86ba650b852f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90871513', 'ctest-vn4-68209794'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90871513', 'ctest-policy1-49795506']], 'subnet_ipam': [{'subnet_cidr': '119.139.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3973:e33a:a043:ffa2:a70f:83d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-16 14:38:25,284 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-11-16 14:38:25,648 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-11-16 14:38:25,676 - DEBUG - Requesting: http://10.0.0.186:8082/domain/69bbf3a4-3a84-48c8-9be4-869fce8baa8a 2026-11-16 14:38:25,690 - DEBUG - Requesting: http://10.0.0.186:8082/project/ad4980a1-d927-4e7b-956e-0ded1e73987a 2026-11-16 14:38:25,774 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,787 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,797 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:25,804 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:25,811 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/ac344f17-332d-4ca0-80b5-cc77eab19218 2026-11-16 14:38:25,817 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 14:38:25,817 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,827 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:25,840 - INFO - Verified VN network id 12 for VN 22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,840 - INFO - Verifications in API Server for VN ctest-vn4-68209794 passed 2026-11-16 14:38:25,840 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,851 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:25,858 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:25,864 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/ac344f17-332d-4ca0-80b5-cc77eab19218 2026-11-16 14:38:25,877 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90871513', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2512294470465176773', 'uuid-lslong': '11312239029997345113'}, 'enable': 'true', 'created': '2026-11-16T14:38:24', 'last-modified': '2026-11-16T14:38:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.788660'} 2026-11-16 14:38:25,884 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 14:38:25,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68209794 passed 2026-11-16 14:38:25,884 - DEBUG - ====Verifying policy data for ctest-vn4-68209794 in API_Server ====== 2026-11-16 14:38:25,884 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-11-16 14:38:25,890 - DEBUG - Requesting: http://10.0.0.186:8082/domain/69bbf3a4-3a84-48c8-9be4-869fce8baa8a 2026-11-16 14:38:25,901 - DEBUG - Requesting: http://10.0.0.186:8082/project/ad4980a1-d927-4e7b-956e-0ded1e73987a 2026-11-16 14:38:25,971 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/22dd7682-9b41-44c5-9cfd-2576854d1959 2026-11-16 14:38:25,981 - DEBUG - ==>Verifying data for policy with id: a1cc98ef-a9cb-4d50-9bd6-1a97f2c2a6e0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90871513', 'ctest-policy1-49795506'] 2026-11-16 14:38:25,981 - INFO - VN ctest-vn4-68209794 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-16 14:38:25,981 - DEBUG - Verifying the vn in opserver 2026-11-16 14:38:25,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794 virtual network link through opserver 10.0.0.186 2026-11-16 14:38:25,981 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-11-16 14:38:26,363 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-11-16 14:38:26,427 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794?flat'} 2026-11-16 14:38:26,427 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90871513:ctest-vn4-68209794 is found in opserver 2026-11-16 14:38:26,440 - DEBUG - Do not have enough data to verify VN in agent 2026-11-16 14:38:26,447 - DEBUG - VRF ids for VN ctest-vn4-68209794: {} 2026-11-16 14:38:26,448 - DEBUG - ====Verifying data for ctest-policy1-49795506 in API_Server ====== 2026-11-16 14:38:26,448 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-11-16 14:38:26,454 - DEBUG - Requesting: http://10.0.0.186:8082/domain/69bbf3a4-3a84-48c8-9be4-869fce8baa8a 2026-11-16 14:38:26,467 - DEBUG - Requesting: http://10.0.0.186:8082/project/ad4980a1-d927-4e7b-956e-0ded1e73987a 2026-11-16 14:38:26,541 - DEBUG - Requesting: http://10.0.0.186:8082/network-policy/a1cc98ef-a9cb-4d50-9bd6-1a97f2c2a6e0 2026-11-16 14:38:26,552 - INFO - Verified policy ctest-policy1-49795506 in API Server, Result: True 2026-11-16 14:38:26,552 - INFO - Done with setup and verification, moving onto test .. 2026-11-16 14:38:26,561 - INFO - Deleting VN ctest-vn4-68209794 2026-11-16 14:38:26,735 - DEBUG - Response for deleting network () 2026-11-16 14:38:26,735 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/eef986a9-df67-4dec-a2b5-f5498689a531 2026-11-16 14:38:26,741 - DEBUG - Response Code: 404 2026-11-16 14:38:26,741 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-11-16 14:38:26,747 - DEBUG - Requesting: http://10.0.0.186:8082/domain/69bbf3a4-3a84-48c8-9be4-869fce8baa8a 2026-11-16 14:38:26,801 - DEBUG - Requesting: http://10.0.0.186:8082/project/ad4980a1-d927-4e7b-956e-0ded1e73987a 2026-11-16 14:38:26,880 - INFO - Validated that VN ctest-vn4-68209794 is not found in API Server 2026-11-16 14:38:26,892 - DEBUG - VN ctest-vn4-68209794 is not present in Agent 10.0.0.186 2026-11-16 14:38:26,892 - INFO - Validated that VN ctest-vn4-68209794 is not in any agent 2026-11-16 14:38:26,907 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68209794 info 2026-11-16 14:38:26,937 - INFO - Deleted policy ctest-policy1-49795506 2026-11-16 14:38:27,112 - DEBUG - policy ctest-policy1-49795506 is not found in API Server 2026-11-16 14:38:27,378 - DEBUG - No XMPP flaps were noticed during the test
2026-11-16 14:38:27,378 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-16 14:38:27,378 - INFO - -------------------------------------------------------------------------------- 2026-11-16 14:38:27,660 - DEBUG - No XMPP flaps were noticed during the test
2026-11-16 14:38:27,661 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-16 14:38:27,661 - INFO - -------------------------------------------------------------------------------- 2026-11-16 14:38:28,415 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90871513, ID : ad4980a1-d927-4e7b-956e-0ded1e73987a