Bug 1349146

Summary: Azure Hard/Soft Reboot not working.
Product: Red Hat CloudForms Management Engine Reporter: Jeff Teehan <jteehan>
Component: ProvidersAssignee: Bronagh Sorota <bsorota>
Status: CLOSED CURRENTRELEASE QA Contact: Jeff Teehan <jteehan>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:azure:restart
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1353719 (view as bug list) Environment:
Last Closed: 2017-01-11 20:07:46 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: 1353719    

Description Jeff Teehan 2016-06-22 19:21:13 UTC
Description of problem:  

I'm not sure if this is a bug or an RFE.  Rebooting is not something usually done in Azure.

Anyway, if you choose either Soft Reboot or Hard Reboot from the collection page, you get a evm.log error and it doesn't restart.  The choices are not even available on the details page.  I believe Azure only supports one form of reboot.

[----] E, [2016-06-22T15:05:57.222136 #13429:a9b988] ERROR -- : MIQ(MiqQueue#m_callback) Message id: [622000000000491]: undefined method `vm_reset' for #<ManageIQ::Providers::Azure::CloudManager:0x0000000ca58d70>
[----] E, [2016-06-22T15:05:57.222466 #13429:a9b988] ERROR -- : MIQ(MiqQueue#m_callback) backtrace: /opt/rh/cfme-gemset/gems/activemodel-5.0.0.rc1/lib/active_model/attribute_methods.rb:433:in `method_missing'


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

How reproducible:
Always

Steps to Reproduce:
1.  Add an Azure Provider
2.  Locate a Running VM from collection view.
3.  Choose Hard/Soft Reboot from the Power Menu

Actual results:


Expected results:


Additional info:

Comment 4 CFME Bot 2016-07-08 18:51:37 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c7e4670b7dcb2ceb078593b45a4f53dd41d26831

commit c7e4670b7dcb2ceb078593b45a4f53dd41d26831
Author:     Bronagh Sorota <bsorota>
AuthorDate: Fri Jul 8 12:05:34 2016 -0400
Commit:     Bronagh Sorota <bsorota>
CommitDate: Fri Jul 8 12:05:34 2016 -0400

    Implementation of the soft reboot (restart) of an Azure instance
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1349146

 app/models/manageiq/providers/azure/cloud_manager.rb                | 6 ++++++
 .../manageiq/providers/azure/cloud_manager/vm/operations/power.rb   | 5 +++++
 2 files changed, 11 insertions(+)

Comment 5 Jeff Teehan 2016-09-09 21:59:06 UTC
Per the 5.6 agreement, only Soft Reboot works for Azure.

Verified in 5.7.0.0.20160906172503_12f65cb that is works fine by checking the Azure activity log for the entry.
Restart
Succeeded
11 min ago
Fri Sep 09 2016 14:47:23 GMT-0700 (PDT)
Visual Studio Enterprise with MSDN
CFME

Moving to verified.