Ido Barkan has posted comments on this change.
Change subject: storage: introducing vdsm-dump-chains script (part of vdsm-tool)
......................................................................
Patch Set 12:
(3 comments)
https://gerrit.ovirt.org/#/c/38281/12/lib/vdsm/tool/Makefile.am
File lib/vdsm/tool/Makefile.am:
Line 51: unified_persistence.py \
Line 52: upgrade.py \
Line 53: upgrade_300_networks.py \
Line 54: vdsm-id.py \
Line 55: dump_volume_chains.py \
This should be sorted - move below dump_bonding_defaults.py
Done
Line 56: $(NULL)
Line 57:
Line 58: CLEANFILES = \
Line 59: config.log \
https://gerrit.ovirt.org/#/c/38281/12/lib/vdsm/tool/dump_volume_chains.py
File lib/vdsm/tool/dump_volume_chains.py:
Line 52: pass
Line 53:
Line 54:
Line 55: class ChainError(DumpChainsError):
Line 56: _chainError_message = """Error in volume chain %s: %s
Why _chainError_message? this is part of ChainError - there is not
reason t
Done
Line 57: volumes and parents: %s"""
Line 58:
Line 59: def __init__(self, volumes_children, img_uuid):
Line 60: self.volumes_children = volumes_children
Line 60: self.volumes_children = volumes_children
Line 61: self.img_uuid = img_uuid
Line 62:
Line 63: def __str__(self):
Line 64: volumes = ' '.join(['%s<-%s' % (parent, child) for
parent, child in
This is impossible to read:
Ok, agreed. done.
Line 65: self.volumes_children])
Line 66: return ChainError._chainError_message % (
Line 67: self.img_uuid, self.__class__.__name__, volumes)
Line 68:
--
To view, visit
https://gerrit.ovirt.org/38281
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I428c443bb7d6b2a504a6f77efcd4838f7ae6c404
Gerrit-PatchSet: 12
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <ibarkan(a)redhat.com>
Gerrit-Reviewer: Adam Litke <alitke(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Darshan N <dnarayan(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Vladik Romanovsky <vladik.romanovsky(a)gmail.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: Yaniv Dary <ydary(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes