Symptoms

Attempt to delete the Hardware Node fails with the error in Provider Control Panel:

Host deletion failed There are customer services installed on the host. Try to remove them first. 

The following error is shown in /var/log/pa/core.log on the Management Node:

'SELECT 1 FROM dual WHERE EXISTS (SELECT 1 FROM aps_dedicated_service_instances WHERE vps_host_id =  ? AND status !=  ? AND NOT EXISTS (SELECT 1 FROM aps_dedicated_service_instances WHERE app_instance_id = si.app_instance_id AND service_instance_id < si.service_instance_id))'($0 = 18, $1 = 'x')
Apr  1 16:17:47 DC4HP14PAROSS01 : DBG [1:2232:15ac:1 1:2232:bb8 Kernel]: STMT [Con:58, 0C80F938 txn:3785074] ' SELECT app_instance_id FROM aps_external_application_instances WHERE host_id =  ?'($0 = 18)
Apr  1 16:17:47 DC4HP14PAROSS01 : DBG [1:2232:15ac:1 1:3524:10f4 lib]: [txn:3785074 Plesk::APS::APSManager_impl::onPrepareRemoveHost] {module_id="HostManager"; code="40"} Host #18 is busy by services that are controlled by SC #27.

Cause

This host was used for provisioning of some 'External System' APS, and related records were left in OA system database.

Resolution

Please contact TAM or Pooled Technical Associates (pta@odin.com) to resolve the issue.

Internal content

Link on internal Article