Service discovering

Support for next services was added: mysql, rabbitmq, nova-api,
glance-api. Each service contains a list of nodes.

Change-Id: Ief402887a0a95b0397892ac72d52e884c475d0da
This commit is contained in:
Alexey Zaytsev
2016-08-31 15:53:39 +03:00
parent e1f57a21ce
commit 693844be7b
2 changed files with 42 additions and 10 deletions

View File

@@ -43,13 +43,15 @@ def main():
distractor.verify()
# os_failures library operate with 2 types of objects:
# service - is software that runs in the cloud, e.g. keystone
# nodes - nodes that host the cloud, e.g. hardware server with hostname
# service - is software that runs in the cloud, e.g. keystone, mysql,
# rabbitmq, nova-api, glance-api
# nodes - nodes that host the cloud, e.g. hardware server with hostname
logging.info('# Get a particular service in the cloud')
service = distractor.get_service(name='keystone-api')
service = distractor.get_service(name='keystone')
logging.info('Keystone API Service: %s', service)
# Note: Only for Keystone!
logging.info('# Restart the service')
service.restart()