.split("/")[-1].split(".torrent")[0]
# new releases such as 8.0 and 9.0 use new interface naming scheme
# e.g. 'enp0s4' instead of 'eth1' so we should get version of Fuel from ISO name
- new_versions = ["8.0", "9.0", "10.0", "11.0"]
+ new_versions = ["8.0", "9.0", "10.0", "11.0", "12.0"]
is_new = any(v in cfg["ISO_URL"] for v in new_versions)
cfg["PREPARE_CLUSTER"] = os.getenv("PREPARE_CLUSTER")
if not node.execute(["/tmp/"+UPDATE_HELPER,"first",cfg["UPDATE_TO"]]):
print ("ERROR: First phase of upgrade failed")
return False
-
+
node.execute(["/tmp/"+UPDATE_HELPER,"reboot",cfg["UPDATE_TO"]])
time.sleep(60 * 5)
if node.put_file(UPDATE_HELPER):
return node.execute(["/tmp/"+UPDATE_HELPER,"second",cfg["UPDATE_TO"]])
else:
- print ("ERROR: Unable to copy update script to admin node")
+ print ("ERROR: Unable to copy update script to admin node")
return False