From 5418ada148e9dd23c8dc691a9cf2dcab1fcf13a6 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Fri, 24 Feb 2017 14:22:23 +0000 Subject: [PATCH] Enable sanity checks from kolla-ansible Add a new subcommand 'check' to kolla-ansible, used to run the smoke/sanity checks. Add stub files to all services that don't currently have checks. Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48 Partially-implements: blueprint sanity-check-container --- ansible/roles/aodh/tasks/check.yml | 1 + ansible/roles/barbican/tasks/check.yml | 1 + ansible/roles/baremetal/tasks/check.yml | 1 + ansible/roles/bifrost/tasks/check.yml | 1 + ansible/roles/ceilometer/tasks/check.yml | 1 + ansible/roles/ceph/tasks/check.yml | 1 + ansible/roles/certificates/tasks/check.yml | 1 + ansible/roles/chrony/tasks/check.yml | 1 + ansible/roles/cloudkitty/tasks/check.yml | 1 + ansible/roles/collectd/tasks/check.yml | 1 + ansible/roles/common/tasks/check.yml | 1 + ansible/roles/congress/tasks/check.yml | 1 + ansible/roles/designate/tasks/check.yml | 1 + ansible/roles/destroy/tasks/check.yml | 1 + ansible/roles/elasticsearch/tasks/check.yml | 1 + ansible/roles/etcd/tasks/check.yml | 1 + ansible/roles/freezer/tasks/check.yml | 1 + ansible/roles/gnocchi/tasks/check.yml | 1 + ansible/roles/grafana/tasks/check.yml | 1 + ansible/roles/haproxy/tasks/check.yml | 1 + ansible/roles/heat/tasks/check.yml | 1 + ansible/roles/horizon/tasks/check.yml | 1 + ansible/roles/influxdb/tasks/check.yml | 1 + ansible/roles/ironic/tasks/check.yml | 1 + ansible/roles/iscsi/tasks/check.yml | 1 + ansible/roles/karbor/tasks/check.yml | 1 + ansible/roles/kibana/tasks/check.yml | 1 + ansible/roles/kuryr/tasks/check.yml | 1 + ansible/roles/magnum/tasks/check.yml | 1 + ansible/roles/manila/tasks/check.yml | 1 + ansible/roles/memcached/tasks/check.yml | 1 + ansible/roles/mistral/tasks/check.yml | 1 + ansible/roles/mongodb/tasks/check.yml | 1 + ansible/roles/multipathd/tasks/check.yml | 1 + ansible/roles/murano/tasks/check.yml | 1 + ansible/roles/neutron/tasks/check.yml | 1 + ansible/roles/nova/tasks/check.yml | 1 + ansible/roles/octavia/tasks/check.yml | 1 + ansible/roles/panko/tasks/check.yml | 1 + ansible/roles/prechecks/tasks/check.yml | 1 + ansible/roles/rabbitmq/tasks/check.yml | 1 + ansible/roles/rally/tasks/check.yml | 1 + ansible/roles/sahara/tasks/check.yml | 1 + ansible/roles/searchlight/tasks/check.yml | 1 + ansible/roles/senlin/tasks/check.yml | 1 + ansible/roles/solum/tasks/check.yml | 1 + ansible/roles/stop/tasks/check.yml | 1 + ansible/roles/tacker/tasks/check.yml | 1 + ansible/roles/telegraf/tasks/check.yml | 1 + ansible/roles/tempest/tasks/check.yml | 1 + ansible/roles/trove/tasks/check.yml | 1 + ansible/roles/vmtp/tasks/check.yml | 1 + ansible/roles/watcher/tasks/check.yml | 1 + releasenotes/notes/cli-sanity-check-09f1d7831bf9ff8c.yaml | 4 ++++ tools/kolla-ansible | 5 +++++ 55 files changed, 62 insertions(+) create mode 100644 ansible/roles/aodh/tasks/check.yml create mode 100644 ansible/roles/barbican/tasks/check.yml create mode 100644 ansible/roles/baremetal/tasks/check.yml create mode 100644 ansible/roles/bifrost/tasks/check.yml create mode 100644 ansible/roles/ceilometer/tasks/check.yml create mode 100644 ansible/roles/ceph/tasks/check.yml create mode 100644 ansible/roles/certificates/tasks/check.yml create mode 100644 ansible/roles/chrony/tasks/check.yml create mode 100644 ansible/roles/cloudkitty/tasks/check.yml create mode 100644 ansible/roles/collectd/tasks/check.yml create mode 100644 ansible/roles/common/tasks/check.yml create mode 100644 ansible/roles/congress/tasks/check.yml create mode 100644 ansible/roles/designate/tasks/check.yml create mode 100644 ansible/roles/destroy/tasks/check.yml create mode 100644 ansible/roles/elasticsearch/tasks/check.yml create mode 100644 ansible/roles/etcd/tasks/check.yml create mode 100644 ansible/roles/freezer/tasks/check.yml create mode 100644 ansible/roles/gnocchi/tasks/check.yml create mode 100644 ansible/roles/grafana/tasks/check.yml create mode 100644 ansible/roles/haproxy/tasks/check.yml create mode 100644 ansible/roles/heat/tasks/check.yml create mode 100644 ansible/roles/horizon/tasks/check.yml create mode 100644 ansible/roles/influxdb/tasks/check.yml create mode 100644 ansible/roles/ironic/tasks/check.yml create mode 100644 ansible/roles/iscsi/tasks/check.yml create mode 100644 ansible/roles/karbor/tasks/check.yml create mode 100644 ansible/roles/kibana/tasks/check.yml create mode 100644 ansible/roles/kuryr/tasks/check.yml create mode 100644 ansible/roles/magnum/tasks/check.yml create mode 100644 ansible/roles/manila/tasks/check.yml create mode 100644 ansible/roles/memcached/tasks/check.yml create mode 100644 ansible/roles/mistral/tasks/check.yml create mode 100644 ansible/roles/mongodb/tasks/check.yml create mode 100644 ansible/roles/multipathd/tasks/check.yml create mode 100644 ansible/roles/murano/tasks/check.yml create mode 100644 ansible/roles/neutron/tasks/check.yml create mode 100644 ansible/roles/nova/tasks/check.yml create mode 100644 ansible/roles/octavia/tasks/check.yml create mode 100644 ansible/roles/panko/tasks/check.yml create mode 100644 ansible/roles/prechecks/tasks/check.yml create mode 100644 ansible/roles/rabbitmq/tasks/check.yml create mode 100644 ansible/roles/rally/tasks/check.yml create mode 100644 ansible/roles/sahara/tasks/check.yml create mode 100644 ansible/roles/searchlight/tasks/check.yml create mode 100644 ansible/roles/senlin/tasks/check.yml create mode 100644 ansible/roles/solum/tasks/check.yml create mode 100644 ansible/roles/stop/tasks/check.yml create mode 100644 ansible/roles/tacker/tasks/check.yml create mode 100644 ansible/roles/telegraf/tasks/check.yml create mode 100644 ansible/roles/tempest/tasks/check.yml create mode 100644 ansible/roles/trove/tasks/check.yml create mode 100644 ansible/roles/vmtp/tasks/check.yml create mode 100644 ansible/roles/watcher/tasks/check.yml create mode 100644 releasenotes/notes/cli-sanity-check-09f1d7831bf9ff8c.yaml 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"