Hide Forgot
Description of problem: caps/machinetype: move machine-type related code to new module Change-Id: Ia7bf79c66a38329672e1fbd3fd41a94058803b58 Signed-off-by: Martin Polednik <mpolednik> Reviewed-on: https://gerrit.ovirt.org/54212 Actual results: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/otopi/context.py", line 146, in _executeMethod method['method']() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/all-in-one/cpu.py", line 134, in _validation cpu, compatible = self._getCompatibleCpuModels() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/all-in-one/cpu.py", line 97, in _getCompatibleCpuModels caps._getCompatibleCpuModels(), AttributeError: 'module' object has no attribute '_getCompatibleCpuModels'
(In reply to Sandro Bonazzola from comment #0) > Description of problem: > caps/machinetype: move machine-type related code to new module > Change-Id: Ia7bf79c66a38329672e1fbd3fd41a94058803b58 > Signed-off-by: Martin Polednik <mpolednik> > Reviewed-on: https://gerrit.ovirt.org/54212 > > Actual results: > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/otopi/context.py", line 146, in > _executeMethod > method['method']() > File > "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt- > engine/all-in-one/cpu.py", line 134, in _validation > cpu, compatible = self._getCompatibleCpuModels() > File > "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt- > engine/all-in-one/cpu.py", line 97, in _getCompatibleCpuModels > caps._getCompatibleCpuModels(), > AttributeError: 'module' object has no attribute '_getCompatibleCpuModels' So the setup was using a private unsupported caps.py function?
(In reply to Francesco Romani from comment #1) > So the setup was using a private unsupported caps.py function? It's oVirt Live. I see it's now public: vdsm.machinetype.getCompatibleCpuModels()
final API is vdsm.machinetype.compatible_cpu_models()
CodeChange, nothing for QE.