Bug 1393318

Summary: Revert snapshot buttons get disabled when clicked on any snapshots in snapshot tree on few vm's
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Aziza Karol <akarol>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, dajohnso, hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GAKeywords: Regression, TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: snapshot
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1396526 (view as bug list) Environment:
Last Closed: 2017-06-12 16:22:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1396526    
Attachments:
Description Flags
revert snapshot disabled
none
revert snapshot enabled none

Description Aziza Karol 2016-11-09 10:25:03 UTC
Created attachment 1218878 [details]
revert snapshot disabled

Description of problem:
Unable to revert snapshot as the revert snapshot button gets disabled.This is an intermittent issue.

Version-Release number of selected component (if applicable):
5.7.0.9-beta2.1.20161101182054_eb0afaa

How reproducible:
50%

Steps to Reproduce:
1.Create few snapshots on a vm.
2.In snapshot tree select a snapshot and try clicking on revert button
3.

Actual results:
Revert button gets disabled and  hovering over to revert button displays "There are no snapshots available for this vm. 

For some vm's the revert snapshot button remains enabled whereas for few it gets  disabled when clicked on any snapshot in snapshot tree.


Expected results:
revert snapshot button should be enabled

Additional info:

Comment 2 Aziza Karol 2016-11-09 10:27:45 UTC
Created attachment 1218884 [details]
revert snapshot enabled

Comment 4 Harpreet Kataria 2016-11-16 21:44:31 UTC
https://github.com/ManageIQ/manageiq/pull/12700

Comment 5 CFME Bot 2016-11-17 22:31:17 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c310a391e878d1a41ba2e668a7207a5bd8dcbfb5

commit c310a391e878d1a41ba2e668a7207a5bd8dcbfb5
Author:     Harpreet Kataria <hkataria>
AuthorDate: Wed Nov 16 16:42:22 2016 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Wed Nov 16 16:43:12 2016 -0500

    Call x_node_right_cell method to get correct active node id
    
    Call x_node_right_cell method to get correct active node id back based upon whether VMs are hidden from explorer tree or not, need an id of selected VM to reset @record when user selects a snapshot in snapshot tree.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1393318

 app/controllers/vm_common.rb       |  2 +-
 spec/controllers/vm_common_spec.rb | 19 ++++++++++++++-----
 2 files changed, 15 insertions(+), 6 deletions(-)

Comment 7 Aziza Karol 2017-03-13 07:04:24 UTC
Revert snapshot button is enabled when clicked on any snapshots in snapshot tree.

Verified:5.8.0.4.20170307183144_745a3d9