Sanity check playbooks

Registered by Michał Jastrzębski

Create playbooks that validate the services are operational via some simple checks.

Blueprint information

Status:
Started
Approver:
Steven Dake
Priority:
Undefined
Drafter:
Michał Jastrzębski
Direction:
Approved
Assignee:
Paul Bourke
Definition:
Approved
Series goal:
None
Implementation:
Slow progress
Milestone target:
milestone icon pike-3
Started by
Michał Jastrzębski

Related branches

Sprints

Whiteboard

I dont think is a container you are proposing, but rather a playbook to run these tasks. Correct me if I am wrong. --SamYaple

If we have a gate job to deploy kolla, the test scripts should use tests/test_keystone.py as a reference. Really don't think separate containers are needed for each service, but running the test from within a container is certainly fine. --jpeeler

I agree with jpeeler and Sam here. What you probably want is a container with openstack-client inside, and have the playbooks run along doing some magic within that container. To test for availability of certain services. However, that is a mere endpoint check and doesn't help much in HA setups. We should be able to just check a certain port on a certain hostname/IP to test specific services on new nodes, if it returns 200 it's usable else it is not. I'm asuming here a healthy service always returns 200. For simple TCP checks nc could be used, perhaps together with grep. --harmw

After discussion on summit - we'll use kolla-ansible container do to simple read-only tasks after each service check, fail a deployment. This test should be optional in playbooks. - inc0

Raising priority to essential for Newton-1. This work is relatively easy and should be easy to tackle in a distributed fashion. Michal can you fill out the work items please? Thanks! --steak

moving to newton-3 expected to be relased on 2016-09-02. Please try to finish it before that otherwise it will be moved to Octata. - coolsvap

Gerrit topic: https://review.openstack.org/#q,topic:bp/sanity-check-container,n,z

Addressed by: https://review.openstack.org/248152
    Sanity check module

Addressed by: https://review.openstack.org/248165
    Sanity check for keystone

Addressed by: https://review.openstack.org/252598
    Sanity check for glance

Addressed by: https://review.openstack.org/285609
    Sanity check for cinder

Addressed by: https://review.openstack.org/285934
    Sanity check for swift

Addressed by: https://review.openstack.org/340379
    Improve glance sanity check

Addressed by: https://review.openstack.org/347409
    Clean up Glance image after sanity check

Addressed by: https://review.openstack.org/347416
    Add Nova sanity check

Addressed by: https://review.openstack.org/350071
    Add Heat sanity check

Addressed by: https://review.openstack.org/437919
    Enable sanity checks from kolla-ansible

Addressed by: https://review.openstack.org/437920
    Update keystone sanity check to use built in shade

Addressed by: https://review.openstack.org/437949
    Update glance sanity check to use built in shade

Addressed by: https://review.openstack.org/438030
    Update keystone sanity check to use built in shade

Addressed by: https://review.openstack.org/452506
    Add neutron sanity check to use built in shade

Addressed by: https://review.openstack.org/463810
    Grafana post_config checks only need to run locally

Addressed by: https://review.openstack.org/455628
    Support osprofile usage

Addressed by: https://review.openstack.org/477601
    Add sanity checks for Barbican

(?)

Work Items

Work items:
aodh: TODO
cloudkitty: TODO
gnocchi: TODO
kibana: TODO
neutron: TODO
solum: TODO
barbican: TODO
collectd: TODO
grafana: TODO
kuryr: TODO
nova: TODO
stop: TODO
baremetal: TODO
common: TODO
haproxy: TODO
magnum: TODO
octavia: TODO
swift: TODO
bifrost: TODO
congress: TODO
heat: TODO
manila: TODO
panko: TODO
tacker: TODO
ceilometer: TODO
designate: TODO
horizon: TODO
mariadb: TODO
prechecks: TODO
telegraf: TODO
ceph: TODO
destroy: TODO
influxdb: TODO
memcached: TODO
rabbitmq: TODO
tempest: TODO
ceph_pools.yml: TODO
elasticsearch: TODO
ironic: TODO
mistral: TODO
rally: TODO
trove: TODO
certificates: TODO
etcd: TODO
iscsi: TODO
mongodb: TODO
sahara: TODO
vmtp: TODO
chrony: TODO
freezer: TODO
karbor: TODO
multipathd: TODO
searchlight: TODO
watcher: TODO
[pauldbourke] cinder: INPROGRESS
[pauldbourke] glance: INPROGRESS
[pauldbourke] keystone: INPROGRESS
murano: TODO
senlin: TODO

This blueprint contains Public information 
Everyone can see this information.