Dan Kenigsberg has posted comments on this change.

Change subject: Adding system information to getCapabilities
......................................................................


Patch Set 3: (2 inline comments)

....................................................
File vdsm/caps.py
Line 264: 
Line 265:     cpuInfo = CpuInfo()
Line 266:     cpuTopology = CpuTopology()
Line 267: 
Line 268:     caps['hostManufacturer'] = 
__getDmidecodeData("system-manufacturer")
I do not know what is "dmidecode util". forking 6 times is not unthinkable, 
it's just a bit excessive, and I wonder ify ou can avoid it.
Line 269:     caps['hostProductName'] = 
__getDmidecodeData("system-product-name")
Line 270:     caps['hostVersion'] = __getDmidecodeData("system-version")
Line 271:     caps['hostSerialNumber'] = 
__getDmidecodeData("system-serial-number")
Line 272:     caps['hostUUID'] = __getDmidecodeData("system-uuid")


....................................................
File vdsm/constants.py.in
Line 147: EXT_VDSM_STORE_NET_CONFIG = '@VDSMDIR@/vdsm-store-net-config'
Line 148: 
Line 149: EXT_WGET = '@WGET_PATH@'
Line 150: EXT_WRITE_NET_CONFIG = '@VDSMDIR@/write-net-config'
Line 151: EXT_DMIDECODE = '@DMIDECODE_PATH@'
I do not know which comments you are referring to. I know that I have 5 
comments on patch set 1 which were left unanswered.

Saggi could tell you more about why a global constants.py is bad. We try to 
have a thin python wrapper for each application we use (see qemuImg), to write 
reusable code. python-dmidecode is something like that. My gut feeling is in 
favor of using it, over re-inventing it. Yet I do not have a very strong 
opinion on the matter. If someone else (Saggi?) acks this, I won't mind.
Line 152: 
Line 153: CMD_LOWPRIO = [EXT_NICE, '-n', '19', EXT_IONICE, '-c', '3']
Line 154: 
Line 155: #


--
To view, visit http://gerrit.ovirt.org/9258
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic429ef101fcf9047c4b552405314dc7ba9ba07a0
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to