2026-02-16 18:05:46,467 - INFO - Domain Default found not creating 2026-02-16 18:05:46,628 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32434516 not found, creating it 2026-02-16 18:05:47,099 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32434516, ID : a36804fe-5498-4027-b10d-2aca088853c3 2026-02-16 18:05:48,512 - INFO - ================================================================================ 2026-02-16 18:05:48,512 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 18:05:48,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 18:05:48,764 - INFO - Initial checks done. Running the testcase now 2026-02-16 18:05:48,764 - INFO - 2026-02-16 18:05:48,765 - INFO - ================================================================================ 2026-02-16 18:05:48,765 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 18:05:48,765 - 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-16 18:05:49,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 18:05:49,052 - INFO - Initial checks done. Running the testcase now 2026-02-16 18:05:49,052 - INFO - 2026-02-16 18:05:49,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870, 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-32434516:ctest-vn4-48329870, 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-32434516:ctest-vn4-48329870, 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-32434516:ctest-vn4-48329870, 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-16 18:05:49,908 - DEBUG - Response for create_network : {'network': {'id': '4be08860-5c81-41a6-899c-600acdec59e6', 'name': 'ctest-vn4-48329870', 'tenant_id': 'a36804fe54984027b10d2aca088853c3', 'project_id': 'a36804fe54984027b10d2aca088853c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32434516', 'ctest-vn4-48329870'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 18:05:50,094 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6e9d423-dfb2-47ee-9dad-e7165c3c5cf8', 'name': '', 'tenant_id': 'a36804fe54984027b10d2aca088853c3', 'network_id': '4be08860-5c81-41a6-899c-600acdec59e6', 'ip_version': 4, 'cidr': '86.250.86.192/26', 'allocation_pools': [{'start': '86.250.86.194', 'end': '86.250.86.254'}], 'gateway_ip': '86.250.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.250.86.194', 'tags': [], 'project_id': 'a36804fe54984027b10d2aca088853c3'}} 2026-02-16 18:05:50,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '8188178a-531b-4c91-ae09-93b056ef07e4', 'name': '', 'tenant_id': 'a36804fe54984027b10d2aca088853c3', 'network_id': '4be08860-5c81-41a6-899c-600acdec59e6', 'ip_version': 6, 'cidr': '35ee:931f:f495:5d09:6389:c3e6::/96', 'allocation_pools': [{'start': '35ee:931f:f495:5d09:6389:c3e6:0:2', 'end': '35ee:931f:f495:5d09:6389:c3e6:ffff:fffe'}], 'gateway_ip': '35ee:931f:f495:5d09:6389:c3e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35ee:931f:f495:5d09:6389:c3e6:0:2', 'tags': [], 'project_id': 'a36804fe54984027b10d2aca088853c3'}} 2026-02-16 18:05:50,306 - INFO - Created VN ctest-vn4-48329870 2026-02-16 18:05:50,359 - DEBUG - VN ctest-vn4-48329870 UUID is 4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:50,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4be08860-5c81-41a6-899c-600acdec59e6', 'name': 'ctest-vn4-48329870', 'tenant_id': 'a36804fe54984027b10d2aca088853c3', 'project_id': 'a36804fe54984027b10d2aca088853c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6e9d423-dfb2-47ee-9dad-e7165c3c5cf8', '8188178a-531b-4c91-ae09-93b056ef07e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32434516', 'ctest-vn4-48329870'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32434516', 'ctest-policy1-90244205']], 'subnet_ipam': [{'subnet_cidr': '86.250.86.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35ee:931f:f495:5d09:6389:c3e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 18:05:50,723 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 18:05:51,015 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 18:05:51,046 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7 2026-02-16 18:05:51,062 - DEBUG - Requesting: http://10.0.0.38:8082/project/a36804fe-5498-4027-b10d-2aca088853c3 2026-02-16 18:05:51,139 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,152 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,172 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,180 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3134607-5b1d-44f0-a5d1-d6d5fc2e1a55 2026-02-16 18:05:51,187 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 18:05:51,187 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,197 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,210 - INFO - Verified VN network id 11 for VN 4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,210 - INFO - Verifications in API Server for VN ctest-vn4-48329870 passed 2026-02-16 18:05:51,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,219 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,231 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3134607-5b1d-44f0-a5d1-d6d5fc2e1a55 2026-02-16 18:05:51,241 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32434516', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5467519895077994918', 'uuid-lslong': '9915906079083747814'}, 'enable': 'true', 'created': '2026-02-16T18:05:49', 'last-modified': '2026-02-16T18:05:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704541'} 2026-02-16 18:05:51,247 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 18:05:51,247 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48329870 passed 2026-02-16 18:05:51,247 - DEBUG - ====Verifying policy data for ctest-vn4-48329870 in API_Server ====== 2026-02-16 18:05:51,247 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 18:05:51,255 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7 2026-02-16 18:05:51,265 - DEBUG - Requesting: http://10.0.0.38:8082/project/a36804fe-5498-4027-b10d-2aca088853c3 2026-02-16 18:05:51,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4be08860-5c81-41a6-899c-600acdec59e6 2026-02-16 18:05:51,346 - DEBUG - ==>Verifying data for policy with id: 2f7aa7b3-836e-4f8e-88c4-81fc485af7fa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32434516', 'ctest-policy1-90244205'] 2026-02-16 18:05:51,346 - INFO - VN ctest-vn4-48329870 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 18:05:51,346 - DEBUG - Verifying the vn in opserver 2026-02-16 18:05:51,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870 virtual network link through opserver 10.0.0.38 2026-02-16 18:05:51,346 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 18:05:51,637 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 18:05:51,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870?flat'} 2026-02-16 18:05:51,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32434516:ctest-vn4-48329870 is found in opserver 2026-02-16 18:05:51,708 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 18:05:51,712 - DEBUG - VRF ids for VN ctest-vn4-48329870: {} 2026-02-16 18:05:51,713 - DEBUG - ====Verifying data for ctest-policy1-90244205 in API_Server ====== 2026-02-16 18:05:51,713 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 18:05:51,718 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7 2026-02-16 18:05:51,727 - DEBUG - Requesting: http://10.0.0.38:8082/project/a36804fe-5498-4027-b10d-2aca088853c3 2026-02-16 18:05:51,797 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2f7aa7b3-836e-4f8e-88c4-81fc485af7fa 2026-02-16 18:05:51,807 - INFO - Verified policy ctest-policy1-90244205 in API Server, Result: True 2026-02-16 18:05:51,807 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 18:05:51,816 - INFO - Deleting VN ctest-vn4-48329870 2026-02-16 18:05:51,924 - DEBUG - Response for deleting network () 2026-02-16 18:05:51,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/040509f3-7a1d-40f4-a766-d10b0ddb2353 2026-02-16 18:05:51,929 - DEBUG - Response Code: 404 2026-02-16 18:05:51,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 18:05:51,934 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7 2026-02-16 18:05:51,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/a36804fe-5498-4027-b10d-2aca088853c3 2026-02-16 18:05:52,057 - INFO - Validated that VN ctest-vn4-48329870 is not found in API Server 2026-02-16 18:05:52,066 - DEBUG - VN ctest-vn4-48329870 is not present in Agent 10.0.0.38 2026-02-16 18:05:52,066 - INFO - Validated that VN ctest-vn4-48329870 is not in any agent 2026-02-16 18:05:52,081 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48329870 info 2026-02-16 18:05:52,109 - INFO - Deleted policy ctest-policy1-90244205 2026-02-16 18:05:52,275 - DEBUG - policy ctest-policy1-90244205 is not found in API Server 2026-02-16 18:05:52,529 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 18:05:52,529 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 18:05:52,529 - INFO - -------------------------------------------------------------------------------- 2026-02-16 18:05:52,816 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 18:05:52,816 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 18:05:52,816 - INFO - -------------------------------------------------------------------------------- 2026-02-16 18:05:53,492 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32434516, ID : a36804fe-5498-4027-b10d-2aca088853c3