ERROR: Bad Request (HTTP 400) while trying to create cinder volume

asked 2016-09-21 06:30:01 -0500

Mustafa gravatar image

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=<password>
vipr_tenant=OpenStack admin
vipr_project=vProject
vipr_varray=vArray
vipr_cookiedir=/tmp/cinder
vipr_emulate_snapshot= True
#vipr_security_file=<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

The following directory contains the viper driver files as they should:

# /cli/controller-openstack-cinder/cinder/volume/drivers/emc/vipr

__init__.py common.py fc.py iscsi.py scaleio.py

At first I was encountering this Error

ERROR: SSL exception connecting to https://<Coprhd IP>:8776/v1/2dc56ff15982431082eb7142e1de2b46/volumes/detail

when ever 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)

I get the above stated error. Please See the Log below:

tail -30 /var/log/cinder/cinder-volume.log

2016-09-20 04:43:45.852 21378 TRACE cinder     is_vol_db_empty=vol_db_empty)
2016-09-20 04:43:45.852 21378 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 38, in import_object
2016-09-20 04:43:45.852 21378 TRACE cinder     return import_class(import_str)(*args, **kwargs)
2016-09-20 04:43:45.852 21378 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 27, in import_class
2016-09-20 04:43:45.852 21378 TRACE cinder     __import__(mod_str)
2016-09-20 04:43:45.852 21378 TRACE cinder ImportError: No module named vipr.fc
2016-09-20 04:43:45.852 21378 TRACE cinder
2016-09-20 04:43:46.138 21422 DEBUG oslo_db.api [-] Loading backend 'sqlalchemy' from 'cinder.db.sqlalchemy.api' _load_backend /usr/lib/python2.7/dist-packages/oslo_db/api.py:214
2016-09-20 04:43:46.281 21422 DEBUG oslo_db.sqlalchemy.session [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/session.py:513
2016-09-20 04:43:46.350 21422 DEBUG oslo_db.sqlalchemy.session [req-8337ca4b-b519-4215-8e02-659d49cc92af - - - - -] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/session.py:513
2016-09-20 04:43:46.358 21422 INFO cinder.volume.manager [req-8337ca4b-b519-4215-8e02-659d49cc92af - - - - -] Determined volume DB was empty at startup.
2016-09-20 04:43:46.358 21422 DEBUG cinder.volume.manager [req-8337ca4b-b519-4215-8e02-659d49cc92af - - - - -] Cinder Volume DB check: vol_db_empty=True __init__ /usr/lib/python2.7/dist-packages/cinder/volume/manager.py:212
2016-09-20 04:43:46.358 21422 CRITICAL cinder [req-8337ca4b-b519-4215-8e02-659d49cc92af - - - - -] ImportError: No module named vipr.fc
2016-09-20 04:43:46.358 21422 TRACE cinder Traceback (most recent call last):
2016-09-20 04:43:46.358 21422 TRACE cinder   File "/usr/bin/cinder-volume", line ...
(more)
edit retag flag offensive close merge delete