2026-07-04 13:15:44,987 - INFO - Domain Default found not creating 2026-07-04 13:15:45,136 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29832232 not found, creating it 2026-07-04 13:15:45,598 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29832232, ID : c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39 2026-07-04 13:15:47,125 - INFO - ================================================================================ 2026-07-04 13:15:47,125 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-04 13:15:47,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-04 13:15:47,379 - INFO - Initial checks done. Running the testcase now 2026-07-04 13:15:47,379 - INFO - 2026-07-04 13:15:47,379 - INFO - ================================================================================ 2026-07-04 13:15:47,379 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-04 13:15:47,379 - 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-07-04 13:15:47,674 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-04 13:15:47,674 - INFO - Initial checks done. Running the testcase now 2026-07-04 13:15:47,674 - INFO - 2026-07-04 13:15:48,047 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286, 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-29832232:ctest-vn4-82982286, 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-29832232:ctest-vn4-82982286, 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-29832232:ctest-vn4-82982286, 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-07-04 13:15:48,553 - DEBUG - Response for create_network : {'network': {'id': '34419a1d-0d39-4fce-8d6e-7dc7ee98dd72', 'name': 'ctest-vn4-82982286', 'tenant_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'project_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29832232', 'ctest-vn4-82982286'], 'port_security_enabled': True, 'description': ''}} 2026-07-04 13:15:48,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a70cf74-f27f-434d-b6e8-8b39dc860fb0', 'name': '', 'tenant_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'network_id': '34419a1d-0d39-4fce-8d6e-7dc7ee98dd72', 'ip_version': 4, 'cidr': '121.47.72.128/26', 'allocation_pools': [{'start': '121.47.72.130', 'end': '121.47.72.190'}], 'gateway_ip': '121.47.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.47.72.130', 'tags': [], 'project_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39'}} 2026-07-04 13:15:48,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b72f1cb-0ccc-4465-a76b-51fd26be9b16', 'name': '', 'tenant_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'network_id': '34419a1d-0d39-4fce-8d6e-7dc7ee98dd72', 'ip_version': 6, 'cidr': '3240:da06:47f3:298e:c9d6:29d8::/96', 'allocation_pools': [{'start': '3240:da06:47f3:298e:c9d6:29d8:0:2', 'end': '3240:da06:47f3:298e:c9d6:29d8:ffff:fffe'}], 'gateway_ip': '3240:da06:47f3:298e:c9d6:29d8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3240:da06:47f3:298e:c9d6:29d8:0:2', 'tags': [], 'project_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39'}} 2026-07-04 13:15:48,915 - INFO - Created VN ctest-vn4-82982286 2026-07-04 13:15:48,966 - DEBUG - VN ctest-vn4-82982286 UUID is 34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34419a1d-0d39-4fce-8d6e-7dc7ee98dd72', 'name': 'ctest-vn4-82982286', 'tenant_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'project_id': 'c6afc5bc6d804b9d8459bbbb6c4f3d39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a70cf74-f27f-434d-b6e8-8b39dc860fb0', '4b72f1cb-0ccc-4465-a76b-51fd26be9b16'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29832232', 'ctest-vn4-82982286'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29832232', 'ctest-policy1-50795569']], 'subnet_ipam': [{'subnet_cidr': '121.47.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3240:da06:47f3:298e:c9d6:29d8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-04 13:15:49,306 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-04 13:15:49,625 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-04 13:15:49,648 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc 2026-07-04 13:15:49,660 - DEBUG - Requesting: http://10.0.0.38:8082/project/c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39 2026-07-04 13:15:49,728 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:49,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:49,759 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b83c50b-0aa4-46ed-994d-0c812ebeb9a9 2026-07-04 13:15:49,764 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-04 13:15:49,764 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:49,782 - INFO - Verified VN network id 11 for VN 34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,782 - INFO - Verifications in API Server for VN ctest-vn4-82982286 passed 2026-07-04 13:15:49,782 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:49,795 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:49,801 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b83c50b-0aa4-46ed-994d-0c812ebeb9a9 2026-07-04 13:15:49,811 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29832232', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3765460213025034190', 'uuid-lslong': '10191221304440970610'}, 'enable': 'true', 'created': '2026-07-04T13:15:48', 'last-modified': '2026-07-04T13:15:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690950'} 2026-07-04 13:15:49,816 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-04 13:15:49,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82982286 passed 2026-07-04 13:15:49,816 - DEBUG - ====Verifying policy data for ctest-vn4-82982286 in API_Server ====== 2026-07-04 13:15:49,816 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-04 13:15:49,821 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc 2026-07-04 13:15:49,830 - DEBUG - Requesting: http://10.0.0.38:8082/project/c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39 2026-07-04 13:15:49,901 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34419a1d-0d39-4fce-8d6e-7dc7ee98dd72 2026-07-04 13:15:49,911 - DEBUG - ==>Verifying data for policy with id: 2b01cba4-1a49-463a-a58d-c98c87571d2b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29832232', 'ctest-policy1-50795569'] 2026-07-04 13:15:49,911 - INFO - VN ctest-vn4-82982286 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-04 13:15:49,911 - DEBUG - Verifying the vn in opserver 2026-07-04 13:15:49,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286 virtual network link through opserver 10.0.0.38 2026-07-04 13:15:49,912 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-04 13:15:50,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-04 13:15:50,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286?flat'} 2026-07-04 13:15:50,282 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29832232:ctest-vn4-82982286 is found in opserver 2026-07-04 13:15:50,292 - DEBUG - Do not have enough data to verify VN in agent 2026-07-04 13:15:50,297 - DEBUG - VRF ids for VN ctest-vn4-82982286: {} 2026-07-04 13:15:50,297 - DEBUG - ====Verifying data for ctest-policy1-50795569 in API_Server ====== 2026-07-04 13:15:50,297 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-04 13:15:50,303 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc 2026-07-04 13:15:50,314 - DEBUG - Requesting: http://10.0.0.38:8082/project/c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39 2026-07-04 13:15:50,389 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2b01cba4-1a49-463a-a58d-c98c87571d2b 2026-07-04 13:15:50,398 - INFO - Verified policy ctest-policy1-50795569 in API Server, Result: True 2026-07-04 13:15:50,399 - INFO - Done with setup and verification, moving onto test .. 2026-07-04 13:15:50,407 - INFO - Deleting VN ctest-vn4-82982286 2026-07-04 13:15:50,516 - DEBUG - Response for deleting network () 2026-07-04 13:15:50,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0f95524-dd30-4491-8248-5e46bf4e4031 2026-07-04 13:15:50,521 - DEBUG - Response Code: 404 2026-07-04 13:15:50,521 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-04 13:15:50,526 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc 2026-07-04 13:15:50,577 - DEBUG - Requesting: http://10.0.0.38:8082/project/c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39 2026-07-04 13:15:50,651 - INFO - Validated that VN ctest-vn4-82982286 is not found in API Server 2026-07-04 13:15:50,659 - DEBUG - VN ctest-vn4-82982286 is not present in Agent 10.0.0.38 2026-07-04 13:15:50,659 - INFO - Validated that VN ctest-vn4-82982286 is not in any agent 2026-07-04 13:15:50,673 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82982286 info 2026-07-04 13:15:50,693 - INFO - Deleted policy ctest-policy1-50795569 2026-07-04 13:15:50,856 - DEBUG - policy ctest-policy1-50795569 is not found in API Server 2026-07-04 13:15:51,112 - DEBUG - No XMPP flaps were noticed during the test
2026-07-04 13:15:51,112 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-04 13:15:51,112 - INFO - -------------------------------------------------------------------------------- 2026-07-04 13:15:51,403 - DEBUG - No XMPP flaps were noticed during the test
2026-07-04 13:15:51,403 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-04 13:15:51,403 - INFO - -------------------------------------------------------------------------------- 2026-07-04 13:15:52,095 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29832232, ID : c6afc5bc-6d80-4b9d-8459-bbbb6c4f3d39