Add the following to your local.conf
to enable cinder-backup followed by a redeployment:
# Cinder backup (will use Swift per default, otherwise $CINDER_BACKUP_DRIVER)
enable_service c-bak
# Swift, needed by Cinder backup
enable_service swift s-proxy s-object s-container s-account
Barbican is not deployed per default and needs to be added explicitly via the following addition to local.conf
followed by a redeployment:
...
# Barbican plugin
enable_plugin barbican https://opendev.org/openstack/barbican
Upstream guide: https://docs.openstack.org/devstack/latest/development.html
- you can find the
.conf
files in the VM guest directly under the corresponding/etc/
trees- e.g.
/etc/keystone/keystone.conf
- e.g.
- there are systemd services for all OpenStack components
- you can list them with
systemctl list-units | grep devstack
- note that many services have abbreviated names:
c-*
for Cinder,g-*
for Glance,n-*
for Neutron and so on
- you can list them with
Related: https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html
To use this new option, adjustments are necessary both server-side (DevStack) and client-side (OSC, Tempest).
NOTE: The
enforce_scope
-related settings need to be in sync between both sides at all times. If you revert this configuration, make sure to revert both sides.
keystone.conf
[oslo_policy]
enforce_new_defaults = true
enforce_scope = true
sudo systemctl restart devstack@keystone
unset OS_PROJECT_NAME
unset OS_TENANT_NAME
unset OS_USER_DOMAIN_ID
unset OS_PROJECT_DOMAIN_ID
export OS_SYSTEM_SCOPE=all
tempest.conf
# IMPORTANT: comment out admin_project_name and admin_domain_name when you
# enable enforce_scope! Otherwise auth won't work.
[auth]
#admin_project_name = admin
#admin_domain_name = Default
admin_system = all
[identity-feature-enabled]
enforce_scope = true
[enforce_scope]
# Does the compute/identity/network/... service API policies enforce scope and
# new defaults? Should be enabled when
# nova.conf: oslo_policy.enforce_new_defaults and oslo_policy.enforce_scope are
# enabled.
keystone = true
...
[barbican_rbac_scope_verification]
enforce_scope = true
- source code of the main components can be edited directly under
/opt/stack/<component>/
- changes will take effect once the corresponding service(s) is/are restarted
- e.g.
systemctl restart devstack@g-api
- this is because the
/opt/stack/<component>/
Python packages are installed viapip install -e
which makes repeatedpip install
calls after source code changes unnecessary
- e.g.
- changes will take effect once the corresponding service(s) is/are restarted
- to change library source code you have to edit it in the common VirtualEnv located at
/opt/stack/data/venv/
- e.g.
/opt/stack/data/venv/lib/python3.10/site-packages/keystoneauth1/
for the keystoneauth library
- e.g.