2026-06-08 10:22:51,068 - INFO - Domain Default found not creating 2026-06-08 10:22:51,296 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50641942 not found, creating it 2026-06-08 10:22:51,801 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50641942, ID : 2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6 2026-06-08 10:22:53,526 - INFO - ================================================================================ 2026-06-08 10:22:53,526 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 10:22:53,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-08 10:22:53,784 - INFO - Initial checks done. Running the testcase now 2026-06-08 10:22:53,785 - INFO - 2026-06-08 10:22:53,785 - INFO - ================================================================================ 2026-06-08 10:22:53,785 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 10:22:53,785 - 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-06-08 10:22:54,095 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-08 10:22:54,095 - INFO - Initial checks done. Running the testcase now 2026-06-08 10:22:54,095 - INFO - 2026-06-08 10:22:54,497 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051, 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-50641942:ctest-vn4-79520051, 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-50641942:ctest-vn4-79520051, 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-50641942:ctest-vn4-79520051, 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-06-08 10:22:55,034 - DEBUG - Response for create_network : {'network': {'id': 'b6682782-7bc5-4417-be73-580656feb4cf', 'name': 'ctest-vn4-79520051', 'tenant_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'project_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50641942', 'ctest-vn4-79520051'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 10:22:55,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '3707141c-3197-44f5-8dbc-7a17c39f626f', 'name': '', 'tenant_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'network_id': 'b6682782-7bc5-4417-be73-580656feb4cf', 'ip_version': 4, 'cidr': '153.164.180.128/26', 'allocation_pools': [{'start': '153.164.180.130', 'end': '153.164.180.190'}], 'gateway_ip': '153.164.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.164.180.130', 'tags': [], 'project_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6'}} 2026-06-08 10:22:55,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '330e1ce8-6e2d-4825-bfe9-2219d3d85dc3', 'name': '', 'tenant_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'network_id': 'b6682782-7bc5-4417-be73-580656feb4cf', 'ip_version': 6, 'cidr': '21fe:c26f:95fe:9746:ffd5:9ea1::/96', 'allocation_pools': [{'start': '21fe:c26f:95fe:9746:ffd5:9ea1:0:2', 'end': '21fe:c26f:95fe:9746:ffd5:9ea1:ffff:fffe'}], 'gateway_ip': '21fe:c26f:95fe:9746:ffd5:9ea1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21fe:c26f:95fe:9746:ffd5:9ea1:0:2', 'tags': [], 'project_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6'}} 2026-06-08 10:22:55,507 - INFO - Created VN ctest-vn4-79520051 2026-06-08 10:22:55,559 - DEBUG - VN ctest-vn4-79520051 UUID is b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:55,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6682782-7bc5-4417-be73-580656feb4cf', 'name': 'ctest-vn4-79520051', 'tenant_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'project_id': '2db5f8116b13455eb0ea8bb1bfc1b2e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3707141c-3197-44f5-8dbc-7a17c39f626f', '330e1ce8-6e2d-4825-bfe9-2219d3d85dc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50641942', 'ctest-vn4-79520051'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50641942', 'ctest-policy1-38698336']], 'subnet_ipam': [{'subnet_cidr': '153.164.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21fe:c26f:95fe:9746:ffd5:9ea1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 10:22:55,939 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 10:22:56,281 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 10:22:56,315 - DEBUG - Requesting: http://10.0.0.33:8082/domain/39e3d44c-e320-48e2-a357-b7e5e23d2031 2026-06-08 10:22:56,329 - DEBUG - Requesting: http://10.0.0.33:8082/project/2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6 2026-06-08 10:22:56,405 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,419 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,430 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:56,438 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:56,446 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6d7560e-004e-4a58-bed6-37341904e0b1 2026-06-08 10:22:56,454 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 10:22:56,454 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,466 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:56,483 - INFO - Verified VN network id 12 for VN b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,483 - INFO - Verifications in API Server for VN ctest-vn4-79520051 passed 2026-06-08 10:22:56,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,496 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:56,505 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:56,513 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6d7560e-004e-4a58-bed6-37341904e0b1 2026-06-08 10:22:56,526 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50641942', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13143798953856549911', 'uuid-lslong': '13723409273780614351'}, 'enable': 'true', 'created': '2026-06-08T10:22:55', 'last-modified': '2026-06-08T10:22:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777405'} 2026-06-08 10:22:56,532 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 10:22:56,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79520051 passed 2026-06-08 10:22:56,533 - DEBUG - ====Verifying policy data for ctest-vn4-79520051 in API_Server ====== 2026-06-08 10:22:56,533 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 10:22:56,539 - DEBUG - Requesting: http://10.0.0.33:8082/domain/39e3d44c-e320-48e2-a357-b7e5e23d2031 2026-06-08 10:22:56,552 - DEBUG - Requesting: http://10.0.0.33:8082/project/2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6 2026-06-08 10:22:56,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6682782-7bc5-4417-be73-580656feb4cf 2026-06-08 10:22:56,649 - DEBUG - ==>Verifying data for policy with id: eaf28b42-7a7f-4b1d-8615-c59309bb83e4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50641942', 'ctest-policy1-38698336'] 2026-06-08 10:22:56,649 - INFO - VN ctest-vn4-79520051 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 10:22:56,649 - DEBUG - Verifying the vn in opserver 2026-06-08 10:22:56,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051 virtual network link through opserver 10.0.0.33 2026-06-08 10:22:56,649 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 10:22:56,990 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 10:22:57,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051?flat'} 2026-06-08 10:22:57,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50641942:ctest-vn4-79520051 is found in opserver 2026-06-08 10:22:57,072 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 10:22:57,077 - DEBUG - VRF ids for VN ctest-vn4-79520051: {} 2026-06-08 10:22:57,077 - DEBUG - ====Verifying data for ctest-policy1-38698336 in API_Server ====== 2026-06-08 10:22:57,078 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 10:22:57,084 - DEBUG - Requesting: http://10.0.0.33:8082/domain/39e3d44c-e320-48e2-a357-b7e5e23d2031 2026-06-08 10:22:57,098 - DEBUG - Requesting: http://10.0.0.33:8082/project/2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6 2026-06-08 10:22:57,174 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/eaf28b42-7a7f-4b1d-8615-c59309bb83e4 2026-06-08 10:22:57,185 - INFO - Verified policy ctest-policy1-38698336 in API Server, Result: True 2026-06-08 10:22:57,185 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 10:22:57,195 - INFO - Deleting VN ctest-vn4-79520051 2026-06-08 10:22:57,336 - DEBUG - Response for deleting network () 2026-06-08 10:22:57,336 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f66ce3f6-1262-4d90-996f-995f215c8a8f 2026-06-08 10:22:57,342 - DEBUG - Response Code: 404 2026-06-08 10:22:57,342 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 10:22:57,348 - DEBUG - Requesting: http://10.0.0.33:8082/domain/39e3d44c-e320-48e2-a357-b7e5e23d2031 2026-06-08 10:22:57,409 - DEBUG - Requesting: http://10.0.0.33:8082/project/2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6 2026-06-08 10:22:57,488 - INFO - Validated that VN ctest-vn4-79520051 is not found in API Server 2026-06-08 10:22:57,500 - DEBUG - VN ctest-vn4-79520051 is not present in Agent 10.0.0.33 2026-06-08 10:22:57,500 - INFO - Validated that VN ctest-vn4-79520051 is not in any agent 2026-06-08 10:22:57,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79520051 info 2026-06-08 10:22:57,549 - INFO - Deleted policy ctest-policy1-38698336 2026-06-08 10:22:57,722 - DEBUG - policy ctest-policy1-38698336 is not found in API Server 2026-06-08 10:22:57,978 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 10:22:57,978 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-08 10:22:57,978 - INFO - -------------------------------------------------------------------------------- 2026-06-08 10:22:58,281 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 10:22:58,281 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-08 10:22:58,281 - INFO - -------------------------------------------------------------------------------- 2026-06-08 10:22:59,046 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50641942, ID : 2db5f811-6b13-455e-b0ea-8bb1bfc1b2e6