2026-04-28 18:42:26,824 - INFO - Domain Default found not creating 2026-04-28 18:42:26,988 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68467534 not found, creating it 2026-04-28 18:42:27,438 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68467534, ID : 3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5 2026-04-28 18:42:29,529 - INFO - ================================================================================ 2026-04-28 18:42:29,529 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 18:42:29,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 18:42:29,789 - INFO - Initial checks done. Running the testcase now 2026-04-28 18:42:29,789 - INFO - 2026-04-28 18:42:29,789 - INFO - ================================================================================ 2026-04-28 18:42:29,790 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 18:42:29,790 - 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-04-28 18:42:30,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 18:42:30,090 - INFO - Initial checks done. Running the testcase now 2026-04-28 18:42:30,090 - INFO - 2026-04-28 18:42:30,440 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516, 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-68467534:ctest-vn4-64250516, 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-68467534:ctest-vn4-64250516, 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-68467534:ctest-vn4-64250516, 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-04-28 18:42:30,943 - DEBUG - Response for create_network : {'network': {'id': 'a629f0e7-3a18-427a-af5b-fc548bed75ac', 'name': 'ctest-vn4-64250516', 'tenant_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'project_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68467534', 'ctest-vn4-64250516'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 18:42:31,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '79925c99-8237-494d-b22a-099cb5a4a61a', 'name': '', 'tenant_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'network_id': 'a629f0e7-3a18-427a-af5b-fc548bed75ac', 'ip_version': 4, 'cidr': '169.85.238.192/26', 'allocation_pools': [{'start': '169.85.238.194', 'end': '169.85.238.254'}], 'gateway_ip': '169.85.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.85.238.194', 'tags': [], 'project_id': '3fb1e52c1bd84807b9afcacc3b0edfa5'}} 2026-04-28 18:42:31,366 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8001e00-a7d8-4af3-9120-4569c06ea7c4', 'name': '', 'tenant_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'network_id': 'a629f0e7-3a18-427a-af5b-fc548bed75ac', 'ip_version': 6, 'cidr': '2200:351f:c90b:83e1:2a3d:9b1f::/96', 'allocation_pools': [{'start': '2200:351f:c90b:83e1:2a3d:9b1f:0:2', 'end': '2200:351f:c90b:83e1:2a3d:9b1f:ffff:fffe'}], 'gateway_ip': '2200:351f:c90b:83e1:2a3d:9b1f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2200:351f:c90b:83e1:2a3d:9b1f:0:2', 'tags': [], 'project_id': '3fb1e52c1bd84807b9afcacc3b0edfa5'}} 2026-04-28 18:42:31,386 - INFO - Created VN ctest-vn4-64250516 2026-04-28 18:42:31,436 - DEBUG - VN ctest-vn4-64250516 UUID is a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:31,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a629f0e7-3a18-427a-af5b-fc548bed75ac', 'name': 'ctest-vn4-64250516', 'tenant_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'project_id': '3fb1e52c1bd84807b9afcacc3b0edfa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79925c99-8237-494d-b22a-099cb5a4a61a', 'b8001e00-a7d8-4af3-9120-4569c06ea7c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68467534', 'ctest-vn4-64250516'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68467534', 'ctest-policy1-30833284']], 'subnet_ipam': [{'subnet_cidr': '169.85.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2200:351f:c90b:83e1:2a3d:9b1f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 18:42:31,812 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 18:42:32,108 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 18:42:32,141 - DEBUG - Requesting: http://10.0.0.50:8082/domain/568ce4b5-5df4-4839-bd23-e0efc03de619 2026-04-28 18:42:32,153 - DEBUG - Requesting: http://10.0.0.50:8082/project/3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5 2026-04-28 18:42:32,219 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,233 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,242 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:32,250 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:32,257 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9ca3b105-dd47-4cbf-8bd1-8de35ba423c3 2026-04-28 18:42:32,266 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 18:42:32,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:32,294 - INFO - Verified VN network id 11 for VN a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,294 - INFO - Verifications in API Server for VN ctest-vn4-64250516 passed 2026-04-28 18:42:32,294 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,306 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:32,314 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:32,322 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9ca3b105-dd47-4cbf-8bd1-8de35ba423c3 2026-04-28 18:42:32,336 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68467534', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11973365960243954298', 'uuid-lslong': '12635970619573106092'}, 'enable': 'true', 'created': '2026-04-28T18:42:30', 'last-modified': '2026-04-28T18:42:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714828'} 2026-04-28 18:42:32,342 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 18:42:32,342 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64250516 passed 2026-04-28 18:42:32,342 - DEBUG - ====Verifying policy data for ctest-vn4-64250516 in API_Server ====== 2026-04-28 18:42:32,342 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 18:42:32,348 - DEBUG - Requesting: http://10.0.0.50:8082/domain/568ce4b5-5df4-4839-bd23-e0efc03de619 2026-04-28 18:42:32,358 - DEBUG - Requesting: http://10.0.0.50:8082/project/3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5 2026-04-28 18:42:32,433 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a629f0e7-3a18-427a-af5b-fc548bed75ac 2026-04-28 18:42:32,444 - DEBUG - ==>Verifying data for policy with id: 0b891dfa-cfff-4a2d-9618-3b0d07663e8b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68467534', 'ctest-policy1-30833284'] 2026-04-28 18:42:32,444 - INFO - VN ctest-vn4-64250516 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 18:42:32,444 - DEBUG - Verifying the vn in opserver 2026-04-28 18:42:32,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516 virtual network link through opserver 10.0.0.50 2026-04-28 18:42:32,444 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 18:42:32,739 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 18:42:32,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516?flat'} 2026-04-28 18:42:32,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68467534:ctest-vn4-64250516 is found in opserver 2026-04-28 18:42:32,816 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 18:42:32,821 - DEBUG - VRF ids for VN ctest-vn4-64250516: {} 2026-04-28 18:42:32,821 - DEBUG - ====Verifying data for ctest-policy1-30833284 in API_Server ====== 2026-04-28 18:42:32,821 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 18:42:32,827 - DEBUG - Requesting: http://10.0.0.50:8082/domain/568ce4b5-5df4-4839-bd23-e0efc03de619 2026-04-28 18:42:32,838 - DEBUG - Requesting: http://10.0.0.50:8082/project/3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5 2026-04-28 18:42:32,916 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/0b891dfa-cfff-4a2d-9618-3b0d07663e8b 2026-04-28 18:42:32,925 - INFO - Verified policy ctest-policy1-30833284 in API Server, Result: True 2026-04-28 18:42:32,925 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 18:42:32,933 - INFO - Deleting VN ctest-vn4-64250516 2026-04-28 18:42:33,057 - DEBUG - Response for deleting network () 2026-04-28 18:42:33,057 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/616999c3-391e-44d4-893c-b369d1124a0f 2026-04-28 18:42:33,063 - DEBUG - Response Code: 404 2026-04-28 18:42:33,063 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 18:42:33,068 - DEBUG - Requesting: http://10.0.0.50:8082/domain/568ce4b5-5df4-4839-bd23-e0efc03de619 2026-04-28 18:42:33,125 - DEBUG - Requesting: http://10.0.0.50:8082/project/3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5 2026-04-28 18:42:33,198 - INFO - Validated that VN ctest-vn4-64250516 is not found in API Server 2026-04-28 18:42:33,208 - DEBUG - VN ctest-vn4-64250516 is not present in Agent 10.0.0.50 2026-04-28 18:42:33,208 - INFO - Validated that VN ctest-vn4-64250516 is not in any agent 2026-04-28 18:42:33,223 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64250516 info 2026-04-28 18:42:33,246 - INFO - Deleted policy ctest-policy1-30833284 2026-04-28 18:42:33,412 - DEBUG - policy ctest-policy1-30833284 is not found in API Server 2026-04-28 18:42:33,676 - DEBUG - No XMPP flaps were noticed during the test 2026-04-28 18:42:33,676 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-28 18:42:33,676 - INFO - -------------------------------------------------------------------------------- 2026-04-28 18:42:33,978 - DEBUG - No XMPP flaps were noticed during the test 2026-04-28 18:42:33,978 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-28 18:42:33,978 - INFO - -------------------------------------------------------------------------------- 2026-04-28 18:42:34,713 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68467534, ID : 3fb1e52c-1bd8-4807-b9af-cacc3b0edfa5