Cinder-volume can't start up with EMC driver

Asked by Kimi Zhang

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

Question information

Language:
English Edit question
Status:
Solved
For:
Cinder Edit question
Assignee:
No assignee Edit question
Solved by:
zhangchao
Solved:
Last query:
Last reply:
Revision history for this message
Vivekanandan B (bvivek) said :
#1

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

~Vivek

Revision history for this message
Kimi Zhang (kimi-zhangkai) said :
#2

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

<?xml version='1.0' encoding='UTF-8'?>
<EMC>
<StorageType>0</StorageType>
<EcomServerIp>10.68.125.11</EcomServerIp>
<EcomServerPort>5988</EcomServerPort>
<EcomUserName>admin</EcomUserName>
<EcomPassword>password</EcomPassword>
</EMC>

Kimi

Revision history for this message
Best zhangchao (zhangchao010) said :
#3

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

Revision history for this message
Kimi Zhang (kimi-zhangkai) said :
#4

Thanks zhangchao, that solved my question.

Revision history for this message
Kimi Zhang (kimi-zhangkai) said :
#5

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: <email address hidden> [mailto:<email address hidden>] 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

    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

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

You received this question notification because you asked the question.