Comment 3 for bug 1722580

Revision history for this message
Nobuto Murata (nobuto) wrote : Re: feature: Juju should define and be able to import concatenated format of clouds.yaml and credentials.yaml

> Juju should be able to import those 2 info with one command using just one concatenated file or tar ball containing those 2 files. So that OpenStack dashboard can offer a button "Download Juju Environment File" for Juju 2 as previously worked for Juju 1.x environments.yaml.

I originally thought the above was how to solve my issue. However, I realized that we could solve the issue in a more generic way since the above would be only effective to Ubuntu-package based OpenStack dashboard deployment.

As Juju is a universal modeling tool, it should not be tied with an Ubuntu-specific patch. Instead, we could leverage openrc.sh[1] which is offered by the most of OpenStack deployments as the defacto API credential file.

We already uses it in `juju autoload-credentials`, so if we could do a similar thing to `juju add-cloud`(juju autoload-clouds?), that would work for any OpenStack, not only for Ubuntu OpenStack since openrc.sh has all information necessary for `add-cloud` including endpoint and region.

[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/api_access/templates/api_access/openrc.sh.template