Vitor de Lima has posted comments on this change.
Change subject: utils.py: Add hostUUID retrieval support for KVM on PPC64
......................................................................
Patch Set 3:
(2 comments)
....................................................
File lib/vdsm/utils.py
Line 687: with open(constants.P_VDSM_NODE_ID) as f:
Line 688: __hostUUID = f.readline().replace("\n", "")
Line 689: else:
Line 690: arch = platform.machine()
Line 691: if arch == 'x86_64':
Done
Line 692: p = subprocess.Popen([constants.EXT_SUDO,
Line 693: constants.EXT_DMIDECODE, "-s",
Line 694: "system-uuid"],
Line 695: close_fds=True, stdin=subprocess.PIPE,
Line 707: elif arch in ('ppc', 'ppc64'):
Line 708: #eg. output IBM,03061C14A
Line 709: if os.path.exists('/proc/device-tree/system-id'):
Line 710: with open('/proc/device-tree/system-id') as f:
Line 711: systemId = f.readline()
It is just to not exceed the 80 columns limit that is enforced in the project.
Line 712: __hostUUID =
systemId.rstrip('\0').replace(',', '')
Line 713:
Line 714: if legacy:
Line 715: try:
--
To view, visit
http://gerrit.ovirt.org/8637
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I7a557b096550631e340fcc61bcb3fa4c3ae73837
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Pradipta Banerjee <bpradip(a)in.ibm.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Better Saggi <bettersaggi(a)gmail.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa <gustavo.pedrosa(a)eldorado.org.br>
Gerrit-Reviewer: Itamar Heim <iheim(a)redhat.com>
Gerrit-Reviewer: Leonardo Bianconi <leonardo.bianconi(a)eldorado.org.br>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek(a)redhat.com>
Gerrit-Reviewer: Pradipta Banerjee <bpradip(a)in.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr(a)redhat.com>
Gerrit-Reviewer: Vitor de Lima <vitor.lima(a)eldorado.org.br>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes