Bug 1717403

Summary: Broken breadcrumbs link to compute resource VM list on VM detail page
Product: Red Hat Satellite Reporter: Taft Sanders <tasander>
Component: Compute ResourcesAssignee: Amir <afeferku>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: afeferku, apuntamb, egolov, mhulan, oprazak, pcreech, sgraessl, tbrisker
Target Milestone: 6.8.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Fixed In Version: foreman-2.1.0-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 12:58:35 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:

Description Taft Sanders 2019-06-05 12:28:23 UTC
Description of problem:
When viewing the list of VM's on a compute resource, the link to navigate back to the list of VM's in the top left corner "Compute Resources Vms" does not take you back to the list. No action is taken

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

How reproducible:
Every time

Steps to Reproduce:
1. Navigate to the list of VM's on a compute resource and select a VM
2. Click the hyperlink "Compute Resources Vms" in the top left

Actual results:

Expected results:
To navigate back to the list of vm's

Additional info:
Below is the HTML:
<a href="#" title="" role="button" data-original-title="Compute Resources Vms"> Compute Resources Vms</a>

compared to another link:
<a data-id="aid_compute_resources_1-battalionbox-usersys-redhat-com-Libvirt" href="/compute_resources/1-battalionbox-usersys-redhat-com-Libvirt">battalionbox.usersys.redhat.com-Libvirt (Libvirt)</a>

Comment 3 Ondřej Pražák 2019-06-10 09:14:44 UTC
Created redmine issue https://projects.theforeman.org/issues/27004 from this bug

Comment 4 Bryan Kearney 2019-09-09 14:02:39 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27004 has been resolved.

Comment 5 Lukáš Hellebrandt 2019-11-25 14:11:17 UTC
Navigation works but the breadcrumb path shown is "Compute Resouces -> $RESOURCE_TYPE -> VMs -> $VM_NAME", e.g. "Compute Resouces -> Ovirt -> VMs -> vm1.rhev1.example.com". I would expect CR name in Satellite in place of $RESOURCE_TYPE.

I consider this a minor bug, let me know if you think it's correct behavior.

Comment 6 Bryan Kearney 2019-11-25 15:03:14 UTC
Upstream bug assigned to apuntamb

Comment 11 Lukáš Hellebrandt 2020-06-29 09:29:19 UTC
This looks almost OK but I've hit a minor issue: When I click the "VMs" link, it gets me to a page with a list of VMs - which is expected. However, it's not a normal Compute Resource page switched to a VMs tab. It's just the list, there are no tabs in the page. Since I found no other way to get to this list-only page, I'm not sure if this is the best behavior. For consistency and understandability, I'd expect the link to get me to a CR page, VM tab. What do you think, Amir?

Comment 12 Lukáš Hellebrandt 2020-07-14 10:15:10 UTC
According to devel, it's not currently supported to automatically switch to non-default tab and it would be considerable effort to do that. As this is a minor glitch and the feature is not used by that many users, I agree this is an acceptable solution.

Verifired using Sat 6.8 snap 8.0, using reproducer from OP.

Comment 15 errata-xmlrpc 2020-10-27 12:58:35 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 (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.