2026-05-29 22:28:20,294 - INFO - Domain Default found not creating 2026-05-29 22:28:20,455 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92194450 not found, creating it 2026-05-29 22:28:20,912 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92194450, ID : be9c987b-1a40-4981-97ee-4b4ebe844e84 2026-05-29 22:28:22,457 - INFO - ================================================================================ 2026-05-29 22:28:22,457 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 22:28:22,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-29 22:28:22,714 - INFO - Initial checks done. Running the testcase now 2026-05-29 22:28:22,714 - INFO - 2026-05-29 22:28:22,714 - INFO - ================================================================================ 2026-05-29 22:28:22,714 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 22:28:22,714 - 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-05-29 22:28:23,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-29 22:28:23,005 - INFO - Initial checks done. Running the testcase now 2026-05-29 22:28:23,005 - INFO - 2026-05-29 22:28:23,364 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207, 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-92194450:ctest-vn4-25325207, 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-92194450:ctest-vn4-25325207, 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-92194450:ctest-vn4-25325207, 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-05-29 22:28:23,886 - DEBUG - Response for create_network : {'network': {'id': 'a19eb43b-fa82-4728-932b-76421eabd319', 'name': 'ctest-vn4-25325207', 'tenant_id': 'be9c987b1a40498197ee4b4ebe844e84', 'project_id': 'be9c987b1a40498197ee4b4ebe844e84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92194450', 'ctest-vn4-25325207'], 'port_security_enabled': True, 'description': ''}} 2026-05-29 22:28:24,059 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9994e65-164d-4336-b342-f6ef0866874a', 'name': '', 'tenant_id': 'be9c987b1a40498197ee4b4ebe844e84', 'network_id': 'a19eb43b-fa82-4728-932b-76421eabd319', 'ip_version': 4, 'cidr': '88.131.188.128/26', 'allocation_pools': [{'start': '88.131.188.130', 'end': '88.131.188.190'}], 'gateway_ip': '88.131.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.131.188.130', 'tags': [], 'project_id': 'be9c987b1a40498197ee4b4ebe844e84'}} 2026-05-29 22:28:24,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '5be87dd2-2cf3-42c7-b2c0-fbbe8f5d1bdb', 'name': '', 'tenant_id': 'be9c987b1a40498197ee4b4ebe844e84', 'network_id': 'a19eb43b-fa82-4728-932b-76421eabd319', 'ip_version': 6, 'cidr': '2525:93e7:8b4c:eb9:1fc9:f86e::/96', 'allocation_pools': [{'start': '2525:93e7:8b4c:eb9:1fc9:f86e:0:2', 'end': '2525:93e7:8b4c:eb9:1fc9:f86e:ffff:fffe'}], 'gateway_ip': '2525:93e7:8b4c:eb9:1fc9:f86e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2525:93e7:8b4c:eb9:1fc9:f86e:0:2', 'tags': [], 'project_id': 'be9c987b1a40498197ee4b4ebe844e84'}} 2026-05-29 22:28:24,228 - INFO - Created VN ctest-vn4-25325207 2026-05-29 22:28:24,280 - DEBUG - VN ctest-vn4-25325207 UUID is a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:24,479 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a19eb43b-fa82-4728-932b-76421eabd319', 'name': 'ctest-vn4-25325207', 'tenant_id': 'be9c987b1a40498197ee4b4ebe844e84', 'project_id': 'be9c987b1a40498197ee4b4ebe844e84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9994e65-164d-4336-b342-f6ef0866874a', '5be87dd2-2cf3-42c7-b2c0-fbbe8f5d1bdb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92194450', 'ctest-vn4-25325207'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92194450', 'ctest-policy1-81747175']], 'subnet_ipam': [{'subnet_cidr': '88.131.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2525:93e7:8b4c:eb9:1fc9:f86e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-29 22:28:24,644 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 22:28:24,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 22:28:24,993 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2e4f5992-2f6d-4d9c-9c2c-5465088553ba 2026-05-29 22:28:25,006 - DEBUG - Requesting: http://10.0.0.50:8082/project/be9c987b-1a40-4981-97ee-4b4ebe844e84 2026-05-29 22:28:25,078 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,109 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,116 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d8782d29-be0d-44ec-b8bc-2a29a082ac7a 2026-05-29 22:28:25,123 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 22:28:25,123 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,134 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,148 - INFO - Verified VN network id 11 for VN a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,148 - INFO - Verifications in API Server for VN ctest-vn4-25325207 passed 2026-05-29 22:28:25,148 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,159 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,175 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d8782d29-be0d-44ec-b8bc-2a29a082ac7a 2026-05-29 22:28:25,187 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92194450', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11645943856125593384', 'uuid-lslong': '10604699773928461081'}, 'enable': 'true', 'created': '2026-05-29T22:28:23', 'last-modified': '2026-05-29T22:28:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739782'} 2026-05-29 22:28:25,193 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 22:28:25,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25325207 passed 2026-05-29 22:28:25,194 - DEBUG - ====Verifying policy data for ctest-vn4-25325207 in API_Server ====== 2026-05-29 22:28:25,194 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 22:28:25,199 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2e4f5992-2f6d-4d9c-9c2c-5465088553ba 2026-05-29 22:28:25,210 - DEBUG - Requesting: http://10.0.0.50:8082/project/be9c987b-1a40-4981-97ee-4b4ebe844e84 2026-05-29 22:28:25,277 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a19eb43b-fa82-4728-932b-76421eabd319 2026-05-29 22:28:25,287 - DEBUG - ==>Verifying data for policy with id: bbbf7987-e3d9-4088-9229-c8cbc4e13b47, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92194450', 'ctest-policy1-81747175'] 2026-05-29 22:28:25,287 - INFO - VN ctest-vn4-25325207 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-29 22:28:25,288 - DEBUG - Verifying the vn in opserver 2026-05-29 22:28:25,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207 virtual network link through opserver 10.0.0.50 2026-05-29 22:28:25,288 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-29 22:28:25,581 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-29 22:28:25,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207?flat'} 2026-05-29 22:28:25,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92194450:ctest-vn4-25325207 is found in opserver 2026-05-29 22:28:25,649 - DEBUG - Do not have enough data to verify VN in agent 2026-05-29 22:28:25,654 - DEBUG - VRF ids for VN ctest-vn4-25325207: {} 2026-05-29 22:28:25,655 - DEBUG - ====Verifying data for ctest-policy1-81747175 in API_Server ====== 2026-05-29 22:28:25,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 22:28:25,661 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2e4f5992-2f6d-4d9c-9c2c-5465088553ba 2026-05-29 22:28:25,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/be9c987b-1a40-4981-97ee-4b4ebe844e84 2026-05-29 22:28:25,741 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/bbbf7987-e3d9-4088-9229-c8cbc4e13b47 2026-05-29 22:28:25,751 - INFO - Verified policy ctest-policy1-81747175 in API Server, Result: True 2026-05-29 22:28:25,751 - INFO - Done with setup and verification, moving onto test .. 2026-05-29 22:28:25,761 - INFO - Deleting VN ctest-vn4-25325207 2026-05-29 22:28:25,873 - DEBUG - Response for deleting network () 2026-05-29 22:28:25,873 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78ad5bf3-8cac-4fd0-82a9-2c149ab3dd28 2026-05-29 22:28:25,878 - DEBUG - Response Code: 404 2026-05-29 22:28:25,878 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 22:28:25,882 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2e4f5992-2f6d-4d9c-9c2c-5465088553ba 2026-05-29 22:28:25,932 - DEBUG - Requesting: http://10.0.0.50:8082/project/be9c987b-1a40-4981-97ee-4b4ebe844e84 2026-05-29 22:28:26,002 - INFO - Validated that VN ctest-vn4-25325207 is not found in API Server 2026-05-29 22:28:26,011 - DEBUG - VN ctest-vn4-25325207 is not present in Agent 10.0.0.50 2026-05-29 22:28:26,011 - INFO - Validated that VN ctest-vn4-25325207 is not in any agent 2026-05-29 22:28:26,027 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25325207 info 2026-05-29 22:28:26,051 - INFO - Deleted policy ctest-policy1-81747175 2026-05-29 22:28:26,216 - DEBUG - policy ctest-policy1-81747175 is not found in API Server 2026-05-29 22:28:26,470 - DEBUG - No XMPP flaps were noticed during the test
2026-05-29 22:28:26,470 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-29 22:28:26,470 - INFO - -------------------------------------------------------------------------------- 2026-05-29 22:28:26,762 - DEBUG - No XMPP flaps were noticed during the test
2026-05-29 22:28:26,762 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-29 22:28:26,762 - INFO - -------------------------------------------------------------------------------- 2026-05-29 22:28:27,448 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92194450, ID : be9c987b-1a40-4981-97ee-4b4ebe844e84