Can't log in to the UI: wrong keystone endpoint URL

Bug #1630546 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Julie Pichon

Bug Description

I just installed a new undercloud (master). It's not possible to log into the UI by default because the keystone URL in /var/www/openstack-tripleo-ui/dist/tripleo_ui_config.js is set to "http://<IP>:5000" instead of "http://<IP>:5000/v2.0".

window.tripleOUiConfig = {
  "keystone": "http://192.0.2.1:5000",
}

The workaround is obviously to append /v2.0 and reload the UI, but this should work without a manual step.

It looks like the URL is defined at https://github.com/openstack/puppet-tripleo/blob/master/manifests/ui.pp#L75 - hiera('keystone::endpoint::public_url'), though that looks like it should give us the correct endpoint...

$ openstack catalog show keystone
...
| endpoints | regionOne |
| | publicURL: http://192.0.2.1:5000/v2.0 |
| | internalURL: http://192.0.2.1:5000/v2.0 |
| | adminURL: http://192.0.2.1:35357/v2.0 |
...

Tags: ui
Revision history for this message
Julie Pichon (jpichon) wrote :

Looking at the existing hieradata:

$ sudo grep -R 5000 /etc/puppet/hieradata/
/etc/puppet/hieradata/puppet-stack-config.yaml:keystone_auth_uri: http://192.0.2.1:5000/v3
/etc/puppet/hieradata/puppet-stack-config.yaml:keystone_auth_uri_v2: http://192.0.2.1:5000/v2.0
/etc/puppet/hieradata/puppet-stack-config.yaml:ceilometer::agent::auth::auth_url: http://192.0.2.1:5000
/etc/puppet/hieradata/puppet-stack-config.yaml:keystone::endpoint::public_url: http://192.0.2.1:5000
/etc/puppet/hieradata/puppet-stack-config.yaml:keystone::endpoint::internal_url: http://192.0.2.1:5000

The UI explicitly references v2.0 in the configuration sample ( https://github.com/openstack/tripleo-ui/blob/master/dist/tripleo_ui_config.js.sample#L7 ) for now so, let's go with keystone_auth_uri_v2.

Changed in tripleo:
assignee: nobody → Julie Pichon (jpichon)
Revision history for this message
Julie Pichon (jpichon) wrote :
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

This is a one-liner change with a major impact on the UI usability, so I'm tentatively setting newton-rc3 as a milestone.

Changed in tripleo:
milestone: none → newton-rc3
Revision history for this message
Julie Pichon (jpichon) wrote :
Revision history for this message
Julie Pichon (jpichon) wrote :

Backport merged.

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 5.3.0

This issue was fixed in the openstack/puppet-tripleo 5.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 6.0.0

This issue was fixed in the openstack/puppet-tripleo 6.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.