2026-07-18 15:38:20,881 - INFO - Domain Default found not creating 2026-07-18 15:38:21,051 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94807748 not found, creating it 2026-07-18 15:38:21,592 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94807748, ID : 5717633d-ac67-49da-bb1c-9bf285307f5c 2026-07-18 15:38:23,206 - INFO - ================================================================================ 2026-07-18 15:38:23,207 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 15:38:23,468 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-07-18 15:38:23,469 - INFO - Initial checks done. Running the testcase now 2026-07-18 15:38:23,469 - INFO - 2026-07-18 15:38:23,469 - INFO - ================================================================================ 2026-07-18 15:38:23,469 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 15:38:23,469 - 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-18 15:38:23,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-07-18 15:38:23,772 - INFO - Initial checks done. Running the testcase now 2026-07-18 15:38:23,772 - INFO - 2026-07-18 15:38:24,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916, 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-94807748:ctest-vn4-92119916, 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-94807748:ctest-vn4-92119916, 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-94807748:ctest-vn4-92119916, 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-18 15:38:24,711 - DEBUG - Response for create_network : {'network': {'id': '73050518-e817-4207-b242-3a56df95b905', 'name': 'ctest-vn4-92119916', 'tenant_id': '5717633dac6749dabb1c9bf285307f5c', 'project_id': '5717633dac6749dabb1c9bf285307f5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94807748', 'ctest-vn4-92119916'], 'port_security_enabled': True, 'description': ''}} 2026-07-18 15:38:24,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db60f9b6-38f6-498a-ac0f-4be8d0b308cc', 'name': '', 'tenant_id': '5717633dac6749dabb1c9bf285307f5c', 'network_id': '73050518-e817-4207-b242-3a56df95b905', 'ip_version': 4, 'cidr': '143.235.225.192/26', 'allocation_pools': [{'start': '143.235.225.194', 'end': '143.235.225.254'}], 'gateway_ip': '143.235.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.235.225.194', 'tags': [], 'project_id': '5717633dac6749dabb1c9bf285307f5c'}} 2026-07-18 15:38:25,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '724b9ae5-9438-4631-b2c6-05016bff34f3', 'name': '', 'tenant_id': '5717633dac6749dabb1c9bf285307f5c', 'network_id': '73050518-e817-4207-b242-3a56df95b905', 'ip_version': 6, 'cidr': '3bb6:2231:9cf6:e6a7:4cee:41c7::/96', 'allocation_pools': [{'start': '3bb6:2231:9cf6:e6a7:4cee:41c7:0:2', 'end': '3bb6:2231:9cf6:e6a7:4cee:41c7:ffff:fffe'}], 'gateway_ip': '3bb6:2231:9cf6:e6a7:4cee:41c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bb6:2231:9cf6:e6a7:4cee:41c7:0:2', 'tags': [], 'project_id': '5717633dac6749dabb1c9bf285307f5c'}} 2026-07-18 15:38:25,097 - INFO - Created VN ctest-vn4-92119916 2026-07-18 15:38:25,150 - DEBUG - VN ctest-vn4-92119916 UUID is 73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:25,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73050518-e817-4207-b242-3a56df95b905', 'name': 'ctest-vn4-92119916', 'tenant_id': '5717633dac6749dabb1c9bf285307f5c', 'project_id': '5717633dac6749dabb1c9bf285307f5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db60f9b6-38f6-498a-ac0f-4be8d0b308cc', '724b9ae5-9438-4631-b2c6-05016bff34f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94807748', 'ctest-vn4-92119916'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94807748', 'ctest-policy1-97298075']], 'subnet_ipam': [{'subnet_cidr': '143.235.225.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bb6:2231:9cf6:e6a7:4cee:41c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-18 15:38:25,534 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-18 15:38:25,864 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-18 15:38:25,892 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956 2026-07-18 15:38:25,907 - DEBUG - Requesting: http://10.0.0.38:8082/project/5717633d-ac67-49da-bb1c-9bf285307f5c 2026-07-18 15:38:25,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,026 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7be89ad4-68f0-470c-aa58-aeabf23de48b 2026-07-18 15:38:26,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 15:38:26,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,045 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,064 - INFO - Verified VN network id 11 for VN 73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,064 - INFO - Verifications in API Server for VN ctest-vn4-92119916 passed 2026-07-18 15:38:26,064 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,078 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,096 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7be89ad4-68f0-470c-aa58-aeabf23de48b 2026-07-18 15:38:26,112 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94807748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8288036293776458247', 'uuid-lslong': '12844893232006805765'}, 'enable': 'true', 'created': '2026-07-18T15:38:24', 'last-modified': '2026-07-18T15:38:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774247'} 2026-07-18 15:38:26,121 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 15:38:26,121 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92119916 passed 2026-07-18 15:38:26,121 - DEBUG - ====Verifying policy data for ctest-vn4-92119916 in API_Server ====== 2026-07-18 15:38:26,121 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-18 15:38:26,129 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956 2026-07-18 15:38:26,143 - DEBUG - Requesting: http://10.0.0.38:8082/project/5717633d-ac67-49da-bb1c-9bf285307f5c 2026-07-18 15:38:26,221 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73050518-e817-4207-b242-3a56df95b905 2026-07-18 15:38:26,232 - DEBUG - ==>Verifying data for policy with id: 085cab78-7e0e-40ae-a5e2-df179a83c1ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94807748', 'ctest-policy1-97298075'] 2026-07-18 15:38:26,232 - INFO - VN ctest-vn4-92119916 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-18 15:38:26,233 - DEBUG - Verifying the vn in opserver 2026-07-18 15:38:26,233 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916 virtual network link through opserver 10.0.0.38 2026-07-18 15:38:26,233 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-18 15:38:26,558 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-18 15:38:26,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916?flat'} 2026-07-18 15:38:26,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94807748:ctest-vn4-92119916 is found in opserver 2026-07-18 15:38:26,616 - DEBUG - Do not have enough data to verify VN in agent 2026-07-18 15:38:26,622 - DEBUG - VRF ids for VN ctest-vn4-92119916: {} 2026-07-18 15:38:26,622 - DEBUG - ====Verifying data for ctest-policy1-97298075 in API_Server ====== 2026-07-18 15:38:26,622 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-18 15:38:26,629 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956 2026-07-18 15:38:26,640 - DEBUG - Requesting: http://10.0.0.38:8082/project/5717633d-ac67-49da-bb1c-9bf285307f5c 2026-07-18 15:38:26,717 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/085cab78-7e0e-40ae-a5e2-df179a83c1ae 2026-07-18 15:38:26,730 - INFO - Verified policy ctest-policy1-97298075 in API Server, Result: True 2026-07-18 15:38:26,730 - INFO - Done with setup and verification, moving onto test .. 2026-07-18 15:38:26,739 - INFO - Deleting VN ctest-vn4-92119916 2026-07-18 15:38:26,896 - DEBUG - Response for deleting network () 2026-07-18 15:38:26,896 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/823c2639-b09e-40f8-8b2d-253a8fba7d07 2026-07-18 15:38:26,902 - DEBUG - Response Code: 404 2026-07-18 15:38:26,902 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-18 15:38:26,909 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e97d3d97-9f93-43ea-9879-b3ebd1c7f956 2026-07-18 15:38:26,964 - DEBUG - Requesting: http://10.0.0.38:8082/project/5717633d-ac67-49da-bb1c-9bf285307f5c 2026-07-18 15:38:27,036 - INFO - Validated that VN ctest-vn4-92119916 is not found in API Server 2026-07-18 15:38:27,047 - DEBUG - VN ctest-vn4-92119916 is not present in Agent 10.0.0.38 2026-07-18 15:38:27,047 - INFO - Validated that VN ctest-vn4-92119916 is not in any agent 2026-07-18 15:38:27,063 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92119916 info 2026-07-18 15:38:27,092 - INFO - Deleted policy ctest-policy1-97298075 2026-07-18 15:38:27,261 - DEBUG - policy ctest-policy1-97298075 is not found in API Server 2026-07-18 15:38:27,520 - DEBUG - No XMPP flaps were noticed during the test 2026-07-18 15:38:27,520 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-18 15:38:27,520 - INFO - -------------------------------------------------------------------------------- 2026-07-18 15:38:27,827 - DEBUG - No XMPP flaps were noticed during the test 2026-07-18 15:38:27,827 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-18 15:38:27,827 - INFO - -------------------------------------------------------------------------------- 2026-07-18 15:38:28,559 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94807748, ID : 5717633d-ac67-49da-bb1c-9bf285307f5c