2026-08-17 15:56:03,437 - INFO - Domain Default found not creating 2026-08-17 15:56:03,629 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96894478 not found, creating it 2026-08-17 15:56:04,139 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96894478, ID : 9047f7a5-9578-4257-9a3c-544999a3672f 2026-08-17 15:56:05,730 - INFO - ================================================================================ 2026-08-17 15:56:05,730 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 15:56:06,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-17 15:56:06,006 - INFO - Initial checks done. Running the testcase now 2026-08-17 15:56:06,006 - INFO - 2026-08-17 15:56:06,006 - INFO - ================================================================================ 2026-08-17 15:56:06,006 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 15:56:06,006 - 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-08-17 15:56:06,310 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-17 15:56:06,310 - INFO - Initial checks done. Running the testcase now 2026-08-17 15:56:06,310 - INFO - 2026-08-17 15:56:06,719 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007, 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-96894478:ctest-vn4-21113007, 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-96894478:ctest-vn4-21113007, 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-96894478:ctest-vn4-21113007, 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-08-17 15:56:07,289 - DEBUG - Response for create_network : {'network': {'id': '6b8fde1b-652e-4599-801a-081957e5e858', 'name': 'ctest-vn4-21113007', 'tenant_id': '9047f7a5957842579a3c544999a3672f', 'project_id': '9047f7a5957842579a3c544999a3672f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96894478', 'ctest-vn4-21113007'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 15:56:07,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '39a98b1c-10ce-48b1-84b1-46a0139bd853', 'name': '', 'tenant_id': '9047f7a5957842579a3c544999a3672f', 'network_id': '6b8fde1b-652e-4599-801a-081957e5e858', 'ip_version': 4, 'cidr': '36.35.241.192/26', 'allocation_pools': [{'start': '36.35.241.194', 'end': '36.35.241.254'}], 'gateway_ip': '36.35.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.35.241.194', 'tags': [], 'project_id': '9047f7a5957842579a3c544999a3672f'}} 2026-08-17 15:56:07,790 - DEBUG - Response for create_subnet : {'subnet': {'id': '899a2ff9-a25e-4e1f-ad0a-467deb47fcf2', 'name': '', 'tenant_id': '9047f7a5957842579a3c544999a3672f', 'network_id': '6b8fde1b-652e-4599-801a-081957e5e858', 'ip_version': 6, 'cidr': '215b:2afb:9759:9e6a:c8c6:35b2::/96', 'allocation_pools': [{'start': '215b:2afb:9759:9e6a:c8c6:35b2:0:2', 'end': '215b:2afb:9759:9e6a:c8c6:35b2:ffff:fffe'}], 'gateway_ip': '215b:2afb:9759:9e6a:c8c6:35b2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215b:2afb:9759:9e6a:c8c6:35b2:0:2', 'tags': [], 'project_id': '9047f7a5957842579a3c544999a3672f'}} 2026-08-17 15:56:07,811 - INFO - Created VN ctest-vn4-21113007 2026-08-17 15:56:07,868 - DEBUG - VN ctest-vn4-21113007 UUID is 6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b8fde1b-652e-4599-801a-081957e5e858', 'name': 'ctest-vn4-21113007', 'tenant_id': '9047f7a5957842579a3c544999a3672f', 'project_id': '9047f7a5957842579a3c544999a3672f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39a98b1c-10ce-48b1-84b1-46a0139bd853', '899a2ff9-a25e-4e1f-ad0a-467deb47fcf2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96894478', 'ctest-vn4-21113007'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96894478', 'ctest-policy1-63364791']], 'subnet_ipam': [{'subnet_cidr': '36.35.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '215b:2afb:9759:9e6a:c8c6:35b2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 15:56:08,260 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-17 15:56:08,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-17 15:56:08,631 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946 2026-08-17 15:56:08,646 - DEBUG - Requesting: http://10.0.0.38:8082/project/9047f7a5-9578-4257-9a3c-544999a3672f 2026-08-17 15:56:08,747 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:08,784 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:08,793 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41529380-76b3-4480-b15f-530ad7ed9c5c 2026-08-17 15:56:08,800 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 15:56:08,800 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,810 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:08,825 - INFO - Verified VN network id 11 for VN 6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,825 - INFO - Verifications in API Server for VN ctest-vn4-21113007 passed 2026-08-17 15:56:08,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,837 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:08,844 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:08,852 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41529380-76b3-4480-b15f-530ad7ed9c5c 2026-08-17 15:56:08,867 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96894478', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7750657692970927513', 'uuid-lslong': '9230699291191142488'}, 'enable': 'true', 'created': '2026-08-17T15:56:07', 'last-modified': '2026-08-17T15:56:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.808813'} 2026-08-17 15:56:08,875 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 15:56:08,875 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21113007 passed 2026-08-17 15:56:08,875 - DEBUG - ====Verifying policy data for ctest-vn4-21113007 in API_Server ====== 2026-08-17 15:56:08,875 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-17 15:56:08,882 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946 2026-08-17 15:56:08,894 - DEBUG - Requesting: http://10.0.0.38:8082/project/9047f7a5-9578-4257-9a3c-544999a3672f 2026-08-17 15:56:08,971 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b8fde1b-652e-4599-801a-081957e5e858 2026-08-17 15:56:08,982 - DEBUG - ==>Verifying data for policy with id: f2d80170-ced1-413b-a23a-66ee97a12555, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96894478', 'ctest-policy1-63364791'] 2026-08-17 15:56:08,983 - INFO - VN ctest-vn4-21113007 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 15:56:08,983 - DEBUG - Verifying the vn in opserver 2026-08-17 15:56:08,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007 virtual network link through opserver 10.0.0.38 2026-08-17 15:56:08,983 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-17 15:56:09,315 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-17 15:56:09,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007?flat'} 2026-08-17 15:56:09,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96894478:ctest-vn4-21113007 is found in opserver 2026-08-17 15:56:09,417 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 15:56:09,423 - DEBUG - VRF ids for VN ctest-vn4-21113007: {} 2026-08-17 15:56:09,423 - DEBUG - ====Verifying data for ctest-policy1-63364791 in API_Server ====== 2026-08-17 15:56:09,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-17 15:56:09,438 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946 2026-08-17 15:56:09,496 - DEBUG - Requesting: http://10.0.0.38:8082/project/9047f7a5-9578-4257-9a3c-544999a3672f 2026-08-17 15:56:09,618 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f2d80170-ced1-413b-a23a-66ee97a12555 2026-08-17 15:56:09,644 - INFO - Verified policy ctest-policy1-63364791 in API Server, Result: True 2026-08-17 15:56:09,645 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 15:56:09,664 - INFO - Deleting VN ctest-vn4-21113007 2026-08-17 15:56:09,924 - DEBUG - Response for deleting network () 2026-08-17 15:56:09,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8e8670f-e900-4a67-a83e-41ee64de7a0d 2026-08-17 15:56:09,934 - DEBUG - Response Code: 404 2026-08-17 15:56:09,934 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-17 15:56:09,940 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946 2026-08-17 15:56:09,999 - DEBUG - Requesting: http://10.0.0.38:8082/project/9047f7a5-9578-4257-9a3c-544999a3672f 2026-08-17 15:56:10,072 - INFO - Validated that VN ctest-vn4-21113007 is not found in API Server 2026-08-17 15:56:10,086 - DEBUG - VN ctest-vn4-21113007 is not present in Agent 10.0.0.38 2026-08-17 15:56:10,086 - INFO - Validated that VN ctest-vn4-21113007 is not in any agent 2026-08-17 15:56:10,102 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21113007 info 2026-08-17 15:56:10,133 - INFO - Deleted policy ctest-policy1-63364791 2026-08-17 15:56:10,300 - DEBUG - policy ctest-policy1-63364791 is not found in API Server 2026-08-17 15:56:10,574 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 15:56:10,574 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-17 15:56:10,575 - INFO - -------------------------------------------------------------------------------- 2026-08-17 15:56:10,855 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 15:56:10,855 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-17 15:56:10,855 - INFO - -------------------------------------------------------------------------------- 2026-08-17 15:56:11,580 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96894478, ID : 9047f7a5-9578-4257-9a3c-544999a3672f