Adding unit tests for libvirt driver

Also, the patch fixes some mistakes in the docs.

Change-Id: I16ce625fb0c66fc74534b10ec89831eb9516ea16
This commit is contained in:
Yaroslav Lobankov
2016-09-08 19:24:02 +03:00
parent f72f5efabc
commit f4e712600f
7 changed files with 83 additions and 13 deletions

View File

@@ -40,15 +40,15 @@ def main():
# rabbitmq, nova-api, glance-api
# nodes - nodes that host the cloud, e.g. hardware server with hostname
logging.info('# Get nodes where Nova API service runs')
service = destructor.get_service(name='nova-api')
logging.info('# Get nodes where Keystone service runs')
service = destructor.get_service(name='keystone')
nodes = service.get_nodes()
logging.info('Nodes: %s', nodes)
logging.info('# Restart Nova API service on all nodes')
logging.info('# Restart Keystone service on all nodes')
service.restart()
logging.info('# Pick and reset one of Nova API service nodes')
logging.info('# Pick and reset one of Keystone service nodes')
one = nodes.pick()
one.reset()