Duplicate entries for Region on login interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Single region in openstack.
MODEL(openstack) jujumanage@
+------
| Region | Parent Region | Description |
+------
| XXXXXXXXXXXXXX | None | |
+------
On login interface a drop-down with 2 options, when selecting value 0 authentication fails, when selecting value 1 all works fine:
<select name="region" class="
<option value="
<option value="1" selected=
</select>
Checking /etc/openstack-
AVAILABLE_REGIONS = [
('http://
('https:/
]
Although template specifies this and there is a single region, the context contains 2 for some reason:
{% if regions|length > 1 -%}
AVAILABLE_REGIONS = [
{% for region in regions -%}
('{{ region.endpoint }}', '{{ region.title }}'),
{% endfor -%}
]
{% endif -%}
Keystone identity-service data relation below:
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/1:region: zw-northeast-1
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/
keystone/2:region: zw-northeast-1
keystone/
keystone/
keystone/
Charm iterates over the relation_
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in charm-openstack-dashboard: | |
status: | Expired → Triaged |
importance: | Undecided → Medium |
Workaround on this occasion was to run:
juju run --unit keystone/2 'relation-set -r identity- service: 125 auth_protocol= https' service: 125 service_ protocol= https'
juju run --unit keystone/2 'relation-set -r identity-
where identity- service: 125 is the relation id to openstack- dashboard.