Bug 1299069
Summary: | MICROSOFT scvmm power off operation not working | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | William Fitzgerald <wfitzger> | ||||
Component: | Providers | Assignee: | Bronagh Sorota <bsorota> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jeff Teehan <jteehan> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.5.0 | CC: | cpelland, jfrey, jhardy, jprause, mfeifer, obarenbo, simaishi, wfitzger | ||||
Target Milestone: | GA | Keywords: | ZStream | ||||
Target Release: | 5.6.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 5.6.0.1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1308663 (view as bug list) | Environment: | |||||
Last Closed: | 2016-06-29 15:30:50 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: | 1308663 | ||||||
Attachments: |
|
Description
William Fitzgerald
2016-01-15 21:16:36 UTC
*** Bug 1299067 has been marked as a duplicate of this bug. *** Bill, it looks like the logs are saying 'Error in CheckPreRetirement'. I'm just guessing, but it's possible that you can't retire a running VM, maybe? Can you try again, but stop the VM first? If it's a requirement that you be able to retire running VMs, we can look at that more. This problem is for the MSCVMM provider. We have multiple issues here. I needed to make changes to the schema to call the Pre_retirement and Check_pre_retirement methods for the MSCVMM provider (issue #1). https://bugzilla.redhat.com/show_bug.cgi?id=1297351 When they are called, if the vm is powered on it fails to power off the Vm. (issue #2, this ticket). https://bugzilla.redhat.com/show_bug.cgi?id=1299069 If the vm is powered off, the retirement fails when it runs the Remove_from_provider method. (issue #3) https://bugzilla.redhat.com/show_bug.cgi?id=1299071 The Error in the log is because it tried 100 times to stop the Vm and wasn't successful. You can find more information in BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1297351 Bill, Issues #2 and #3 are provider issues so I will comment on them. Support for deleting/destroying a VM on the SCVMM provider has not been implemented yet since this is part of retirement, this is why you see the error when you try to retire a VM. I will take ownership of this piece for SCVMM. I just successfully powered off 3 different VMs via the UI. Can you provide more details around the steps you followed, eg which VM? Does that VM power off OK via SCVMM itself (I sent you the SCVMM login details)? Is there an error in the log? thanks Created attachment 1117308 [details]
Retiring a VM in the MIQ UI
My Appliance: 10.8.99.208
Using the MIQ UI, I select the Vm (vm_status_retire). I click on the 'Lifecycle' button. Then I select 'Retire this VM'. I am attaching a screen shot.
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/9768c089c7a5d0b43820ff7fe095a330bf2f967e commit 9768c089c7a5d0b43820ff7fe095a330bf2f967e Author: Bronagh Sorota <bsorota> AuthorDate: Fri Jan 22 14:34:40 2016 -0500 Commit: Bronagh Sorota <bsorota> CommitDate: Fri Jan 22 14:34:40 2016 -0500 Implementation of the vm_destroy method required for SCVMM VM retirement https://bugzilla.redhat.com/show_bug.cgi?id=1299069 https://bugzilla.redhat.com/show_bug.cgi?id=1299071 app/models/manageiq/providers/microsoft/infra_manager.rb | 7 +++++++ 1 file changed, 7 insertions(+) New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/3b510bea21dab8d4a9320a0e622ba07cb40cbea0 commit 3b510bea21dab8d4a9320a0e622ba07cb40cbea0 Author: Bronagh Sorota <bsorota> AuthorDate: Thu Mar 31 14:26:55 2016 -0400 Commit: Bronagh Sorota <bsorota> CommitDate: Thu Mar 31 14:26:55 2016 -0400 SCVMM retirement: Power off the VM before deleting it, regardless of what the power status is. https://bugzilla.redhat.com/show_bug.cgi?id=1299069 app/models/manageiq/providers/microsoft/infra_manager.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) It is unclear to me why this BZ has the keyword "Zstream" set and at the same time has a target release of 5.6. I am going to treat it as an upstream BZ and move the status to POST. This has been working fine for the last several builds. I verified it using 5605 on https://10.16.7.169/vm_infra/explorer# Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1348 |