2026-10-21 15:36:51,308 - INFO - Domain Default found not creating 2026-10-21 15:36:51,541 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22764896 not found, creating it 2026-10-21 15:36:52,085 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22764896, ID : e4c6adfb-1a78-410c-8a71-6657dda9fd83 2026-10-21 15:36:54,022 - INFO - ================================================================================ 2026-10-21 15:36:54,022 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 15:36:54,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.25': '0'}} with 2026-10-21 15:36:54,297 - INFO - Initial checks done. Running the testcase now 2026-10-21 15:36:54,298 - INFO - 2026-10-21 15:36:54,298 - INFO - ================================================================================ 2026-10-21 15:36:54,298 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 15:36:54,298 - 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-10-21 15:36:54,594 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.25': '0'}} with 2026-10-21 15:36:54,594 - INFO - Initial checks done. Running the testcase now 2026-10-21 15:36:54,594 - INFO - 2026-10-21 15:36:55,054 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843, 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-22764896:ctest-vn4-55472843, 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-22764896:ctest-vn4-55472843, 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-22764896:ctest-vn4-55472843, 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-10-21 15:36:55,651 - DEBUG - Response for create_network : {'network': {'id': 'df1f8332-e005-4f6c-9bee-eb3553b3bed3', 'name': 'ctest-vn4-55472843', 'tenant_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'project_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22764896', 'ctest-vn4-55472843'], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:36:55,867 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddb6a8bc-a26b-4eec-a86d-e5047070704d', 'name': '', 'tenant_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'network_id': 'df1f8332-e005-4f6c-9bee-eb3553b3bed3', 'ip_version': 4, 'cidr': '84.207.17.0/26', 'allocation_pools': [{'start': '84.207.17.2', 'end': '84.207.17.62'}], 'gateway_ip': '84.207.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.207.17.2', 'tags': [], 'project_id': 'e4c6adfb1a78410c8a716657dda9fd83'}} 2026-10-21 15:36:56,068 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7325c35-9208-4341-afb7-ccb82b1bb26e', 'name': '', 'tenant_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'network_id': 'df1f8332-e005-4f6c-9bee-eb3553b3bed3', 'ip_version': 6, 'cidr': '3783:1611:9b46:bf46:2b94:63eb::/96', 'allocation_pools': [{'start': '3783:1611:9b46:bf46:2b94:63eb:0:2', 'end': '3783:1611:9b46:bf46:2b94:63eb:ffff:fffe'}], 'gateway_ip': '3783:1611:9b46:bf46:2b94:63eb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3783:1611:9b46:bf46:2b94:63eb:0:2', 'tags': [], 'project_id': 'e4c6adfb1a78410c8a716657dda9fd83'}} 2026-10-21 15:36:56,089 - INFO - Created VN ctest-vn4-55472843 2026-10-21 15:36:56,142 - DEBUG - VN ctest-vn4-55472843 UUID is df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:56,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df1f8332-e005-4f6c-9bee-eb3553b3bed3', 'name': 'ctest-vn4-55472843', 'tenant_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'project_id': 'e4c6adfb1a78410c8a716657dda9fd83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ddb6a8bc-a26b-4eec-a86d-e5047070704d', 'e7325c35-9208-4341-afb7-ccb82b1bb26e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22764896', 'ctest-vn4-55472843'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22764896', 'ctest-policy1-25742359']], 'subnet_ipam': [{'subnet_cidr': '84.207.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3783:1611:9b46:bf46:2b94:63eb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:36:56,566 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:36:56,956 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:36:56,993 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:36:57,009 - DEBUG - Requesting: http://10.0.0.186:8082/project/e4c6adfb-1a78-410c-8a71-6657dda9fd83 2026-10-21 15:36:57,097 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,115 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,130 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:57,140 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:57,149 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/4b7baf06-e46f-41c3-8e7b-2208a127a9e8 2026-10-21 15:36:57,157 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 15:36:57,158 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,171 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:57,190 - INFO - Verified VN network id 12 for VN df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,191 - INFO - Verifications in API Server for VN ctest-vn4-55472843 passed 2026-10-21 15:36:57,191 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,203 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:57,213 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:57,224 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/4b7baf06-e46f-41c3-8e7b-2208a127a9e8 2026-10-21 15:36:57,239 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22764896', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16077713449266007916', 'uuid-lslong': '11236176734606048979'}, 'enable': 'true', 'created': '2026-10-21T15:36:55', 'last-modified': '2026-10-21T15:36:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885322'} 2026-10-21 15:36:57,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 15:36:57,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55472843 passed 2026-10-21 15:36:57,251 - DEBUG - ====Verifying policy data for ctest-vn4-55472843 in API_Server ====== 2026-10-21 15:36:57,251 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:36:57,258 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:36:57,272 - DEBUG - Requesting: http://10.0.0.186:8082/project/e4c6adfb-1a78-410c-8a71-6657dda9fd83 2026-10-21 15:36:57,361 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/df1f8332-e005-4f6c-9bee-eb3553b3bed3 2026-10-21 15:36:57,375 - DEBUG - ==>Verifying data for policy with id: 1ce1e928-414b-44af-8761-9bceb9b3cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22764896', 'ctest-policy1-25742359'] 2026-10-21 15:36:57,375 - INFO - VN ctest-vn4-55472843 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-21 15:36:57,375 - DEBUG - Verifying the vn in opserver 2026-10-21 15:36:57,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843 virtual network link through opserver 10.0.0.186 2026-10-21 15:36:57,375 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-10-21 15:36:57,760 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-10-21 15:36:57,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843?flat'} 2026-10-21 15:36:57,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22764896:ctest-vn4-55472843 is found in opserver 2026-10-21 15:36:57,845 - DEBUG - Do not have enough data to verify VN in agent 2026-10-21 15:36:57,852 - DEBUG - VRF ids for VN ctest-vn4-55472843: {} 2026-10-21 15:36:57,853 - DEBUG - ====Verifying data for ctest-policy1-25742359 in API_Server ====== 2026-10-21 15:36:57,853 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:36:57,861 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:36:57,875 - DEBUG - Requesting: http://10.0.0.186:8082/project/e4c6adfb-1a78-410c-8a71-6657dda9fd83 2026-10-21 15:36:57,965 - DEBUG - Requesting: http://10.0.0.186:8082/network-policy/1ce1e928-414b-44af-8761-9bceb9b3cb5c 2026-10-21 15:36:57,980 - INFO - Verified policy ctest-policy1-25742359 in API Server, Result: True 2026-10-21 15:36:57,981 - INFO - Done with setup and verification, moving onto test .. 2026-10-21 15:36:57,994 - INFO - Deleting VN ctest-vn4-55472843 2026-10-21 15:36:58,157 - DEBUG - Response for deleting network () 2026-10-21 15:36:58,157 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/1eaa5d4d-4447-4627-972b-26d863097152 2026-10-21 15:36:58,166 - DEBUG - Response Code: 404 2026-10-21 15:36:58,166 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:36:58,174 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:36:58,238 - DEBUG - Requesting: http://10.0.0.186:8082/project/e4c6adfb-1a78-410c-8a71-6657dda9fd83 2026-10-21 15:36:58,325 - INFO - Validated that VN ctest-vn4-55472843 is not found in API Server 2026-10-21 15:36:58,339 - DEBUG - VN ctest-vn4-55472843 is not present in Agent 10.0.0.186 2026-10-21 15:36:58,339 - INFO - Validated that VN ctest-vn4-55472843 is not in any agent 2026-10-21 15:36:58,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55472843 info 2026-10-21 15:36:58,393 - INFO - Deleted policy ctest-policy1-25742359 2026-10-21 15:36:58,582 - DEBUG - policy ctest-policy1-25742359 is not found in API Server 2026-10-21 15:36:58,862 - DEBUG - No XMPP flaps were noticed during the test
2026-10-21 15:36:58,862 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-21 15:36:58,862 - INFO - -------------------------------------------------------------------------------- 2026-10-21 15:36:59,157 - DEBUG - No XMPP flaps were noticed during the test
2026-10-21 15:36:59,158 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-21 15:36:59,158 - INFO - -------------------------------------------------------------------------------- 2026-10-21 15:36:59,971 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22764896, ID : e4c6adfb-1a78-410c-8a71-6657dda9fd83