Ask Your Question
0

Cinder-volume can't start up with EMC driver

asked 2013-05-13 06:53:04 -0500

kimi-zhangkai gravatar image

The cinder version is: openstack-cinder-2013.1-2.el6.noarch

OS: RHEL6.4

When I try to use EMC driver to integrate EMC VNX to be cinder backend, I got following error in /var/log/cinder/volume.log

2013-05-13 14:40:52 CRITICAL [cinder] No module named emc 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.6/site-packages/cinder/service.py", line 435, in create service_name=service_name) File "/usr/lib/python2.6/site-packages/cinder/service.py", line 330, in __init__ args, *kwargs) File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 129, in __init__ configuration=self.configuration) File "/usr/lib/python2.6/site-packages/cinder/openstack/common/importutils.py", line 40, in import_object return import_class(import_str)(args, *kwargs) File "/usr/lib/python2.6/site-packages/cinder/openstack/common/importutils.py", line 30, in import_class __import__(mod_str) ImportError: No module named emc

My cinder.conf : [DEFAULT] logdir = /var/log/cinder state_path = /var/lib/cinder lock_path = /var/lib/cinder/tmp volumes_dir = /etc/cinder/volumes iscsi_helper = tgtadm sql_connection = mysql://cinder:cinder@127.0.0.1/cinder rootwrap_config = /etc/cinder/rootwrap.conf

VG based backend

#volume_name_template = volume-%s #volume_group = cinder-volumes verbose = True auth_strategy = keystone

RabbitMQ

rpc_backend = cinder.openstack.common.rpc.impl_kombu rabbit_host = 10.68.125.11

#EMC backend driver iscsi_target_prefix = iqn.1992-04.com.emc iscsi_ip_address = 198.19.10.111 volume_driver = cinder.volume.emc.EMCISCSIDriver #volume_driver = cinder.volume.emc.EMCSMISISCSIDriver

cinder_emc_config_file = /etc/cinder/cinder_emc_config.xml

[keystone_authtoken] admin_tenant_name = service admin_user = cinder admin_password = password auth_host = 10.68.125.11 auth_port = 35357 auth_protocol = http signing_dirname = /tmp/keystone-signing-cinder

Kimi

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-05-16 03:14:17 -0500

kimi-zhangkai gravatar image

Thanks zhangchao, that solved my question.

edit flag offensive delete link more
0

answered 2013-05-16 01:40:46 -0500

Try to change "volume_driver = cinder.volume.emc.EMCISCSIDriver" to "volume_driver = cinder.volume.drivers.emc.emc_smis_iscsi.EMCSMISISCSIDriver".

edit flag offensive delete link more
0

answered 2013-05-14 18:39:46 -0500

bvivek gravatar image

Can you please tell the

SMIS version you are using have you edited the /etc/cinder/cinder_emc_config.xml file accordingly?

~Vivek

edit flag offensive delete link more
0

answered 2013-05-15 02:16:58 -0500

kimi-zhangkai gravatar image

SMI-S provider: 4.5.1 Yes. I have configured /etc/cinder/cinder_emc_config.xml

<emc> <storagetype>0</storagetype> <ecomserverip>10.68.125.11</ecomserverip> <ecomserverport>5988</ecomserverport> <ecomusername>admin</ecomusername> <ecompassword>password</ecompassword> </emc>

Kimi

edit flag offensive delete link more
0

answered 2013-05-16 03:13:37 -0500

kimi-zhangkai gravatar image

Thanks, after changed the driver name, cinder-volume can start-up.

So the documentation should be updated...

Kimi Zhang +86 186 0800 8182

-----Original Message----- From: bounces@canonical.com [mailto:bounces@canonical.com] On Behalf Of ext zhangchao Sent: Thursday, May 16, 2013 9:41 AM To: Zhang, Kimi (NSN - CN/Cheng Du) Subject: Re: [Question #228743]: Cinder-volume can't start up with EMC driver

Your question #228743 on Cinder changed: https://answers.launchpad.net/cinder/+question/228743 (https://answers.launchpad.net/cinder/...)

Status: Open => Answered

zhangchao proposed the following answer: Try to change "volume_driver = cinder.volume.emc.EMCISCSIDriver" to "volume_driver = cinder.volume.drivers.emc.emc_smis_iscsi.EMCSMISISCSIDriver".


If this answers your question, please go to the following page to let us know that it is solved: https://answers.launchpad.net/cinder/+question/228743/+confirm?answer_id=2 (https://answers.launchpad.net/cinder/...)

If you still need help, you can reply to this email or go to the following page to enter your feedback: https://answers.launchpad.net/cinder/+question/228743 (https://answers.launchpad.net/cinder/...)

You received this question notification because you asked the question.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2013-05-13 06:53:04 -0500

Seen: 117 times

Last updated: May 16 '13