2026-05-20 14:13:02,882 - INFO - Domain Default found not creating 2026-05-20 14:13:03,114 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75511790 not found, creating it 2026-05-20 14:13:03,756 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75511790, ID : 80079949-8dcc-4baa-95c6-b1747b5f6034 2026-05-20 14:13:05,603 - INFO - ================================================================================ 2026-05-20 14:13:05,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 14:13:05,871 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.17': '0'}} with 2026-05-20 14:13:05,872 - INFO - Initial checks done. Running the testcase now 2026-05-20 14:13:05,872 - INFO - 2026-05-20 14:13:05,872 - INFO - ================================================================================ 2026-05-20 14:13:05,872 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 14:13:05,872 - 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-20 14:13:06,161 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.17': '0'}} with 2026-05-20 14:13:06,161 - INFO - Initial checks done. Running the testcase now 2026-05-20 14:13:06,161 - INFO - 2026-05-20 14:13:06,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081, 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-75511790:ctest-vn4-86856081, 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-75511790:ctest-vn4-86856081, 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-75511790:ctest-vn4-86856081, 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-20 14:13:07,098 - DEBUG - Response for create_network : {'network': {'id': '92f3b73b-40f1-4027-b1fe-a2c3e749ce37', 'name': 'ctest-vn4-86856081', 'tenant_id': '800799498dcc4baa95c6b1747b5f6034', 'project_id': '800799498dcc4baa95c6b1747b5f6034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75511790', 'ctest-vn4-86856081'], 'port_security_enabled': True, 'description': ''}} 2026-05-20 14:13:07,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de86c71f-dc78-43cc-9415-d2630ddc4d13', 'name': '', 'tenant_id': '800799498dcc4baa95c6b1747b5f6034', 'network_id': '92f3b73b-40f1-4027-b1fe-a2c3e749ce37', 'ip_version': 4, 'cidr': '125.243.130.0/26', 'allocation_pools': [{'start': '125.243.130.2', 'end': '125.243.130.62'}], 'gateway_ip': '125.243.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.243.130.2', 'tags': [], 'project_id': '800799498dcc4baa95c6b1747b5f6034'}} 2026-05-20 14:13:07,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '20801524-ea0e-4f83-ba99-f00f1c923f82', 'name': '', 'tenant_id': '800799498dcc4baa95c6b1747b5f6034', 'network_id': '92f3b73b-40f1-4027-b1fe-a2c3e749ce37', 'ip_version': 6, 'cidr': '2009:24c0:d9e6:3183:904b:a5f8::/96', 'allocation_pools': [{'start': '2009:24c0:d9e6:3183:904b:a5f8:0:2', 'end': '2009:24c0:d9e6:3183:904b:a5f8:ffff:fffe'}], 'gateway_ip': '2009:24c0:d9e6:3183:904b:a5f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2009:24c0:d9e6:3183:904b:a5f8:0:2', 'tags': [], 'project_id': '800799498dcc4baa95c6b1747b5f6034'}} 2026-05-20 14:13:07,525 - INFO - Created VN ctest-vn4-86856081 2026-05-20 14:13:07,582 - DEBUG - VN ctest-vn4-86856081 UUID is 92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:07,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92f3b73b-40f1-4027-b1fe-a2c3e749ce37', 'name': 'ctest-vn4-86856081', 'tenant_id': '800799498dcc4baa95c6b1747b5f6034', 'project_id': '800799498dcc4baa95c6b1747b5f6034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de86c71f-dc78-43cc-9415-d2630ddc4d13', '20801524-ea0e-4f83-ba99-f00f1c923f82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75511790', 'ctest-vn4-86856081'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75511790', 'ctest-policy1-71284775']], 'subnet_ipam': [{'subnet_cidr': '125.243.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2009:24c0:d9e6:3183:904b:a5f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-20 14:13:08,010 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-05-20 14:13:08,320 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-05-20 14:13:08,356 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6 2026-05-20 14:13:08,368 - DEBUG - Requesting: http://10.0.0.240:8082/project/80079949-8dcc-4baa-95c6-b1747b5f6034 2026-05-20 14:13:08,453 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,469 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,480 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:08,488 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:08,496 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/4c32b2ee-eac7-4494-bdaf-f84c06a5b02e 2026-05-20 14:13:08,503 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 14:13:08,503 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,512 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:08,528 - INFO - Verified VN network id 12 for VN 92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,528 - INFO - Verifications in API Server for VN ctest-vn4-86856081 passed 2026-05-20 14:13:08,528 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,539 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:08,547 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:08,555 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/4c32b2ee-eac7-4494-bdaf-f84c06a5b02e 2026-05-20 14:13:08,567 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75511790', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10589008613998673959', 'uuid-lslong': '12825867751080447543'}, 'enable': 'true', 'created': '2026-05-20T14:13:07', 'last-modified': '2026-05-20T14:13:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774708'} 2026-05-20 14:13:08,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 14:13:08,575 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86856081 passed 2026-05-20 14:13:08,575 - DEBUG - ====Verifying policy data for ctest-vn4-86856081 in API_Server ====== 2026-05-20 14:13:08,575 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-05-20 14:13:08,581 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6 2026-05-20 14:13:08,595 - DEBUG - Requesting: http://10.0.0.240:8082/project/80079949-8dcc-4baa-95c6-b1747b5f6034 2026-05-20 14:13:08,676 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/92f3b73b-40f1-4027-b1fe-a2c3e749ce37 2026-05-20 14:13:08,686 - DEBUG - ==>Verifying data for policy with id: dc805733-721c-48a0-82e7-cff76d73f19e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75511790', 'ctest-policy1-71284775'] 2026-05-20 14:13:08,686 - INFO - VN ctest-vn4-86856081 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-20 14:13:08,687 - DEBUG - Verifying the vn in opserver 2026-05-20 14:13:08,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081 virtual network link through opserver 10.0.0.240 2026-05-20 14:13:08,687 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-05-20 14:13:09,011 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-05-20 14:13:09,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081?flat'} 2026-05-20 14:13:09,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75511790:ctest-vn4-86856081 is found in opserver 2026-05-20 14:13:09,096 - DEBUG - Do not have enough data to verify VN in agent 2026-05-20 14:13:09,102 - DEBUG - VRF ids for VN ctest-vn4-86856081: {} 2026-05-20 14:13:09,103 - DEBUG - ====Verifying data for ctest-policy1-71284775 in API_Server ====== 2026-05-20 14:13:09,103 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-05-20 14:13:09,110 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6 2026-05-20 14:13:09,124 - DEBUG - Requesting: http://10.0.0.240:8082/project/80079949-8dcc-4baa-95c6-b1747b5f6034 2026-05-20 14:13:09,203 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/dc805733-721c-48a0-82e7-cff76d73f19e 2026-05-20 14:13:09,214 - INFO - Verified policy ctest-policy1-71284775 in API Server, Result: True 2026-05-20 14:13:09,215 - INFO - Done with setup and verification, moving onto test .. 2026-05-20 14:13:09,224 - INFO - Deleting VN ctest-vn4-86856081 2026-05-20 14:13:09,366 - DEBUG - Response for deleting network () 2026-05-20 14:13:09,367 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/9c089d82-1ca5-4b5b-88fd-884369f6a01c 2026-05-20 14:13:09,373 - DEBUG - Response Code: 404 2026-05-20 14:13:09,373 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-05-20 14:13:09,379 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6 2026-05-20 14:13:09,432 - DEBUG - Requesting: http://10.0.0.240:8082/project/80079949-8dcc-4baa-95c6-b1747b5f6034 2026-05-20 14:13:09,523 - INFO - Validated that VN ctest-vn4-86856081 is not found in API Server 2026-05-20 14:13:09,535 - DEBUG - VN ctest-vn4-86856081 is not present in Agent 10.0.0.240 2026-05-20 14:13:09,536 - INFO - Validated that VN ctest-vn4-86856081 is not in any agent 2026-05-20 14:13:09,555 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86856081 info 2026-05-20 14:13:09,581 - INFO - Deleted policy ctest-policy1-71284775 2026-05-20 14:13:09,758 - DEBUG - policy ctest-policy1-71284775 is not found in API Server 2026-05-20 14:13:10,027 - DEBUG - No XMPP flaps were noticed during the test
2026-05-20 14:13:10,027 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-20 14:13:10,028 - INFO - -------------------------------------------------------------------------------- 2026-05-20 14:13:10,322 - DEBUG - No XMPP flaps were noticed during the test
2026-05-20 14:13:10,322 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-20 14:13:10,322 - INFO - -------------------------------------------------------------------------------- 2026-05-20 14:13:11,687 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75511790, ID : 80079949-8dcc-4baa-95c6-b1747b5f6034