bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

Cinder can't create volume neither access old volume #89

Closed goku417 closed 11 years ago

goku417 commented 11 years ago

Hi Guys,

I need your help! Last week I upgraded Folsom to Grizzly Everything was perfect except for cinder.

He can't create new volume and he can't access the old ones too.

Here's my cinder.conf

rootwrap_config=/etc/cinder/rootwrap.conf sql_connection = mysql://cinderUser:cinderPass@10.0.1.2/cinder api_paste_config = /etc/cinder/api-paste.ini iscsi_helper=iscsiadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone iscsi_target_prefix=iqn.2010-10.org.openstack: iscsi_ip_address=192.168.4.76


Here's my cinder-volume log when i try to create a volume

_2013-06-25 09:41:55 ERROR [cinder.volume.manager] volume volume-b679ad36-9e22-4d01-87f2-84f70d6ef4a4: create failed 2013-06-25 09:41:55 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 283, in createvolume LOG.error(("volume %s: create failed"), volume_ref['name']) File "/usr/lib/python2.7/contextlib.py", line 24, in exit self.gen.next() File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 275, in create_volume model_update = self.driver.create_export(context, volume_ref) File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 489, in create_export chap_auth) File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 225, in create_iscsi_target self._new_target(name, tid, _kwargs) File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 284, in _new_target _kwargs) File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 73, in _run self._execute(self._cmd, args, run_as_root=True, *_kwargs) File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 190, in execute cmd=' '.join(cmd)) ProcessExecutionError: Unexpected error while running command. Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf ietadm --op new --tid=3 --params Name=iqn.2010-10.org.openstack:volume-b679ad36-9e22-4d01-87f2-84f70d6ef4a4 Exit code: 239 Stdout: '' Stderr: 'File exists.\n' **


Your help will be appreciated ! Thank

mahawi commented 11 years ago

its because --tid=3 for ietadm allready exists. delete the new created volume with status error and type via console the following command:

ietadm --op delete --tid=3