Bug 1379071 - Azure instances missing Soft Reboot option in Details menu
Summary: Azure instances missing Soft Reboot option in Details menu
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.8.0
Assignee: Jozef Zigmund
QA Contact: Leo Khomenko
URL:
Whiteboard: azure:power
: 1384650 (view as bug list)
Depends On:
Blocks: 1382082 1384694
TreeView+ depends on / blocked
 
Reported: 2016-09-24 16:21 UTC by Leo Khomenko
Modified: 2017-06-12 16:56 UTC (History)
10 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1382082 1384694 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:56:37 UTC
Category: ---
Cloudforms Team: Azure
Target Upstream Version:
Embargoed:
lkhomenk: automate_bug+


Attachments (Terms of Use)

Description Leo Khomenko 2016-09-24 16:21:12 UTC
Description of problem: Instance might be restarted only from Collections menu(Quadicon menu)


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


How reproducible:Always in 
5.6.2.0.20160913114355_70e9086
5.7.0.1.20160913164703_66caf07


Steps to Reproduce:
1.Setup Azure provider
2.Find running VM and open Details menu
3.check power options

Actual results: no Reboot options


Expected results:Soft reboot should be available



Additional info:a sort of confirmation that Soft reboot works - https://bugzilla.redhat.com/show_bug.cgi?id=1349146

Comment 2 Greg Blomquist 2016-09-26 19:44:53 UTC
Bronagh, would be nice if this used the SupportsFeatureMixin to surface the button for the provider.

If you have questions about that, ping Marcel.

Comment 3 Bronagh Sorota 2016-09-27 18:05:12 UTC
Dan
I think this is a UI issue and not a backend issue. I implemented the "soft reboot" operation in the model a while back:
https://github.com/ManageIQ/manageiq/pull/9687
for BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1349146
I think the "soft reboot" button needs to be added to the VM detail page.
FYI - As described in the PR, there is no "hard reboot" support in the Azure API.


Thanks,
Bronagh

Comment 4 Harpreet Kataria 2016-09-27 20:57:27 UTC
Jozef,

Can you track code here https://github.com/ManageIQ/manageiq/blob/master/app/helpers/application_helper/button/generic_feature_button.rb#L9 to see why Soft Reboot button is not visible on Azure Instance summary screen even when Instance is powered on. Let me know if you have questions.

Thanks,
~Harpreet

Comment 7 CFME Bot 2016-10-17 16:22:24 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e8359ed4668e128d3dda70acf841396d86fce33d

commit e8359ed4668e128d3dda70acf841396d86fce33d
Author:     Jozef Zigmund <jzigmund>
AuthorDate: Tue Oct 4 16:19:50 2016 +0200
Commit:     Jozef Zigmund <jzigmund>
CommitDate: Tue Oct 4 16:41:19 2016 +0200

    Fix the missing 'Soft reboot' button on an Azure instance
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1379071

 .../manageiq/providers/azure/cloud_manager/vm/operations.rb      | 1 +
 .../providers/azure/cloud_manager/vm/operations/power.rb         | 9 +++++++++
 2 files changed, 10 insertions(+)

Comment 8 Leo Khomenko 2016-10-24 10:28:51 UTC
"Soft reboot" is back in 5.7.0.6 and works fine

Comment 9 Leo Khomenko 2016-10-25 15:50:18 UTC
Jozef, please check this BZ https://bugzilla.redhat.com/show_bug.cgi?id=1384650 
Was it also affected but this PR?
Previously it was mentioned that this one is provider specific as only Azure and EC2 had this issue and RHOS didn't have it.

Comment 10 Leo Khomenko 2016-10-25 15:51:01 UTC
*** Bug 1384650 has been marked as a duplicate of this bug. ***

Comment 11 Leo Khomenko 2016-10-27 11:31:26 UTC
is this going to be added to 5.6z stream?

Comment 12 Jozef Zigmund 2016-11-08 13:59:04 UTC
afaik, it won't be backported to 5.6.z

Comment 13 Leo Khomenko 2017-02-14 17:06:39 UTC
verified in 5.8.0.0.20170201144150_848e68b


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