Commit 9344a348 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

Added reboot warning message

parent 44dc5f27
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -66,6 +66,12 @@ def update_cluster(version, binary_path, drives_path):
    LOG.info("Cluster update finished ({0} updated, {1} failed, {2} skipped)."
            .format(updated, len(failed), skipped))
    
    if updated > 0:
        LOG.warn('Warning: Drives are currently rebooting. '
                 'Do NOT power off drives or run any other scripts at this time. '
                 'Doing so may cause irreversible failure to the drives. '
                 'This process can take several minutes.')
    
    if len(failed) > 0:
        LOG.info("Printing failed drives.")
        for c in failed: print c
+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,10 @@ def update(hostname, port, path):
    LOG.info("Firmware read, Size={0}".format(len(data)))
    ac.updateFirmware(data)
    LOG.info("Firmware update sent to drive.")
    LOG.warn('Warning: Drives are currently rebooting. '
             'Do NOT power off drives or run any other scripts at this time. '
             'Doing so may cause irreversible failure to the drives. '
             'This process can take several minutes.')

def main():
    import argparse