Ask Your Question
1

cinder [-] No module named drivers.nfs

asked 2013-11-19 05:36:11 -0600

jorenwu gravatar image

updated 2013-11-22 10:25:30 -0600

sgordon gravatar image

I installed the openstack on CentOS6.3 by YUM.
And I have deploy a controller node with ip 10.32.11.240.
Now, I want to add a nfs node(ip 10.32.19.104) to the controller with Cinder.

However, I encountered a problem like below:

~#/etc/init.d/openstack-cinder-volume start   
~# tail /var/log/cinder/volume.log  
**2013-11-19 10:57:56 25696 CRITICAL cinder [-] No module named drivers.nfs**

Here is the cinder and openstack version I have installed:

~# cinder-manage version list   
2012.2 (2012.2-LOCALBRANCH:LOCALREVISION)

And below is the configuration of the cinder:

~# cat /etc/cinder/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://nova:nova@10.32.11.240/cinder   
rpc_backend = cinder.openstack.common.rpc.impl_qpid   
rootwrap_config = /etc/cinder/rootwrap.conf   
my_ip = 10.32.19.104   
qpid_hostname = 10.32.11.240   
qpid_port = 5672   
volume_driver=cinder.volume.drivers.nfs.NfsDriver    
nfs_shares_config=/home/joren/openstack/shares.txt   
nfs_mount_point_base=/home/cinder_mount   
[keystone_authtoken]   
admin_tenant_name = %SERVICE_TENANT_NAME%   
admin_user = %SERVICE_USER%    
admin_password = %SERVICE_PASSWORD%   
auth_host = 10.32.11.240    
auth_port = 35357   
auth_protocol = http    
signing_dirname = /tmp/keystone-signing-cinder

At last, I read the codes of Cinder in Havana version, there is a nfs.py under directory cinder\volume\drivers. Is that the version I installed not support nfs?

Any help is appreciated.
Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-19 07:44:06 -0600

jorenwu gravatar image

updated 2013-11-19 07:48:42 -0600

I fix it myself.

My version is different with Havana, and the configuration of nfs driver should be changed like:
volume_driver=cinder.volume.nfs.NfsDriver

Because, the path to this nfsdriver is differnent:
~# ll /usr/lib/python2.6/site-packages/cinder/volume/
total 924
........
-rw-r--r-- 1 cinder cinder 10266 Oct 31 2012 nfs.py
-rw-r--r-- 2 cinder cinder 11072 Oct 31 2012 nfs.pyc
-rw-r--r-- 2 cinder cinder 11072 Oct 31 2012 nfs.pyo
......

edit flag offensive delete link more

Comments

Great, thanks for sharing the fix.

ruperzio gravatar imageruperzio ( 2013-11-19 18:46:55 -0600 )edit

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-11-19 05:36:11 -0600

Seen: 430 times

Last updated: Nov 22 '13