Bug 1297351 - Retire vm doesn't work on scvmm provider
Summary: Retire vm doesn't work on scvmm provider
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: William Fitzgerald
QA Contact: Jeff Teehan
URL:
Whiteboard: scvmm:vm:retirement
: 1306830 1309825 (view as bug list)
Depends On:
Blocks: 1303097 1309825
TreeView+ depends on / blocked
 
Reported: 2016-01-11 10:11 UTC by Taras Lehinevych
Modified: 2019-10-10 10:51 UTC (History)
13 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1303097 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:27:37 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
SCVMM VM status (136.21 KB, image/png)
2016-01-11 10:11 UTC, Taras Lehinevych
no flags Details
evm.log (5.96 MB, text/plain)
2016-01-12 11:41 UTC, Taras Lehinevych
no flags Details
automation.log (939.77 KB, text/plain)
2016-01-12 11:42 UTC, Taras Lehinevych
no flags Details
Model change that I made for Microsoft message (1.70 MB, image/png)
2016-01-21 21:38 UTC, William Fitzgerald
no flags Details
Model change that I made for Microsoft message (1.37 MB, image/png)
2016-01-21 21:39 UTC, William Fitzgerald
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Taras Lehinevych 2016-01-11 10:11:37 UTC
Created attachment 1113569 [details]
SCVMM VM status

Description of problem:
When you retire vm on scvmm provider the power state of vm should be off/stopped what means that vm isn't running, however only the status of vm is change to retired. Please take a look at screenshot.

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

How reproducible:
Always

Steps to Reproduce:
1. Set up infrastructure provider Microsoft System Center VMM
2. Open any virtual machine
3. Press Lifecycle -> Retire this VM
5. Wait a little bit and check the status of vm and power state 

Actual results:
The status of vm is Retired but power state is on

Expected results:
The power state of vm should be off, also cfme shouldn't allow vm to start/power on

Additional info:
The vm navigation tree update status of vm after reload, so please press on "All VMs & Templates" to update statuses.

Comment 2 Greg McCullough 2016-01-11 16:03:28 UTC
Bill - Please work with Tina on this issue and if you need assistance from the provider side contact DanB.

Comment 3 William Fitzgerald 2016-01-11 17:08:48 UTC
Taras,

Can you please provide the EVM and Automation logs.

Thanks

Bill

Comment 4 William Fitzgerald 2016-01-11 22:17:32 UTC
Could we please also have the appliance information ?

Comment 5 Taras Lehinevych 2016-01-12 11:41:53 UTC
Created attachment 1113909 [details]
evm.log

Comment 6 Taras Lehinevych 2016-01-12 11:42:33 UTC
Created attachment 1113910 [details]
automation.log

Comment 7 Taras Lehinevych 2016-01-12 11:44:37 UTC
William, 

Appliance - https://10.16.5.111
VM name - vm_status_retire

The logs are attached.

Comment 8 William Fitzgerald 2016-01-12 22:52:23 UTC
I did some testing and I came up with the same results you did. 

I have some questions for you:

1. How did you provision this Vm?
2. Can I retire this Vm?

Thanks

Billy

Comment 9 Taras Lehinevych 2016-01-13 10:15:02 UTC
William,

I cloned this vm (vm_status_retire) based on vm called azureone on the provider side (scvmm). Also in my previous tests I provision vm from template "win7pro64 base" and result was the same. 

You can do whatever you need with this vm. 

Regards, 
Taras

Comment 11 William Fitzgerald 2016-01-15 21:34:15 UTC
Found multiple problems with retirement of microsoft svcmm provider.

I opened the following provider issues: 

https://bugzilla.redhat.com/show_bug.cgi?id=1299069
https://bugzilla.redhat.com/show_bug.cgi?id=1299071

Currently working on Automate retirement model changes.

Comment 12 William Fitzgerald 2016-01-21 21:38:10 UTC
Created attachment 1117013 [details]
Model change that I made for Microsoft message

Comment 13 William Fitzgerald 2016-01-21 21:39:08 UTC
Created attachment 1117014 [details]
Model change that I made for Microsoft message

Comment 15 CFME Bot 2016-01-29 20:11:24 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/b4ceb77b7cf006a983f28e16dab1159434e50afe

commit b4ceb77b7cf006a983f28e16dab1159434e50afe
Author:     Bill Fitzgerald <wfitzger>
AuthorDate: Tue Jan 26 15:10:55 2016 -0500
Commit:     Bill Fitzgerald <wfitzger>
CommitDate: Tue Jan 26 17:10:11 2016 -0500

    Change Infrastructure retirement for Microsoft vendor to call generic
    pre_retirement and check_pre_retirement methods.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1297351

 .../VM/Retirement/StateMachines/Methods.class/checkpreretirement.yaml   | 2 ++
 .../VM/Retirement/StateMachines/Methods.class/preretirement.yaml        | 2 ++
 2 files changed, 4 insertions(+)

Comment 17 CFME Bot 2016-02-02 22:21:01 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/49aa23e1817cb9a166240346ae2c2d51d2ab9408

commit 49aa23e1817cb9a166240346ae2c2d51d2ab9408
Author:     Bill Fitzgerald <wfitzger>
AuthorDate: Mon Feb 1 14:48:22 2016 -0500
Commit:     Bill Fitzgerald <wfitzger>
CommitDate: Tue Feb 2 15:51:25 2016 -0500

    Automate - Infrastructure - Added tests for microsoft retirement methods.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1297351

 .../method_validation/check_pre_retirement_spec.rb | 34 ++++++++++++++++++++++
 .../unit/method_validation/pre_retirement_spec.rb  | 30 +++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 spec/automation/unit/method_validation/check_pre_retirement_spec.rb
 create mode 100644 spec/automation/unit/method_validation/pre_retirement_spec.rb

Comment 18 CFME Bot 2016-02-11 18:27:02 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=acd27fc906b3973642b22a78de2873a788b0c02c

commit acd27fc906b3973642b22a78de2873a788b0c02c
Author:     Bill Fitzgerald <wfitzger>
AuthorDate: Tue Jan 26 15:10:55 2016 -0500
Commit:     Bill Fitzgerald <wfitzger>
CommitDate: Thu Feb 11 11:37:58 2016 -0500

    Change Infrastructure retirement for Microsoft vendor to call generic
    pre_retirement and check_pre_retirement methods.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1297351

 .../VM/Retirement/StateMachines/Methods.class/checkpreretirement.yaml   | 2 ++
 .../VM/Retirement/StateMachines/Methods.class/preretirement.yaml        | 2 ++
 2 files changed, 4 insertions(+)

Comment 20 CFME Bot 2016-02-15 15:37:46 UTC
Detected commit referencing this ticket while ticket status is MODIFIED.

Comment 21 Tina Fitzgerald 2016-03-09 20:32:18 UTC
*** Bug 1306830 has been marked as a duplicate of this bug. ***

Comment 22 Tina Fitzgerald 2016-03-09 20:36:36 UTC
*** Bug 1309825 has been marked as a duplicate of this bug. ***

Comment 23 Jeff Teehan 2016-03-14 16:59:42 UTC
Using the 5.6 nightly previews, SCVMM VM retirement seems to be working as advertised.  This should go to Verified pretty quickly.  JBT
5.6.0.0-pre-nightly.20160308110502_5e8d65b

Comment 24 Jeff Teehan 2016-04-08 04:30:00 UTC
As before, this is working fine.  Tested using the new force power off functionality and it worked great as well.  Moving to verified using cfme-hyperv-5.6.0.0-nightly-20160404123323-2.x86_64 on https://10.16.6.163/vm_infra/explorer

Comment 26 errata-xmlrpc 2016-06-29 15:27:37 UTC
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


Note You need to log in before you can comment on or make changes to this bug.