Bug 1564582

Summary: Delete non-existent hosts causes stuck deletion tasks on Satellite 6.2
Product: Red Hat CloudForms Management Engine Reporter: Ash Westbrook <awestbro>
Component: ControlAssignee: Greg McCullough <gmccullo>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: awestbro, cpelland, itewksbu, obarenbo
Target Milestone: GA   
Target Release: 5.8.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 14:38:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ash Westbrook 2018-04-06 16:59:03 UTC
Description of problem:

Roughly 30 tasks for 'Destroy Content Host' are in a paused/error state. Resuming the jobs does not help.  Exception: RestClient::InternalServerError: 500 Internal Server Error.

This is caused when VMs that were created by CloudForms and then are deleted from CloudForms cause stuck state in Satellite 6.

Version-Release number of selected component (if applicable):

CFME 5.7
Satellite 6.2.14

How reproducible:

Always


Additional info:

Attached reports from the case, 02066982.

Comment 4 Ian Tewksbury 2018-04-06 18:46:20 UTC
Updated Description:

Satellite has stuck tasks.
Those stuck tasks are host delete tasks.
The hosts that those tasks are trying to delete are are deleted.
It is unclear whether the stuck task deleted the host and then got stuck, or the host was otherwise already deleted and then a new task was created to delete the same host and then it got stuck.

CFME only comes into the picture because we have automate that calls the Satellite API to delete host records on VM retirement, thats it, this issue has nothing to do with CFME. It could be that CFME ends up trying to delete the same host twice, but that is inconsequential. Whether or not CFME tries to delete the same host twice using the API, Satellite shouldn't have stuck tasks, period. This is a satellite task issue.

Comment 7 Greg McCullough 2018-04-09 14:38:45 UTC
Closing as not-a-bug based on comments above.