diff --git a/ansible/roles/aodh/tasks/check.yml b/ansible/roles/aodh/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/aodh/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/barbican/tasks/check.yml b/ansible/roles/barbican/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/barbican/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/baremetal/tasks/check.yml b/ansible/roles/baremetal/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/baremetal/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/bifrost/tasks/check.yml b/ansible/roles/bifrost/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/bifrost/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/ceilometer/tasks/check.yml b/ansible/roles/ceilometer/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/ceilometer/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/ceph/tasks/check.yml b/ansible/roles/ceph/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/ceph/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/certificates/tasks/check.yml b/ansible/roles/certificates/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/certificates/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/chrony/tasks/check.yml b/ansible/roles/chrony/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/chrony/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/cloudkitty/tasks/check.yml b/ansible/roles/cloudkitty/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/cloudkitty/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/collectd/tasks/check.yml b/ansible/roles/collectd/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/collectd/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/common/tasks/check.yml b/ansible/roles/common/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/common/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/congress/tasks/check.yml b/ansible/roles/congress/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/congress/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/designate/tasks/check.yml b/ansible/roles/designate/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/designate/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/destroy/tasks/check.yml b/ansible/roles/destroy/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/destroy/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/elasticsearch/tasks/check.yml b/ansible/roles/elasticsearch/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/elasticsearch/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/etcd/tasks/check.yml b/ansible/roles/etcd/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/etcd/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/freezer/tasks/check.yml b/ansible/roles/freezer/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/freezer/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/gnocchi/tasks/check.yml b/ansible/roles/gnocchi/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/gnocchi/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/grafana/tasks/check.yml b/ansible/roles/grafana/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/grafana/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/haproxy/tasks/check.yml b/ansible/roles/haproxy/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/haproxy/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/heat/tasks/check.yml b/ansible/roles/heat/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/heat/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/horizon/tasks/check.yml b/ansible/roles/horizon/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/horizon/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/influxdb/tasks/check.yml b/ansible/roles/influxdb/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/influxdb/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/ironic/tasks/check.yml b/ansible/roles/ironic/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/ironic/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/iscsi/tasks/check.yml b/ansible/roles/iscsi/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/iscsi/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/karbor/tasks/check.yml b/ansible/roles/karbor/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/karbor/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/kibana/tasks/check.yml b/ansible/roles/kibana/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/kibana/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/kuryr/tasks/check.yml b/ansible/roles/kuryr/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/kuryr/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/magnum/tasks/check.yml b/ansible/roles/magnum/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/magnum/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/manila/tasks/check.yml b/ansible/roles/manila/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/manila/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/memcached/tasks/check.yml b/ansible/roles/memcached/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/memcached/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/mistral/tasks/check.yml b/ansible/roles/mistral/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/mistral/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/mongodb/tasks/check.yml b/ansible/roles/mongodb/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/mongodb/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/multipathd/tasks/check.yml b/ansible/roles/multipathd/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/multipathd/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/murano/tasks/check.yml b/ansible/roles/murano/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/murano/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/neutron/tasks/check.yml b/ansible/roles/neutron/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/neutron/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/nova/tasks/check.yml b/ansible/roles/nova/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/nova/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/octavia/tasks/check.yml b/ansible/roles/octavia/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/octavia/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/panko/tasks/check.yml b/ansible/roles/panko/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/panko/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/prechecks/tasks/check.yml b/ansible/roles/prechecks/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/prechecks/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/rabbitmq/tasks/check.yml b/ansible/roles/rabbitmq/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/rabbitmq/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/rally/tasks/check.yml b/ansible/roles/rally/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/rally/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/sahara/tasks/check.yml b/ansible/roles/sahara/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/sahara/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/searchlight/tasks/check.yml b/ansible/roles/searchlight/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/searchlight/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/senlin/tasks/check.yml b/ansible/roles/senlin/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/senlin/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/solum/tasks/check.yml b/ansible/roles/solum/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/solum/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/stop/tasks/check.yml b/ansible/roles/stop/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/stop/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/tacker/tasks/check.yml b/ansible/roles/tacker/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/tacker/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/telegraf/tasks/check.yml b/ansible/roles/telegraf/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/telegraf/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/tempest/tasks/check.yml b/ansible/roles/tempest/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/tempest/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/trove/tasks/check.yml b/ansible/roles/trove/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/trove/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/vmtp/tasks/check.yml b/ansible/roles/vmtp/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/vmtp/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/watcher/tasks/check.yml b/ansible/roles/watcher/tasks/check.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/watcher/tasks/check.yml @@ -0,0 +1 @@ +--- diff --git a/releasenotes/notes/cli-sanity-check-09f1d7831bf9ff8c.yaml b/releasenotes/notes/cli-sanity-check-09f1d7831bf9ff8c.yaml new file mode 100644 index 0000000000..fe8ae1570c --- /dev/null +++ b/releasenotes/notes/cli-sanity-check-09f1d7831bf9ff8c.yaml @@ -0,0 +1,4 @@ +--- +features: + - Add a new subcommand 'check' to kolla-ansible, used + to run the smoke/sanity checks. diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 251b3239ad..1dc75d32e4 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -46,6 +46,7 @@ Options: Commands: prechecks Do pre-deployment checks for hosts + check Do post-deployment smoke tests mariadb_recovery Recover a completely stopped mariadb cluster bootstrap-servers bootstrap servers with kolla deploy dependencies destroy Destroy Kolla containers, volumes and host configuration @@ -157,6 +158,10 @@ case "$1" in ACTION="Pre-deployment checking" EXTRA_OPTS="$EXTRA_OPTS -e action=precheck" ;; +(check) + ACTION="Post-deployment checking" + EXTRA_OPTS="$EXTRA_OPTS -e action=check" + ;; (mariadb_recovery) ACTION="Attempting to restart mariadb cluster" EXTRA_OPTS="$EXTRA_OPTS -e action=deploy -e common_run=true"