Bug 1445005 - Error page when going to Reconfigure for Instance
Summary: Error page when going to Reconfigure for Instance
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.0
Assignee: Petr Blaho
QA Contact: Ido Ovadia
URL:
Whiteboard: vm:reconfigure
Depends On:
Blocks: 1445802
TreeView+ depends on / blocked
 
Reported: 2017-04-24 17:39 UTC by Petr Blaho
Modified: 2018-03-06 15:55 UTC (History)
9 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1445802 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:55:58 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1445011 0 high CLOSED Buttons on reconfigure dialog for VM do not work 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1445018 0 high CLOSED Error when displaying reconfigure dialog page for VM if VM has no Flavor 2021-02-22 00:41:40 UTC

Internal Links: 1445011 1445018

Description Petr Blaho 2017-04-24 17:39:56 UTC
Description of problem:
Error message when going to Reconfigure of Instance dialog page.

Version-Release number of selected component (if applicable):
master branch of upstream repos of manageiq, manageiq-ui-classic, manageiq-providers-openstack


How reproducible:
Always

Steps to Reproduce:
1. Have a VM in OpenStack
2. Go to detail page of that VM
3. Click on "Configuration" in toolbar, then "Reconfigure this instance"

Actual results:
Page with error message "undefined method `find_by' for
"admin":String [vm/resize]"

Expected results:
Page with dialog for reconfiguring of VM.

Additional info:
The same page (and error) can be accessed via list of VMs, selecting VM and clicking on "Configuration" in toolbar, then "Reconfigure selected instance"

Solved by https://github.com/ManageIQ/manageiq-ui-classic/pull/1139
Comments of upstream PR contains screenshots.

Comment 2 Dave Johnson 2017-04-25 15:14:02 UTC
Same here as see alsos, osp only or something we are missing?

Comment 3 luke couzens 2017-04-25 18:45:54 UTC
This is OSP only.

Comment 4 CFME Bot 2017-04-26 06:58:15 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/52c029d8999a5859c92b57efedff57bdfe171a18

commit 52c029d8999a5859c92b57efedff57bdfe171a18
Author:     Petr Blaho <pblaho>
AuthorDate: Mon Apr 24 15:19:06 2017 +0200
Commit:     Petr Blaho <pblaho>
CommitDate: Mon Apr 24 20:09:23 2017 +0200

    Use correct params for find_record_with_rbac in resize method
    
    find_record_with_rbac expects ActiveRecord like class as first parameter.
    During previous refactoring a mistake was introduced and session[:userid] was
    passed as first parameter and that caused "undefined method `find_by' for
    "admin":String [vm/resize]" when trying to go to reconfigure a VM dialog page.
    
    This corrects that.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1445005

 app/controllers/application_controller/ci_processing.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 Ido Ovadia 2018-01-30 12:46:08 UTC
Verified
========
5.9.0.16


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