Bug 1548073

Summary: Undefined method `vmm_version' for nil:NilClass on VM summary screen
Product: Red Hat CloudForms Management Engine Reporter: Brian McLaughlin <bmclaugh>
Component: UI - OPSAssignee: Brian McLaughlin <bmclaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Matouš Mojžíš <mmojzis>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: bmclaugh, cpelland, hkataria, lavenel, mmojzis, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:vm
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1553307 1553308 (view as bug list) Environment:
Last Closed: 2019-03-26 21:02:07 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: 1553307, 1553308    

Description Brian McLaughlin 2018-02-22 16:14:05 UTC
Description of problem:
Error when loading VM summary screen

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


How reproducible:
100% on VMs without a defined Host

Steps to Reproduce:
1. Navigate to VM summary screen
2.
3.

Actual results:
FATAL -- : Error caught: [NoMethodError] undefined method `vmm_version' for nil:NilClass

Expected results:
Page loads.

Additional info:

Comment 2 Dave Johnson 2018-02-22 16:45:18 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 4 CFME Bot 2018-02-23 18:33:50 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/117563597a1707eb3a07b5be9383dd9cbca9d752

commit 117563597a1707eb3a07b5be9383dd9cbca9d752
Author:     Brian McLaughlin <bmclaugh>
AuthorDate: Thu Feb 22 14:05:41 2018 -0500
Commit:     Brian McLaughlin <bmclaugh>
CommitDate: Thu Feb 22 14:05:41 2018 -0500

    Check for a nil Host
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1548073

 app/helpers/application_helper/button/vm_webmks_console.rb       | 3 ++-
 .../helpers/application_helper/buttons/vm_webmks_console_spec.rb | 9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

Comment 5 CFME Bot 2018-02-23 18:33:57 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/889eee0f0d933ae59c548b12df1d48fada3ddb6a

commit 889eee0f0d933ae59c548b12df1d48fada3ddb6a
Author:     Brian McLaughlin <bmclaugh>
AuthorDate: Fri Feb 23 11:33:36 2018 -0500
Commit:     Brian McLaughlin <bmclaugh>
CommitDate: Fri Feb 23 11:33:36 2018 -0500

    Disable console buttons without a Host
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1548073

 app/helpers/application_helper/button/vm_vnc_console.rb           | 3 ++-
 app/helpers/application_helper/button/vm_webmks_console.rb        | 2 +-
 spec/helpers/application_helper/buttons/vm_vnc_console_spec.rb    | 5 +++++
 spec/helpers/application_helper/buttons/vm_webmks_console_spec.rb | 7 +++----
 4 files changed, 11 insertions(+), 6 deletions(-)