Skip to content

Instantly share code, notes, and snippets.

@csallen1204
Created December 30, 2019 12:21
Show Gist options
  • Save csallen1204/259c5c416a63d1f9e6daf208f7f4a318 to your computer and use it in GitHub Desktop.
Save csallen1204/259c5c416a63d1f9e6daf208f7f4a318 to your computer and use it in GitHub Desktop.
cinderlib output
>>> import cinderlib as cl
>>> HSA = cl.Backend(hpelefthand_password="password", volume_backend_name="HSA", suppress_requests_ssl_warnings=False, hpelefthand_debug=True, hpelefthand_clustername="persist-storage", volume_driver="cinder.volume.drivers.hpe.hpe_lefthand_iscsi.HPELeftHandISCSIDriver", enable_unsupported_driver=True, hpelefthand_username="cinder", hpelefthand_api_url="https://10.10.4.125:8081/lhos")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/callen/.local/lib/python2.7/site-packages/cinderlib/cinderlib.py", line 90, in __init__
self.driver.init_capabilities()
File "/home/callen/.local/lib/python2.7/site-packages/cinder/volume/driver.py", line 748, in init_capabilities
stats = self.get_volume_stats(True)
File "/home/callen/.local/lib/python2.7/site-packages/cinder/utils.py", line 784, in trace_logging_wrapper
return f(*args, **kwargs)
File "/home/callen/.local/lib/python2.7/site-packages/cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py", line 696, in get_volume_stats
self._update_backend_status(client)
File "/home/callen/.local/lib/python2.7/site-packages/cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py", line 739, in _update_backend_status
fields=['members[id]', 'members[clusterName]', 'members[size]'])
File "/home/callen/.local/lib/python2.7/site-packages/hpelefthandclient/client.py", line 527, in getVolumes
all_members = body['members']
KeyError: 'members'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment