functest.ci.check_deployment module

OpenStack deployment checker

Verifies that:

  • Credentials file is given and contains the right information
  • OpenStack endpoints are reachable
class functest.ci.check_deployment.CheckDeployment(rc_file='/var/lib/xtesting/conf/env_file')

Bases: object

Check deployment class.

check_all()

Calls all the class functions and returns 0 if all of them succeed. This is the method called by CLI

check_auth_endpoint()

Verifies connectivity to the OS_AUTH_URL given in the RC file and get auth token

check_ext_net()

checks if external network exists

check_glance()

checks that a simple glance operation works

check_neutron()

checks that a simple neutron operation works

check_nova()

checks that a simple nova operation works

check_public_endpoint()

Gets the public endpoint and verifies connectivity to it

check_rc()

Check if RC file exists and contains OS_AUTH_URL

check_service_endpoint(service)

Verifies connectivity to a given openstack service

functest.ci.check_deployment.get_auth_token(os_creds)

Get auth token

functest.ci.check_deployment.main()

Entry point

functest.ci.check_deployment.verify_connectivity(endpoint)

Returns true if an hostname/port is reachable