2026-03-19 14:55:06,230 - INFO - Domain Default found not creating 2026-03-19 14:55:06,401 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77669893 not found, creating it 2026-03-19 14:55:06,847 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77669893, ID : 43cef8d1-2e55-4b75-9dc6-1303b3bd8fae 2026-03-19 14:55:08,299 - INFO - ================================================================================ 2026-03-19 14:55:08,299 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 14:55:08,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-19 14:55:08,559 - INFO - Initial checks done. Running the testcase now 2026-03-19 14:55:08,559 - INFO - 2026-03-19 14:55:08,559 - INFO - ================================================================================ 2026-03-19 14:55:08,559 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 14:55:08,559 - 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-03-19 14:55:08,850 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-19 14:55:08,850 - INFO - Initial checks done. Running the testcase now 2026-03-19 14:55:08,850 - INFO - 2026-03-19 14:55:09,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560, 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-77669893:ctest-vn4-01554560, 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-77669893:ctest-vn4-01554560, 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-77669893:ctest-vn4-01554560, 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-03-19 14:55:09,963 - DEBUG - Response for create_network : {'network': {'id': '00e83b21-9028-462f-9ff4-8156068807e5', 'name': 'ctest-vn4-01554560', 'tenant_id': '43cef8d12e554b759dc61303b3bd8fae', 'project_id': '43cef8d12e554b759dc61303b3bd8fae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77669893', 'ctest-vn4-01554560'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 14:55:10,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc513d11-3edf-4dd6-b6c9-8da75e34ee9f', 'name': '', 'tenant_id': '43cef8d12e554b759dc61303b3bd8fae', 'network_id': '00e83b21-9028-462f-9ff4-8156068807e5', 'ip_version': 4, 'cidr': '48.65.253.128/26', 'allocation_pools': [{'start': '48.65.253.130', 'end': '48.65.253.190'}], 'gateway_ip': '48.65.253.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.65.253.130', 'tags': [], 'project_id': '43cef8d12e554b759dc61303b3bd8fae'}} 2026-03-19 14:55:10,339 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4b75b0b-a63b-4cf5-84ca-7eb04b12ae26', 'name': '', 'tenant_id': '43cef8d12e554b759dc61303b3bd8fae', 'network_id': '00e83b21-9028-462f-9ff4-8156068807e5', 'ip_version': 6, 'cidr': '2b55:2aa0:e95b:286c:98f2:55::/96', 'allocation_pools': [{'start': '2b55:2aa0:e95b:286c:98f2:55:0:2', 'end': '2b55:2aa0:e95b:286c:98f2:55:ffff:fffe'}], 'gateway_ip': '2b55:2aa0:e95b:286c:98f2:55:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b55:2aa0:e95b:286c:98f2:55:0:2', 'tags': [], 'project_id': '43cef8d12e554b759dc61303b3bd8fae'}} 2026-03-19 14:55:10,356 - INFO - Created VN ctest-vn4-01554560 2026-03-19 14:55:10,409 - DEBUG - VN ctest-vn4-01554560 UUID is 00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:10,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00e83b21-9028-462f-9ff4-8156068807e5', 'name': 'ctest-vn4-01554560', 'tenant_id': '43cef8d12e554b759dc61303b3bd8fae', 'project_id': '43cef8d12e554b759dc61303b3bd8fae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc513d11-3edf-4dd6-b6c9-8da75e34ee9f', 'e4b75b0b-a63b-4cf5-84ca-7eb04b12ae26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77669893', 'ctest-vn4-01554560'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77669893', 'ctest-policy1-82006764']], 'subnet_ipam': [{'subnet_cidr': '48.65.253.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b55:2aa0:e95b:286c:98f2:55::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 14:55:10,749 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 14:55:11,040 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 14:55:11,071 - DEBUG - Requesting: http://10.0.0.38:8082/domain/29dc7456-3ee2-4d37-9dc9-7c8b1665796c 2026-03-19 14:55:11,082 - DEBUG - Requesting: http://10.0.0.38:8082/project/43cef8d1-2e55-4b75-9dc6-1303b3bd8fae 2026-03-19 14:55:11,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,162 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,172 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,179 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,186 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc8fc612-f06f-455a-8415-199b889efd99 2026-03-19 14:55:11,192 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 14:55:11,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,201 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,214 - INFO - Verified VN network id 10 for VN 00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,215 - INFO - Verifications in API Server for VN ctest-vn4-01554560 passed 2026-03-19 14:55:11,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,239 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc8fc612-f06f-455a-8415-199b889efd99 2026-03-19 14:55:11,251 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77669893', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '65367209935390255', 'uuid-lslong': '11525979552824690661'}, 'enable': 'true', 'created': '2026-03-19T14:55:09', 'last-modified': '2026-03-19T14:55:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682572'} 2026-03-19 14:55:11,257 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 14:55:11,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01554560 passed 2026-03-19 14:55:11,257 - DEBUG - ====Verifying policy data for ctest-vn4-01554560 in API_Server ====== 2026-03-19 14:55:11,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 14:55:11,264 - DEBUG - Requesting: http://10.0.0.38:8082/domain/29dc7456-3ee2-4d37-9dc9-7c8b1665796c 2026-03-19 14:55:11,273 - DEBUG - Requesting: http://10.0.0.38:8082/project/43cef8d1-2e55-4b75-9dc6-1303b3bd8fae 2026-03-19 14:55:11,342 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00e83b21-9028-462f-9ff4-8156068807e5 2026-03-19 14:55:11,351 - DEBUG - ==>Verifying data for policy with id: 0149f2aa-5303-4545-8ea1-6aca9aab9f4d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77669893', 'ctest-policy1-82006764'] 2026-03-19 14:55:11,351 - INFO - VN ctest-vn4-01554560 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 14:55:11,351 - DEBUG - Verifying the vn in opserver 2026-03-19 14:55:11,351 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560 virtual network link through opserver 10.0.0.38 2026-03-19 14:55:11,351 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-19 14:55:11,641 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-19 14:55:11,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560?flat'} 2026-03-19 14:55:11,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77669893:ctest-vn4-01554560 is found in opserver 2026-03-19 14:55:11,709 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 14:55:11,713 - DEBUG - VRF ids for VN ctest-vn4-01554560: {} 2026-03-19 14:55:11,713 - DEBUG - ====Verifying data for ctest-policy1-82006764 in API_Server ====== 2026-03-19 14:55:11,713 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 14:55:11,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/29dc7456-3ee2-4d37-9dc9-7c8b1665796c 2026-03-19 14:55:11,732 - DEBUG - Requesting: http://10.0.0.38:8082/project/43cef8d1-2e55-4b75-9dc6-1303b3bd8fae 2026-03-19 14:55:11,803 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0149f2aa-5303-4545-8ea1-6aca9aab9f4d 2026-03-19 14:55:11,811 - INFO - Verified policy ctest-policy1-82006764 in API Server, Result: True 2026-03-19 14:55:11,811 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 14:55:11,819 - INFO - Deleting VN ctest-vn4-01554560 2026-03-19 14:55:11,942 - DEBUG - Response for deleting network () 2026-03-19 14:55:11,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e5722e65-5f28-4407-8e8a-cf4ef68dfcbb 2026-03-19 14:55:11,946 - DEBUG - Response Code: 404 2026-03-19 14:55:11,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 14:55:11,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/29dc7456-3ee2-4d37-9dc9-7c8b1665796c 2026-03-19 14:55:12,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/43cef8d1-2e55-4b75-9dc6-1303b3bd8fae 2026-03-19 14:55:12,072 - INFO - Validated that VN ctest-vn4-01554560 is not found in API Server 2026-03-19 14:55:12,081 - DEBUG - VN ctest-vn4-01554560 is not present in Agent 10.0.0.38 2026-03-19 14:55:12,081 - INFO - Validated that VN ctest-vn4-01554560 is not in any agent 2026-03-19 14:55:12,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01554560 info 2026-03-19 14:55:12,126 - INFO - Deleted policy ctest-policy1-82006764 2026-03-19 14:55:12,289 - DEBUG - policy ctest-policy1-82006764 is not found in API Server 2026-03-19 14:55:12,542 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 14:55:12,543 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-19 14:55:12,543 - INFO - -------------------------------------------------------------------------------- 2026-03-19 14:55:12,830 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 14:55:12,830 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-19 14:55:12,830 - INFO - -------------------------------------------------------------------------------- 2026-03-19 14:55:13,502 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77669893, ID : 43cef8d1-2e55-4b75-9dc6-1303b3bd8fae