Red Hat Bugzilla – Bug 1277015
Host delete unsuccesful
Last modified: 2017-02-07 11:21:08 EST
Created attachment 1088459 [details]
Host delete failure
Description of problem:
Deleting an unprovisioned host fails with the error:
Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Required lock: read Conflicts with tasks: - https://sat-ha.cloud.lab.eng.bos.redhat.com/foreman_tasks/tasks/7ccfdea0-1c4e-479c-9162-a293b9eaab2b
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Create a Host via satellite and continue trying to provision it. If the provisioning fails for some reason, try to delete using the delete button. If the task is not completed, it fails with the above message.
Host cannot be deleted unless the tasks succeed.
If there is a failure, the host delete button should work.
This is the error message I recd when I tried to delete the host after successfully cancelling the build:
Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Required lock: read Conflicts with tasks: - https://satnode3.sysmgmt.bos.redhat.com/foreman_tasks/tasks/49645945-c928-4f62-a52e-9e2eaf5902c6
I haven't located another bug that specifically addresses this behavior; however, I also haven't had any luck reproducing on Satellite 6.2.
Are you able to reproduce this on Satellite 6.2?
If so, can I get you to provide details on the specific scenario as well as attach a foreman-debug?
If not, any objection to closing this bugzilla for now and we can re-open if the issue resurfaces?
The problem did not happen in 6.2. You can probably close this bug.
Thanks Balaji! I am going to close the bugzilla; however, feel free to re-open if the issue re-occurs.