[linux-lvm] python lvm2 calls sometimes Failed to initialize VG Handle.

Pirate Fibonacci pirate112358 at gmail.com
Thu Aug 28 23:55:34 UTC 2014


All,

new install of host.
created volume group, no lvm
I have a class that scans and stores all volumes on init and keeps copy
in it's instance. class has handle error first time only. the second time
I create an instance of it, lvm2 is ok with the same calls.

suggestions?


from volume import *
>>> v = volume()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "volume.py", line 21, in __init__
    self.lv_list_obj[volume_group]  = vg.lvscan()
  File "/usr/lib/python2.7/site-packages/lvm2py/vg.py", line 429, in lvscan
    self.open()
  File "/usr/lib/python2.7/site-packages/lvm2py/vg.py", line 80, in open
    raise HandleError("Failed to initialize VG Handle.")
lvm2py.exception.HandleError: Failed to initialize VG Handle.
>>> v = volume()
>>>

thanks

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20140828/7fb6e60a/attachment.htm>


More information about the linux-lvm mailing list