diff options
| author | Matt Crees <mattc@stackhpc.com> | 2022-11-15 13:46:53 +0000 |
|---|---|---|
| committer | Matt Crees <mattc@stackhpc.com> | 2022-12-21 17:19:09 +0000 |
| commit | 6c2aace8d6e6ea97d741645a66042e02bdbffa4b (patch) | |
| tree | 53404072c0ff233b8b460c06a1c3abd48f142bc4 /tools | |
| parent | 113242c8644569926ce0908e1982b043243e392e (diff) | |
| download | kolla-ansible-6c2aace8d6e6ea97d741645a66042e02bdbffa4b.tar.gz kolla-ansible-6c2aace8d6e6ea97d741645a66042e02bdbffa4b.zip | |
Integrate oslo-config-validator
Regularly, we experience issues in Kolla Ansible deployments because we
use wrong options in OpenStack configuration files. This is because
OpenStack services ignore unknown options. We also need to keep on top
of deprecated options that may be removed in the future. Integrating
oslo-config-validator into Kolla Ansible will greatly help.
Adds a shared role to run oslo-config-validator on each service. Takes
into account that services have multiple containers, and these may also
use multiple config files. Service roles are extended to use this shared
role. Executed with the new command ``kolla-ansible validate-config``.
Change-Id: Ic10b410fc115646d96d2ce39d9618e7c46cb3fbc
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/kolla-ansible | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 861faec74..3766db617 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -200,6 +200,7 @@ Commands: upgrade Upgrades existing OpenStack Environment upgrade-bifrost Upgrades an existing bifrost container genconfig Generate configuration files for enabled OpenStack services + validate-config Validate configuration files for enabled OpenStack services prune-images Prune orphaned Kolla images nova-libvirt-cleanup Clean up disabled nova_libvirt containers EOF @@ -246,6 +247,7 @@ octavia-certificates upgrade upgrade-bifrost genconfig +validate-config prune-images nova-libvirt-cleanup EOF @@ -535,6 +537,10 @@ EOF ACTION="Generate configuration files for enabled OpenStack services" EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=config" ;; +(validate-config) + ACTION="Validate configuration files for enabled OpenStack services" + EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=config_validate" + ;; (prune-images) ACTION="Prune orphaned Kolla images" PLAYBOOK="${BASEDIR}/ansible/prune-images.yml" |
