Allow usage of multiple power drivers at once

* Deprecated power_management parameter.
* Added power_managements to configuration.
* Removed power_management variable from NodeCollection
  and Service.
* Added PowerManager class that controls running of
  power drivers.
* Updated docs.

Change-Id: Idabcb1fb907022f0d556667cbf3c36326f526a08
This commit is contained in:
Anton Studenov
2017-01-25 12:58:36 +03:00
parent 8bbbc75bdb
commit 3954065549
21 changed files with 416 additions and 304 deletions

View File

@@ -26,12 +26,14 @@ def main():
'private_key_file': '~/.ssh/os_faults',
}
},
'power_management': {
'driver': 'libvirt',
'args': {
'connection_uri': 'qemu+ssh://ubuntu@host.local/system'
'power_managements': [
{
'driver': 'libvirt',
'args': {
'connection_uri': 'qemu+ssh://ubuntu@host.local/system'
}
}
}
]
}
logging.info('# Create connection to the cloud')