Start a Conversation

Unsolved

This post is more than 5 years old

4227

June 15th, 2015 02:00

OpenStack(Icehouse) cinder cannot find vipr.fc

Hi,

I am trying to use the vipr cinder plugin for openstack Icehouse: https://github.com/emcvipr/controller-openstack-cinder/blob/master/README.md

I have a ViPR2.2SP1, Icehouse and the vipr installed correctly.

Now, cinder-volume service cannot start with following error. How can I solve it?

Any info is welcome.

[root@opst01 emc]# service openstack-cinder-volume restart

Stopping openstack-cinder-volume:                          [FAILED]

Starting openstack-cinder-volume:                          [  OK  ]

but actually failed. and I can see in /var/log/cinder/volume.log

2015-06-15 17:54:47.975 10603 CRITICAL cinder [-] ImportError: No module named vipr.fc

2015-06-15 17:54:47.975 10603 TRACE cinder Traceback (most recent call last):

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/bin/cinder-volume", line 73, in

2015-06-15 17:54:47.975 10603 TRACE cinder     server = service.Service.create(binary='cinder-volume')

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/lib/python2.6/site-packages/cinder/service.py", line 202, in create

2015-06-15 17:54:47.975 10603 TRACE cinder     service_name=service_name)

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/lib/python2.6/site-packages/cinder/service.py", line 90, in __init__

2015-06-15 17:54:47.975 10603 TRACE cinder     *args, **kwargs)

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 208, in __init__

2015-06-15 17:54:47.975 10603 TRACE cinder     host=self.host)

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/lib/python2.6/site-packages/cinder/openstack/common/importutils.py", line 38, in import_object

2015-06-15 17:54:47.975 10603 TRACE cinder     return import_class(import_str)(*args, **kwargs)

2015-06-15 17:54:47.975 10603 TRACE cinder   File "/usr/lib/python2.6/site-packages/cinder/openstack/common/importutils.py", line 28, in import_class

2015-06-15 17:54:47.975 10603 TRACE cinder     __import__(mod_str)

2015-06-15 17:54:47.975 10603 TRACE cinder ImportError: No module named vipr.fc

2015-06-15 17:54:47.975 10603 TRACE cinder

I put vipr driver

[root@opst01 emc]# ls -l /usr/lib/python2.6/site-packages/cinder/volume/drivers/emc/vipr/

total 88

-rwx------. 1 544 10513 49991 Mar 23 23:17 common.py

-rwx------. 1 544 10513  9056 Mar 23 23:17 fc.py

-rwx------. 1 544 10513     0 Mar 23 23:17 __init__.py

-rwx------. 1 544 10513  7780 Mar 23 23:17 iscsi.py

-rwx------. 1 544 10513 12821 Mar 23 23:17 scaleio.py

And in cinder.conf

[root@opst01 emc]# cat /etc/cinder/cinder.conf | more

[Default]

volume_driver = cinder.volume.drivers.emc.vipr.fc.EMCViPRFCDriver

vipr_hostname=xxxxx

vipr_port=4443

vipr_username=root

vipr_password='xxxxxx'

vipr_tenant="Provider Tenant"

vipr_project=PSDLAB

vipr_varray=PSD-LAB_VNX5500_Pool10_rename

vipr_cookiedir=/tmp

vipr_storage_vmax=False

In viewpoint of python, I can load this vipr.fc. Another error is seen, but I believe it is not a problem.

[root@opst01 emc]# python

Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import sys

>>> import vipr.fc

/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.

  _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)

>>> vipr.fc.driver

1 Message

October 22nd, 2015 13:00

Did you ever resolve this, I have the same issue after running through the instructions?

13 Posts

October 4th, 2016 12:00

If anyone could answer this I am also facing the same issue.

No Events found!

Top