Configure OpenStack in charm-deployment-guide
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Charms Deployment Guide |
New
|
Undecided
|
Unassigned |
Bug Description
This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:
- [X] This doc is inaccurate in this way:
Using juju version 3.1.5-genericli
juju run -m openstack --unit vault/leader 'leader-get root-ca'
juju run -m openstack --unit keystone/leader 'leader-get admin_passwd'
- [X] This is a doc addition request.
- [X] I have a fix to the document that I can paste below including example: input and output.
the updated charm and juju require the commands to be modified
juju run -m openstack vault/leader get-root-ca
juju exec openstack --unit keystone/leader leader-get admin_passwd
The code for the sources ~/openstack-
the openrc:
if [ ! -z $JUJU_MODEL ]; then
_juju_
fi
_keystone_
awk '/^ version:/ {print $2; exit}' | cut -f1 -d\.)
_keystone_
# The per user snap data directory is not created until first execution of snap
openstack --version 2>&1 > /dev/null || true
if [ -d ~/snap/
# When using the openstackclients confined snap the certificate has to be
# placed in a location reachable by the clients in the snap.
_root_
else
_root_
fi
juju run $_juju_model_arg vault/leader get-root-ca | tee $_root_ca >/dev/null 2>&1
if [ $_keystone_
"$
echo Using Keystone v3 API
. $(dirname ${BASH_
else
echo Using Keystone v2.0 API
. $(dirname ${BASH_
fi
The openrcv3_project:
_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')
for param in $_OS_PARAMS; do
unset $param
done
unset _OS_PARAMS
_keystone_
if [ -n "$_keystone_vip" ]; then
_keystone_
else
_keystone_
fi
_password=$(juju $_juju_model_arg exec --unit keystone/leader leader-get admin_passwd)
if [ ! -z "$_root_ca" -a -s "$_root_ca" ]; then
export OS_AUTH_
export OS_CACERT=
fi
export OS_AUTH_
export OS_USERNAME=admin
export OS_PASSWORD=
export OS_REGION_
export OS_DOMAIN_
export OS_USER_
export OS_IDENTITY_
# Swift needs this:
export OS_AUTH_VERSION=3
# Gnocchi needs this:
export OS_AUTH_
If you have a troubleshooting or support issue, use the following resources:
- The mailing list: https:/
- IRC: 'openstack' channel on OFTC
-------
Release: 0.0.1.dev511 on 2023-08-02 09:18:30
SHA: d78e6e79bf2cd0f
Source: https:/
URL: https:/