Ask Your Question
1

Unable to load Nexenta volume on Cinder

asked 2013-04-26 13:48:13 -0500

Bada gravatar image

updated 2013-07-23 13:06:24 -0500

smaffulli gravatar image

Hi,

I am trying to use a nexenta storage with Grizzly relase.

Cinder.conf :

[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
sql_connection = mysql://cinderUser:xxxxxxxx@10.32.14.x/cinder
api_paste_config = /etc/cinder/api-paste.ini
verbose = True
auth_strategy = keystone
volume_driver=nexenta.volume.NexentaDriver
nexenta_host=192.168.1.x
nexenta_user=admin
nexenta_password=xxxx
nexenta_volume=Volume01
nexenta_iscsi_target_portal_port=3260
nexenta_rest_port=2000
nexenta_rest_protocol="auto"
nexenta_sparse=false
nexenta_target_prefix="iqn.1986-03.com.sun:02:nova-"
nexenta_target_group_prefix="nova/"
iscsi_helper=tgtadm

Error in /var/log/cinder/cinder-volume.log

    service_name=service_name)
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 330, in __init__
    *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 129, in __init__
    configuration=self.configuration)
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/importutils.py", line 40, in import_object
    return import_class(import_str)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/importutils.py", line 30, in import_class
    __import__(mod_str)
ImportError: No module named nexenta.volume

How to load nexenta volume module ?

Small update i modified files according to : https://github.com/openstack/cinder/commit/f4f75ca9c0833475cfdb547bdad6a4d618e9e842

But still the same error:

2013-04-27 01:35:11 CRITICAL [cinder] No module named nexenta.volume
Traceback (most recent call last):
  File "/usr/bin/cinder-volume", line 57, in <module>
    server = service.Service.create(binary='cinder-volume')
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 435, in create
    service_name=service_name)
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 330, in __init__
    *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 129, in __init__
    configuration=self.configuration)
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/importutils.py", line 40, in import_object
    return import_class(import_str)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/importutils.py", line 30, in import_class
    __import__(mod_str)
ImportError: No module named nexenta.volume
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-28 22:28:21 -0500

jgriffith gravatar image

Try changing the path on the volume driver to: volume_driver=cinder.volume.drivers.nexenta.volume.NexentaDriver

edit flag offensive delete link more
-1

answered 2013-07-23 05:50:23 -0500

Bhavaniprasad gravatar image

Hi, i am also facing same issue. Even i changed volume_driver to cinder.volume.drivers.nexenta.volume.NexentaDriver. but i am getting different error in /var/log/cinder/cinder-volume.log

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 227, in _start_child self._child_process(wrap.server) File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 204, in _child_process launcher.run_server(server) File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 95, in run_server server.start() File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 355, in start self.manager.init_host() File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 143, in init_host self.driver.check_for_setup_error() File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/nexenta/volume.py", line 98, in check_for_setup_error if not self.nms.volume.object_exists(FLAGS.nexenta_volume): File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/nexenta/jsonrpc.py", line 80, in __call__ response = jsonutils.loads(response_data) File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/jsonutils.py", line 127, in loads return json.loads(s) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

please help me out

edit flag offensive delete link more

Comments

If you think you have a different error, please ask a separate question.

smaffulli gravatar imagesmaffulli ( 2013-07-23 13:05:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-04-26 13:48:13 -0500

Seen: 478 times

Last updated: Jul 23 '13