Remove pending vm handling mechanism from scheduler + fixed issue that update VM's hostname even on migration failure

This commit is contained in:
ahmadbilalkhalid 2019-12-30 20:05:12 +05:00
commit d13a4bcc37
5 changed files with 40 additions and 94 deletions

View file

@ -567,7 +567,7 @@ def main():
settings["etcd"]["image_store_prefix"], value_in_json=True
)
)
if len(image_stores) == 0:
if not image_stores:
data = {
"is_public": True,
"type": "ceph",
@ -583,7 +583,7 @@ def main():
json.dumps(data),
)
app.run(host="::", debug=True)
app.run(host="::", debug=False)
if __name__ == "__main__":