Unsolved
This post is more than 5 years old
13 Posts
0
910
September 22nd, 2016 01:00
ERROR: Bad Request (HTTP 400) while trying to create cinder volume after Vipr Integration
I have been trying to integrate ViPR with cinder and have come across an issue. Before going in detail about my question, please see below the configurations.
[vipr-driver]
volume_driver = cinder.volume.drivers.emc.vipr.fc.EMCViPRFCDriver
volume_backend_name=EMCViPRFCDriver
vipr_hostname=coprhd1.domain.com
vipr_port=4443
vipr_username=root
vipr_password=
vipr_tenant=OpenStack admin
vipr_project=vProject
vipr_varray=vArray
vipr_cookiedir=/tmp/cinder
vipr_emulate_snapshot= True
#vipr_security_file=
rpc_response_timeout=300
[keystone_authtoken]
auth_uri = http://keystoneip:5000/v2.0
auth_url = http://keystoneip:35357/v2.0
admin_tenant_name = services
admin_user = cinder_cinderv2
admin_password = HnXg6Ht234Lb92j9789w5jFhs3btLqXYVkYh9JRWTVcxL26JzrWPNgkBcFkpgXyx
signing_dir = /var/cache/cinder
# /cli/controller-openstack-cinder/cinder/volume/drivers/emc/vipr
The followng files are present in the above directory
__init__.py common.py fc.py iscsi.py scaleio.py
At first, I was encountering this Error
ERROR: SSL exception connecting to https://:8776/v1/2dc56ff15982431082eb7142e1de2b46/volumes/detail
Whenever I executed the command cinder list after source nova.rc
But the issue was resolved once i used the
--insecure
handle with it
cinder --insecure list
+----+--------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+----+--------+--------------+------+-------------+----------+-------------+
+----+--------+--------------+------+-------------+----------+-------------+
As you can see no volume information is displayed and when I try to create a volume through
cinder --insecure create --display-name test 10
ERROR: Bad Request (HTTP 400)
The cinder volume log, when reviewed shows the following error:
ImportError: No module named vipr.fc
where the volume_driver = cinder.volume.drivers.emc.vipr.fc.EMCViPRFCDriver
is specified and fc.py
is present inside the viper directory. One thing to mention here that I'm using working on OpenStack Kilo.
Secondly, I have been trying to run Viprcli from the Viprcli directory
/usr/local/lib/python2.7/dist-packages/cinder/bin/viprcli-3.0-py2.7.egg/viprcli
/usr/local/lib/python2.7/dist-packages/cinder/bin/viprcli-3.0-py2.7.egg/viprcli$ ./viprcli authenticate -u root -d /usr/cookiedir
but i get the error
The token is not generated by authentication service.
I have followed this guide: https://github.com/emcvipr/controller-openstack-cinder to integrate vipr. Any Help on the matter would be highly appreciated. Please let me know if further information is required