Change in vdsm[master]: storage: Add multipath-resize command line tool
nsoffer at redhat.com
nsoffer at redhat.com
Mon Mar 16 17:23:04 UTC 2015
Nir Soffer has posted comments on this change.
Change subject: storage: Add multipath-resize command line tool
......................................................................
Patch Set 6:
(2 comments)
https://gerrit.ovirt.org/#/c/38467/6/vdsm/storage/multipath-resize
File vdsm/storage/multipath-resize:
Line 81: args.remove("-v")
Line 82: else:
Line 83: loglevel = logging.INFO
Line 84:
Line 85: logging.basicConfig(level=loglevel, format="%(name)s: %(message)s")
> To debug timeouts and other time-related issues, could be useful to add tim
I log explicit elapsed time for actions that may block.
Line 86:
Line 87: if not args:
Line 88: log.error("No device name specified")
Line 89: return 2
Line 101: log.error("Resizing device %s failed: %s", guid, e)
Line 102: return 1
Line 103: except Exception:
Line 104: log.exception("Unexpected error")
Line 105: return 1
> Maybe add different return code?
I can use 1 for general errors (what you get when exception is unhandled), and 2 for usage error, and 3 for expected errors (rescan failed, resize map failed). I'm not sure if this will be useful.
Line 106:
Line 107: return 0
Line 108:
Line 109:
--
To view, visit https://gerrit.ovirt.org/38467
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I229ef55555fa757989329939a9267041785f2c0f
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Ala Hino <ahino at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Darshan N <dnarayan at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Fred Rolland <frolland at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list