Bug 1351156

Summary: Unable to delete a VM created by RHEV ComputeResource if it is running.
Product: Red Hat Satellite Reporter: John Matthews <jmatthew>
Component: Compute ResourcesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: medium    
Version: UnspecifiedCC: bbuckingham, inecas, ohadlevy
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1351158 (view as bug list) Environment:
Last Closed: 2016-07-26 14:55:56 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1212602, 1351158    

Description John Matthews 2016-06-29 11:25:05 UTC
Description of problem:

Unable to delete a running VM from Hosts.

VM is created on RHEV through a ComputeResource.

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

Seen with Sat 6.2 


How reproducible:
Intermittent, happens on my setups 90% or more of time, but others on team have seen success.


Steps to Reproduce:
1. Launch a VM on RHEV through a compute resource
2. From the Sat WebUI Hosts, click on the host and select Delete
3. See error


To work around this,
 - manually log into RHEV and power down the VM
 - once it is off then you can delete from Sat or if you previously failed you need to find the task and resume it

Actual results:

Error: Failed to destroy a compute rhev4beta1-RHEV (RHEV) instance rhev4beta1-cfme.example.com: Cannot remove VM. VM is running.

Expected results:

VM is deleted

Additional info:

Comment 3 Ohad Levy 2016-07-04 06:50:01 UTC
RHEV 4.x is out of scope and should be tracked separately. as a side note, this is already being resolved and tracked at http://projects.theforeman.org/issues/15560

Comment 5 John Matthews 2016-07-05 12:50:14 UTC
I've seen this behavior both with Sat 6.1 and Sat 6.2, have seen it with RHEV 3.5 and 3.6.  We haven't moved to RHEV 4 Beta yet.

Comment 6 Ivan Necas 2016-07-26 14:55:56 UTC

*** This bug has been marked as a duplicate of bug 1344910 ***