Hi,
Please find my setup details below,
OS: Ubuntu12.04 LTS 64B
Mode: Openstack Grizzly Single node
I have openstack grizzly single node setup with all the servcies up and running.
I'm running in a config issue with cinder-volume service while I'm trying to attach the volume to the instance.
I'm using storage multibackend feature using thatI can create/delete volumes but not attaching to the instance im getting the following error.
#########################
Cinder volume log
########################
2013-04-27 01:25:40 ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 665, in initialize_connection
return self.driver.initialize_connection(volume_ref, connector)
File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 336, in initialize_connection
if self.configuration.iscsi_helper == 'lioadm':
File "/usr/lib/python2.7/dist-packages/cinder/volume/configuration.py", line 83, in __getattr__
return getattr(self.local_conf, value)
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1708, in __getattr__
return self._conf._get(name, self._group)
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1513, in _get
value = self._substitute(self._do_get(name, group))
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1529, in _do_get
info = self._get_opt_info(name, group)
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1629, in _get_opt_info
raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option in group driver-1: iscsi_helper
2013-04-27 01:25:40 ERROR [cinder.openstack.common.rpc.common] Returning exception no such option in group driver-1: iscsi_helper to caller
2013-04-27 01:25:40 ERROR [cinder.openstack.common.rpc.common] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data\n rval = self.proxy.dispatch(ctxt, version, method, **args)\n', ' File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n return getattr(proxyobj, method)(ctxt, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 665, in initialize_connection\n return self.driver.initialize_connection(volume_ref, connector)\n', ' File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 336, in initialize_connection\n if self.configuration.iscsi_helper == \'lioadm\':\n', ' File "/usr/lib/python2.7/dist-packages/cinder/volume/configuration.py", line 83, in __getattr__\n return getattr(self.local_conf, value)\n', ' File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1708, in __getattr__\n return self._conf._get(name, self._group)\n', ' File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1513, in _get\n value = self._substitute(self._do_get(name, group))\n', ' File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1529, in _do_get\n info = self._get_opt_info(name, group)\n', ' File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1629, in _get_opt_info\n raise NoSuchOptError(opt_name, group)\n', 'NoSuchOptError: no such option in group driver-1: iscsi_helper\n']
###################
Cinder.conf file
###################
[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
sql_connection = mysql://cinderUser:cinderPass@10.1.0.29/cinder
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper=tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
volumes_dir = /etc/cinder/volumes
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
verbose = True
auth_strategy = keystone
debug=true
#osapi_volume_listen_port=5900
# a list of backends that will be served by this compute node
enabled_backends=driver-1,driver-2
[driver-1]
iscsi_helper=tgtadm
volume_group = cinder-volumes
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
volume_backend_name=LVM_iSCSI
[driver-2]
volume_driver=cinder.volume.drivers.san.hp_lefthand.HpSanISCSIDriver
volume_backend_name=LHN_iSCSI
volume_group = cinder-volumes
iscsi_helper=tgtadm
san_ip=********
san_login=*****
san_password=*****
san_ssh_port=16022
san_clustername=******
san_thin_provision=True
san_is_local=False
Kindly let me know, if you need any more details
Hi Shausy,
You shouldn't specify the iscsi_helper in the driver sub-config. You have it specified in the defaults already which is all you need/should have.
Also, I don't think the HP LHN driver has the configurable back-end name options enabled, you'll need to change volume_backend_name to: 'HpSanISCSIDriver'.
I can't figure out where/why the LIO helper is getting picked up, but try fixing up the cinder.conf file and see where that gets us and we'll go from there.