Discussion:
line 346, in from_blivet_size: AttributeError: 'module' object has no attribute 'Size'
Remi Chateauneu
2015-08-22 08:59:55 UTC
Permalink
Hi

On Fedora 22, after having fixed the error "cannot import name
CryptoError" as explained here:
https://lists.fedorahosted.org/pipermail/openlmi-reviews/2015-March/012692.html
, I get a second error message, in Yawn:

http://127.0.0.1:1234/EnumInstances/CIM_ManagedElement?url=https%3A%2F%2F192.168.1.88&verify=1&ns=root%2Fcimv2

CIM_ERR_FAILED: Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/cmpi_pywbem_bindings.py",
line 82, in __call__
return self.meth(*args, **kwds)
File "/usr/lib64/python2.7/site-packages/cmpi_pywbem_bindings.py",
line 495, in enum_instances
for i in self.proxy.MI_enumInstances(env, op, plist):
File
"/usr/lib/python2.7/site-packages/lmi/storage/SettingProvider.py", line
176, in enum_instances
for setting in self.enumerate_configurations():
File
"/usr/lib/python2.7/site-packages/lmi/storage/LMI_VGStoragePool.py",
line 313, in enumerate_settings
yield self._get_setting_for_device(lv, setting_provider)
File
"/usr/lib/python2.7/site-packages/lmi/providers/cmpi_logging.py", line
267, in _wrapper
result = func(*args, **kwargs)
File
"/usr/lib/python2.7/site-packages/lmi/storage/LMI_VGStoragePool.py",
line 302, in _get_setting_for_device
setting['ExtentSize'] = storage.from_blivet_size(device.peSize)
File "/usr/lib/python2.7/site-packages/lmi/storage/util/storage.py",
line 346, in from_blivet_size
if isinstance(size, blivet.Size):
AttributeError: 'module' object has no attribute 'Size'

Any suggestion please ?

Thanks

Remi
Jan Safranek
2015-08-24 10:12:20 UTC
Permalink
Post by Remi Chateauneu
Hi
On Fedora 22, after having fixed the error "cannot import name
https://lists.fedorahosted.org/pipermail/openlmi-reviews/2015-March/012692.html
http://127.0.0.1:1234/EnumInstances/CIM_ManagedElement?url=https%3A%2F%2F192.168.1.88&verify=1&ns=root%2Fcimv2
File "/usr/lib64/python2.7/site-packages/cmpi_pywbem_bindings.py",
line 82, in __call__
return self.meth(*args, **kwds)
File "/usr/lib64/python2.7/site-packages/cmpi_pywbem_bindings.py",
line 495, in enum_instances
File
"/usr/lib/python2.7/site-packages/lmi/storage/SettingProvider.py", line
176, in enum_instances
File
"/usr/lib/python2.7/site-packages/lmi/storage/LMI_VGStoragePool.py",
line 313, in enumerate_settings
yield self._get_setting_for_device(lv, setting_provider)
File "/usr/lib/python2.7/site-packages/lmi/providers/cmpi_logging.py",
line 267, in _wrapper
result = func(*args, **kwargs)
File
"/usr/lib/python2.7/site-packages/lmi/storage/LMI_VGStoragePool.py",
line 302, in _get_setting_for_device
setting['ExtentSize'] = storage.from_blivet_size(device.peSize)
File "/usr/lib/python2.7/site-packages/lmi/storage/util/storage.py",
line 346, in from_blivet_size
AttributeError: 'module' object has no attribute 'Size'
Any suggestion please ?
You need commit #7f86a34903c5ff6a4e4bb5eda85a4040dab2c00a from
openlmi-storage repository, Blivet has changed blivet.Size to
blivet.size.Size.


Jan

Loading...