This utility can perform a set of checks for basic OpenStack functionality.
It currently tests Keystone, Glance, Cinder, Neutron and Nova.
python setup.py install
OR pip install .
openstackcheck
, having necessary environment variables set in the environment or an .env file
- openstacksdk
- paramiko
- environs
- requests
openstackcheck can be configured using the following environment variables (can be stored in an .env
file in the working directory):
KEYSTONE_URL
(required) - URL of the Keystone serviceKEYSTONE_ADMIN_TOKEN
(required, unless username + password provided) - admin token for authorizationKEYSTONE_ADMIN_USERNAME
(required, unless token provided) - admin username for authorizationKEYSTONE_ADMIN_PASSWORD
(required, unless token provided) - admin password for authorizationKEYSTONE_ADMIN_PROJECT
(required) - ID of the admin projectKEYSTONE_USER_DOMAIN
- domain of the admin userKEYSTONE_PROJECT_DOMAIN
- domain of the admin projectSMOKETEST_DOMAIN
- domain name to use for the tests, defaults tosmokecheck
SMOKETEST_PROJECT
- project name to use for the tests, defaults tosmokecheck
SLACK_WEBHOOK_URL
(required) - webhook URL for Slack notificationsGLANCE_IMAGE
- Glance image name or ID to use for server creation (defaults to first found image)NOVA_FLAVOR
- flavor to use for vm, alternatively, the lowest sized one enough to launch the image is selected.NEUTRON_EXTERNAL_NET
- publically accessible network name (defaults topublic
)
Example can be found in .env.example
.