Bug 1317074

Summary: "No route matches" error when clicking on "Provisioned VMs" link in Provision Request details screen
Product: Red Hat CloudForms Management Engine Reporter: Greg McCullough <gmccullo>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5.0CC: hkataria, jhardy, mpovolny, nachandr, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:service
Fixed In Version: 5.6.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:42:27 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:
Attachments:
Description Flags
Provision Request details screen
none
Error screenshot none

Description Greg McCullough 2016-03-11 21:40:48 UTC
Description of problem: After successfully provisioning a VM and viewing the details of the request the # after "Provisioned VMs" is a link which fails with a "No route matches" error.


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


How reproducible: Always


Steps to Reproduce:
1. Successfully provision a VM
2. Click on request Under Services -> Request to view request details
3. Click on number displayed after "Provisioned VMs" (See attached screenshot)

Actual results:
Error screen is displayed with:
No route matches {:action=>"show/837", :controller=>"miq_request", :id=>"837", :sort_choice=>"Status"} [miq_request/show]

Expected results:
See list of provisioned VMs

Comment 2 Greg McCullough 2016-03-11 21:43:13 UTC
Created attachment 1135416 [details]
Provision Request details screen

Comment 3 Greg McCullough 2016-03-11 21:43:33 UTC
Created attachment 1135417 [details]
Error screenshot

Comment 4 Harpreet Kataria 2016-03-14 13:13:59 UTC
Milan,

Can you look into this one, looks like action is incorrect in the transaction has id included in it, causing routing error. Let me know if you have questions.

Thanks,
~Harpreet

Comment 5 Milan Zázrivec 2016-04-11 18:30:43 UTC
https://github.com/ManageIQ/manageiq/pull/7875

Comment 6 CFME Bot 2016-04-19 17:15:54 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/80fb6f247aa2c71221f24a126e6565d580802ee0

commit 80fb6f247aa2c71221f24a126e6565d580802ee0
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Mon Apr 11 20:27:09 2016 +0200
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Mon Apr 11 20:30:05 2016 +0200

    Fix action_url for gtl view showing provisioned vms
    
    This is to fix the following error thrown by link_to():
    
    No route matches {:action=>"show/10000000000272",
    :controller=>"miq_request", :id=>"10000000000272",
    :sort_choice=>"Status"}
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1317074

 app/views/miq_request/_provisions.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 Shveta 2016-04-22 22:19:48 UTC
Fixed.
Verified in 
5.6.0.4-beta2.3.20160421172650_719e256

Comment 9 errata-xmlrpc 2016-06-29 15:42:27 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://access.redhat.com/errata/RHBA-2016:1348