Bug 1179821 - Overcloud UI link doesn't point to /dashboard
Summary: Overcloud UI link doesn't point to /dashboard
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tuskar-ui
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 6.0 (Juno)
Assignee: Jiri Tomasek
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-07 15:41 UTC by Jiri Tomasek
Modified: 2023-02-22 23:02 UTC (History)
6 users (show)

Fixed In Version: openstack-tuskar-ui-0.2.0-11.el7ost
Doc Type: Bug Fix
Doc Text:
Cause: RHOS Dashboard uses WSGIScriptAlias that makes dashboard available under <dashboard-url>/dashboard. Tuskar-UI uses Keystone endpoints to get Overcloud Dashboard url, which does not include "/dashboard" part. Consequence: When Overcloud is deployed, Overcloud Dashboard link in Tuskar-UI overview page does not point to Overcloud Dashboard. Fix: Downstream patch was created, which adds WEBROOT settings string at the end of Overcloud Dashboard URL Result: The link to Overcloud Dashboard in Tuskar-UI overview page is now pointing to correct URL. Workaround: Manually add "dashboard" string to the URL of the Overcloud Dashboard link in Tuskar-UI overview page.
Clone Of:
Environment:
Last Closed: 2015-03-12 19:52:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Tomasek 2015-01-07 15:41:09 UTC
Description of problem:
When deployed, the link to Overcloud Horizon points to wrong url as it does not have /dashboard in it.

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


How reproducible:
100%

Steps to Reproduce:
1. Deploy with instack-virt-setup, instack-install-undercloud and instack-deploy-overcloud
2. Log in as admin to the tuskar-ui
3. The link to Horizon on the left is not correct because it does not contain "/dashboard"

Actual results:
Mentioned link points to <overcloud_url>/admin

Expected results:
Mentioned link points to <overcloud_url>/dashboard/admin

Additional info:

Comment 2 Jiri Tomasek 2015-01-15 13:35:23 UTC
Fix has been posted for a review https://code.engineering.redhat.com/gerrit/40047

Comment 6 Udi Kalifon 2015-02-12 18:00:56 UTC
There is a redundant colon in the displayed url:
http://192.0.2.7:/dashboard

Comment 8 Jiri Tomasek 2015-02-17 10:28:06 UTC
The Horizon URL is recovered from keystone endpoint-list (publicurl) which is including the port. In this case the port is blank (which defaults to 80).

Unfortunately Keystone returns the URL including the colon. Anyway, this does not affect the functionality of the link so I don't think it is something we'd want to fix on the UI side. It might be eventually fixed on the Keystone side.

Comment 9 Udi Kalifon 2015-02-17 14:02:24 UTC
I changed the endpoint in keysstone to point to http://192.0.2.7/dashboard, and in the undercloud I got the url:

http://192.0.2.7/dashboarddashboard

Let's decide what the url should be in keystone and only add another "dashboard" in the end if necessary... Then we can close this bug and open another one on the keystone endpoint creation.

Comment 10 Jiri Tomasek 2015-02-19 15:01:29 UTC
I can revert current patch and create new one that changes the url when horizon endpoint url is created after deployment. So the horizon endpoint URL in Keystone will be correct.

Although os-cloud-config hardcodes colon to the endpoint url, so I am not able to remove it. I emphasize the fact that colon in url does not cause it to be wrong. I can set the port to 80 so the port number is actually present in the url. Do you think it is good enough? Hardcoded colon is os-cloud-config bug.

Comment 11 Udi Kalifon 2015-02-22 04:47:57 UTC
The best approach seems to me to change the endpoint url in keystone after deployment so it would be correct. However, I'm not the one who should decide on it. I actually don't understand why horizon and its endpoint are even defined in keystone when using TripleO. When you install with packstack, for example, horizon's service and endpoint are not even defined. Do we really need them in keystone?

Comment 12 Jiri Tomasek 2015-03-04 13:19:12 UTC
As we agreed, the current fix is good enough for RHOS 6.0 A2. A new bug will be filed against 7.0, where dashboard url will be properly set when keystone endpoints are set instead of changing the url in the template.

Comment 13 Udi Kalifon 2015-03-09 09:48:39 UTC
New bug for OSP 7 is here: https://bugzilla.redhat.com/show_bug.cgi?id=1199923

Comment 14 Lon Hohberger 2015-03-12 19:52:11 UTC
This was actually fixed in A1.


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