Bug 1220516

Summary: "non-operational" status icon missing in instances accordion (wrong url)
Product: Red Hat CloudForms Management Engine Reporter: Jan Krocil <jkrocil>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.4.0CC: hkataria, jhardy, mfalesni, mfeifer, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 13:02:06 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:

Description Jan Krocil 2015-05-11 17:56:03 UTC
Description of problem:
When an instance gets into a non-operational state, the icon in accordion has an invalid URL - the image is not found. Icon on the summary page is shown correctly, though.

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

How reproducible:
Always

Steps to Reproduce:
1. Get a vm/instance into non-operational state
2. Check the icon in instances accordion
(I have no idea how our instance got into the non-op state; for verification purposes, I'd just set it through the rails console directly)

Actual results:
Missing icon / invalid url

Expected results:
Icon is shown (red exclamation mark)

Additional info:
----------------

Accordion, invalid URL:
/images/icons/new/non_operational.png

Summary page, valid URL:
/images/icons/new/currentstate-non_operational.png

Comment 3 CFME Bot 2015-05-11 20:55:52 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3369a9fe4ec0206174fcee61488ef0332e39e907

commit 3369a9fe4ec0206174fcee61488ef0332e39e907
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon May 11 15:02:59 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Mon May 11 15:02:59 2015 -0400

    Fixed image name for VM images in the tree on left.
    
    Images on summary screen are prefixed by "currentstate", changed tree to use same images as summary screen. This fixes missing image error for "/images/icons/new/non_operational.png" in the tree
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1220516

 vmdb/app/presenters/tree_node_builder.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comment 6 Milan Falešník 2015-05-19 13:59:03 UTC
Verified in 5.4.0.1.

Steps to set an instance to non_operational state:
- Add an openstack provider
- Pick one vm, remember the id
- open rails console:
vm = VmOpenstack.where(:id => id_of_instance).first
vm.raw_power_state = "ERROR"
vm.save!

Comment 8 errata-xmlrpc 2015-06-16 13:02:06 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://rhn.redhat.com/errata/RHBA-2015-1100.html