Change in vdsm[master]: utils.py: Add hostUUID retrieval support for KVM on PPC64
vitor.lima at eldorado.org.br
vitor.lima at eldorado.org.br
Thu Jan 9 13:04:36 UTC 2014
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 at in.ibm.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Better Saggi <bettersaggi at gmail.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa <gustavo.pedrosa at eldorado.org.br>
Gerrit-Reviewer: Itamar Heim <iheim at redhat.com>
Gerrit-Reviewer: Leonardo Bianconi <leonardo.bianconi at eldorado.org.br>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: Pradipta Banerjee <bpradip at in.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: Vitor de Lima <vitor.lima at eldorado.org.br>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list