Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
goku417 opened this issue Jun 25, 2013 · 1 comment
Closed

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

goku417 opened this issue Jun 25, 2013 · 1 comment

Comments

@goku417
Copy link

goku417 commented Jun 25, 2013

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 create_volume
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
Copy link

mahawi commented Aug 3, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants