[quickstart] Passing in tripleo_ui_secure_access="false" doesn't work correctly

Bug #1725115 reported by Jason E. Rist
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
wes hayutin

Bug Description

When running quickstart and trying to deploy a quickstart undercloud, if one passes in via the -e command tripleo_ui_secure_access="false", the expected result is that the UI can be accessed without SSL, but only the config file appears to respect this value.

Example quickstart commands:
bash quickstart.sh --clean --teardown all --no-clone -e tripleo_ui_secure_access="false" $VIRTHOST

The UI still requires the https URL to access and the config file is then not configured properly for https (using the haproxy configuration) so the UI is inaccessible.

For instance, the config looks like this:
window.tripleOUiConfig = {
  "keystone": "http://172.16.213.197:5000/v2.0",
  "tripleo": "http://172.16.213.197:8585/v1",
  "validations": "http://172.16.213.197:5001/v1",
  "heat": "http://172.16.213.197:8004/v1/9b55ab262f434846ba166c5033c79df5",
  "ironic": "http://172.16.213.197:6385",
  "mistral": "http://172.16.213.197:8989/v2",
  "swift": "http://172.16.213.197:8080//v1/AUTH_9b55ab262f434846ba166c5033c79df5",
  "zaqar_websocket_url": "ws://172.16.213.197:9000",
  "zaqar_default_queue": "tripleo"
};

when it should look like this if secure access is otherwise on (apache requiring https):
window.tripleOUiConfig = {
  'keystone': 'https://172.16.213.197/keystone/v3/',
  'heat': 'https://172.16.213.197/heat/v1/9b55ab262f434846ba166c5033c79df5',
  'ironic': 'https://172.16.213.197/ironic',
  'ironic-inspector': 'https://172.16.213.197/ironic-inspector',
  'mistral': 'https://172.16.213.197/mistral/v2',
  'swift': 'https://172.16.213.197/swift/v1/AUTH_9b55ab262f434846ba166c5033c79df5',
  'zaqar-websocket': 'ws://172.16.213.197/zaqar',
  'zaqar_default_queue': 'tripleo',
  'excludedLanguages': [],
  'loggers': ["console","zaqar"]
};

Tags: quickstart ui
Revision history for this message
Jason E. Rist (jason-rist) wrote :
tags: added: quickstart
Revision history for this message
Jason E. Rist (jason-rist) wrote :

Emilien I swear I added quickstart yesterday :(

Revision history for this message
Jason E. Rist (jason-rist) wrote :

I just did an install without the tripleo_ui_secure_access="false" and the config still doesn't get properly written.

wes hayutin (weshayutin)
Changed in tripleo:
assignee: nobody → wes hayutin (weshayutin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.openstack.org/518043

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
wes hayutin (weshayutin) wrote :
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/518043
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=543988c2ae5f2dfbb2691baaf9dd9e3d0901358a
Submitter: Zuul
Branch: master

commit 543988c2ae5f2dfbb2691baaf9dd9e3d0901358a
Author: Wes Hayutin <email address hidden>
Date: Mon Nov 6 12:45:34 2017 -0500

    fix tripleo-ui non-secure setup

    Update the urls used in tripleo_ui_config.js

    Closes-Bug: #1725115
    Change-Id: I3835804d4356b9033425f400e06a383fe3984993

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

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 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.