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 <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Better Saggi <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa
<[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Leonardo Bianconi <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Pradipta Banerjee <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Vitor de Lima <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches