attach volume failed in redhat6.7 first time afer rebooting system.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zVM Cloud Connector |
Fix Committed
|
Medium
|
cao biao |
Bug Description
reboot the system and attach volume to instance of os version redhat 6.7 will failed and report error like following:
>>> vop.attach(
No handlers could be found for logger "ZVMSDK"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "volumeop.py", line 463, in attach
multipath, os_version)
File "volumeop.py", line 440, in _attach
raise exception.
zvmsdk.
But if I execute attach again, the action will succeed.
Reason still not found, open a bug to track this.
Changed in python-zvm-sdk: | |
assignee: | nobody → cao biao (flytiger) |
Changed in python-zvm-sdk: | |
importance: | Undecided → Critical |
importance: | Critical → Medium |
status: | New → Confirmed |
I found the solution but still do not know the reason of this problem.
solution is call config.load_config before init SDKAPI, like this:
from zvmsdk import config load_config( ) volume_ attach( connection_ info)
config.
from zvmsdk import api
sdkapi = api.SDKAPI()
sdkapi.
by doing this, the problem will not happen again.
I think this problem will disappear after I add REST API for volume.
Because load_config is called in wsgi now.