2026-07-05 02:31:29,950 - INFO - Domain Default found not creating 2026-07-05 02:31:30,104 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06895651 not found, creating it 2026-07-05 02:31:30,582 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06895651, ID : 6fe6bb2f-45b7-45d0-8026-1ac707653a75 2026-07-05 02:31:32,136 - INFO - ================================================================================ 2026-07-05 02:31:32,136 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-05 02:31:32,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-05 02:31:32,398 - INFO - Initial checks done. Running the testcase now 2026-07-05 02:31:32,398 - INFO - 2026-07-05 02:31:32,398 - INFO - ================================================================================ 2026-07-05 02:31:32,398 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-05 02:31:32,398 - 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-05 02:31:32,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-05 02:31:32,694 - INFO - Initial checks done. Running the testcase now 2026-07-05 02:31:32,695 - INFO - 2026-07-05 02:31:33,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606, 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-06895651:ctest-vn4-81431606, 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-06895651:ctest-vn4-81431606, 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-06895651:ctest-vn4-81431606, 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-05 02:31:33,572 - DEBUG - Response for create_network : {'network': {'id': '7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5', 'name': 'ctest-vn4-81431606', 'tenant_id': '6fe6bb2f45b745d080261ac707653a75', 'project_id': '6fe6bb2f45b745d080261ac707653a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06895651', 'ctest-vn4-81431606'], 'port_security_enabled': True, 'description': ''}} 2026-07-05 02:31:33,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '10078bec-d930-4460-9271-18b1cf608541', 'name': '', 'tenant_id': '6fe6bb2f45b745d080261ac707653a75', 'network_id': '7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5', 'ip_version': 4, 'cidr': '107.106.153.192/26', 'allocation_pools': [{'start': '107.106.153.194', 'end': '107.106.153.254'}], 'gateway_ip': '107.106.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.106.153.194', 'tags': [], 'project_id': '6fe6bb2f45b745d080261ac707653a75'}} 2026-07-05 02:31:33,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '100d5ad5-62b7-4ebb-ab5e-9a62f8fbf573', 'name': '', 'tenant_id': '6fe6bb2f45b745d080261ac707653a75', 'network_id': '7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5', 'ip_version': 6, 'cidr': '2c7b:7655:b4fa:bf70:7604:4d7a::/96', 'allocation_pools': [{'start': '2c7b:7655:b4fa:bf70:7604:4d7a:0:2', 'end': '2c7b:7655:b4fa:bf70:7604:4d7a:ffff:fffe'}], 'gateway_ip': '2c7b:7655:b4fa:bf70:7604:4d7a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c7b:7655:b4fa:bf70:7604:4d7a:0:2', 'tags': [], 'project_id': '6fe6bb2f45b745d080261ac707653a75'}} 2026-07-05 02:31:33,950 - INFO - Created VN ctest-vn4-81431606 2026-07-05 02:31:34,004 - DEBUG - VN ctest-vn4-81431606 UUID is 7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5', 'name': 'ctest-vn4-81431606', 'tenant_id': '6fe6bb2f45b745d080261ac707653a75', 'project_id': '6fe6bb2f45b745d080261ac707653a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10078bec-d930-4460-9271-18b1cf608541', '100d5ad5-62b7-4ebb-ab5e-9a62f8fbf573'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06895651', 'ctest-vn4-81431606'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06895651', 'ctest-policy1-62264205']], 'subnet_ipam': [{'subnet_cidr': '107.106.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c7b:7655:b4fa:bf70:7604:4d7a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-05 02:31:34,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-05 02:31:34,683 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-05 02:31:34,711 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92 2026-07-05 02:31:34,722 - DEBUG - Requesting: http://10.0.0.50:8082/project/6fe6bb2f-45b7-45d0-8026-1ac707653a75 2026-07-05 02:31:34,789 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,800 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:34,814 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:34,820 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9906218e-b823-409a-916f-5735f773742d 2026-07-05 02:31:34,826 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-05 02:31:34,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,835 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:34,850 - INFO - Verified VN network id 12 for VN 7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,850 - INFO - Verifications in API Server for VN ctest-vn4-81431606 passed 2026-07-05 02:31:34,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,859 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:34,866 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:34,872 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9906218e-b823-409a-916f-5735f773742d 2026-07-05 02:31:34,885 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06895651', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8846427331229339591', 'uuid-lslong': '10498650192969895621'}, 'enable': 'true', 'created': '2026-07-05T02:31:33', 'last-modified': '2026-07-05T02:31:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717874'} 2026-07-05 02:31:34,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-05 02:31:34,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81431606 passed 2026-07-05 02:31:34,892 - DEBUG - ====Verifying policy data for ctest-vn4-81431606 in API_Server ====== 2026-07-05 02:31:34,892 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-05 02:31:34,897 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92 2026-07-05 02:31:34,907 - DEBUG - Requesting: http://10.0.0.50:8082/project/6fe6bb2f-45b7-45d0-8026-1ac707653a75 2026-07-05 02:31:34,975 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7ac4d2c9-913b-4fc7-91b2-b2b9ed0e8ec5 2026-07-05 02:31:34,984 - DEBUG - ==>Verifying data for policy with id: 535db999-6723-4126-a898-3d272556e714, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06895651', 'ctest-policy1-62264205'] 2026-07-05 02:31:34,984 - INFO - VN ctest-vn4-81431606 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-05 02:31:34,984 - DEBUG - Verifying the vn in opserver 2026-07-05 02:31:34,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606 virtual network link through opserver 10.0.0.50 2026-07-05 02:31:34,984 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-05 02:31:35,299 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-05 02:31:35,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606?flat'} 2026-07-05 02:31:35,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06895651:ctest-vn4-81431606 is found in opserver 2026-07-05 02:31:35,368 - DEBUG - Do not have enough data to verify VN in agent 2026-07-05 02:31:35,373 - DEBUG - VRF ids for VN ctest-vn4-81431606: {} 2026-07-05 02:31:35,373 - DEBUG - ====Verifying data for ctest-policy1-62264205 in API_Server ====== 2026-07-05 02:31:35,373 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-05 02:31:35,379 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92 2026-07-05 02:31:35,392 - DEBUG - Requesting: http://10.0.0.50:8082/project/6fe6bb2f-45b7-45d0-8026-1ac707653a75 2026-07-05 02:31:35,461 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/535db999-6723-4126-a898-3d272556e714 2026-07-05 02:31:35,469 - INFO - Verified policy ctest-policy1-62264205 in API Server, Result: True 2026-07-05 02:31:35,469 - INFO - Done with setup and verification, moving onto test .. 2026-07-05 02:31:35,477 - INFO - Deleting VN ctest-vn4-81431606 2026-07-05 02:31:35,591 - DEBUG - Response for deleting network () 2026-07-05 02:31:35,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/703d3075-3bd9-409f-9458-f2cf411e296b 2026-07-05 02:31:35,596 - DEBUG - Response Code: 404 2026-07-05 02:31:35,596 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-05 02:31:35,601 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92 2026-07-05 02:31:35,653 - DEBUG - Requesting: http://10.0.0.50:8082/project/6fe6bb2f-45b7-45d0-8026-1ac707653a75 2026-07-05 02:31:35,722 - INFO - Validated that VN ctest-vn4-81431606 is not found in API Server 2026-07-05 02:31:35,731 - DEBUG - VN ctest-vn4-81431606 is not present in Agent 10.0.0.50 2026-07-05 02:31:35,731 - INFO - Validated that VN ctest-vn4-81431606 is not in any agent 2026-07-05 02:31:35,745 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81431606 info 2026-07-05 02:31:35,772 - INFO - Deleted policy ctest-policy1-62264205 2026-07-05 02:31:35,932 - DEBUG - policy ctest-policy1-62264205 is not found in API Server 2026-07-05 02:31:36,186 - DEBUG - No XMPP flaps were noticed during the test
2026-07-05 02:31:36,186 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-05 02:31:36,186 - INFO - -------------------------------------------------------------------------------- 2026-07-05 02:31:36,477 - DEBUG - No XMPP flaps were noticed during the test
2026-07-05 02:31:36,477 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-05 02:31:36,477 - INFO - -------------------------------------------------------------------------------- 2026-07-05 02:31:37,199 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06895651, ID : 6fe6bb2f-45b7-45d0-8026-1ac707653a75