Allow change kernel boot parameters of oVirt hosts (#20607)

* cloud: ovirt: add override_display parameter

* cloud: ovirt: add kernel_params parameter

* cloud: ovirt: add reinstall state to ovirt_hosts module

* cloud: ovirt: wait before polling entity state
This commit is contained in:
Ondra Machacek 2017-01-25 15:17:32 +01:00 committed by Ryan Brown
commit 937fc1421b
2 changed files with 95 additions and 14 deletions

View file

@ -283,6 +283,9 @@ def wait(
if wait:
start = time.time()
while time.time() < start + timeout:
# Sleep for `poll_interval` seconds if none of the conditions apply:
time.sleep(float(poll_interval))
# Exit if the condition of entity is valid:
entity = get_entity(service)
if condition(entity):
@ -290,9 +293,6 @@ def wait(
elif fail_condition(entity):
raise Exception("Error while waiting on result state of the entity.")
# Sleep for `poll_interval` seconds if nor of the conditions apply:
time.sleep(float(poll_interval))
def __get_auth_dict():
OVIRT_URL = os.environ.get('OVIRT_URL')