feature: allow to add additional regions outside of the same Juju model/controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
In Progress
|
Wishlist
|
Unassigned |
Bug Description
Horizon can handle multiple regions by adding AVAILABLE_REGIONS in local_settings.py. And the charm has ability to add regions through relation data.
However, if two keystones are on a separate Juju controller (it's typical in geographically separated multi-region story), we cannot add regions each other. It would be nice if the charm accepts additional region info from outside of the same Juju model/controller.
[templates/
# For multiple regions uncomment this configuration, and add (endpoint, title).
#AVAILABLE_REGIONS = [
# ('http://
# ('http://
#]
{% if regions|length > 1 -%}
AVAILABLE_REGIONS = [
{% for region in regions -%}
('{{ region.endpoint }}', '{{ region.title }}'),
{% endfor -%}
]
{% endif -%}
OPENSTACK_HOST = "{{ service_host }}"
OPENSTACK_
{% if api_version == "3" -%}
OPENSTACK_
OPENSTACK_
OPENSTACK_
OPENSTACK_
{% else -%}
OPENSTACK_
{% endif -%}
tags: | added: canonical-bootstack |
tags: | added: cpe-onsite |
Changed in charm-openstack-dashboard: | |
status: | Triaged → In Progress |
Thank you for your bug report.
In the long term I believe some modeling from the Juju side is required to solve this properly.
Support for cross-model (and indeed cross-controller) relationships is under development and indeed available for testing if you live on the bleeding edge. Have a look here: https:/ /insights. ubuntu. com/2017/ 07/20/testing- the-future- of-juju- with-snaps/
As some time will pass before this feature is readily available in stable environments and charms pick up support, could you share your sense of need and urgency for an eventual interim solution through charm configuration?