Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

5671

September 22nd, 2017 05:00

ScaleIO with OpenStack: Volume driver ScaleIODriver not initialized after integrating ScaleIO with OpenStack

Hi,

I have integrated ScaleIO setup with OpenStack. The ScaleIO Cinder Driver didn't initialized on the OpenStack Controllers after adding the scaleio configurations in cinder.conf and restarting the volume service. Following are the logs from cinder/volume.log.

2017-09-22 12:13:48.803 527018 ERROR cinder.volume.drivers.emc.scaleio [req-232ce3cc-2575-4c77-b72a-0d76687147b1 - - - - -] Error getting domain id from name default: Unauthorized.

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service [req-232ce3cc-2575-4c77-b72a-0d76687147b1 - - - - -] Error starting thread.

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service Traceback (most recent call last):

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 708, in run_service

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     service.start()

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/cinder/service.py", line 234, in start

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     self.manager.init_host(added_to_cluster=self.added_to_cluster)

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 425, in init_host

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     self.driver.init_capabilities()

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/cinder/volume/driver.py", line 704, in init_capabilities

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     stats = self.get_volume_stats(True)

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/scaleio.py", line 999, in get_volume_stats

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     self._update_volume_stats()

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/scaleio.py", line 885, in _update_volume_stats

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service     raise exception.VolumeBackendAPIException(data=msg)

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error getting domain id from name default: Unauthorized.

2017-09-22 12:13:48.808 527018 ERROR oslo_service.service

2017-09-22 12:13:48.834 245919 INFO oslo_service.service [req-de6fa29f-6e9e-4d23-8b40-8c56049b1ab8 - - - - -] Child 527018 exited with status 1

2017-09-22 12:13:48.847 527107 INFO cinder.service [-] Starting cinder-volume node (version 9.1.1)

2017-09-22 12:13:48.877 527107 INFO cinder.coordination [-] Coordination backend started successfully.

2017-09-22 12:13:48.878 527107 INFO cinder.volume.manager [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] Starting volume driver ScaleIODriver (2.0)

2017-09-22 12:13:48.879 527107 WARNING cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] Verify certificate is not set, using default of False.

2017-09-22 12:13:48.880 527107 INFO cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] ScaleIO get domain id by name request: https://10.10.51.240:443/api/types/Domain/instances/getByName::default.

2017-09-22 12:13:48.881 527107 INFO cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] username: admin, verify_cert: False.

2017-09-22 12:13:48.945 527107 WARNING py.warnings [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

  InsecureRequestWarning)

2017-09-22 12:13:48.951 527107 INFO cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] Token is invalid, going to re-login and get a new one.

2017-09-22 12:13:48.996 527107 WARNING py.warnings [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

  InsecureRequestWarning)

2017-09-22 12:13:49.006 527107 INFO cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] Going to perform request again https://10.10.51.240:443/api/types/Domain/instances/getByName::default with valid token.

2017-09-22 12:13:49.048 527107 WARNING py.warnings [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

  InsecureRequestWarning)

2017-09-22 12:13:49.055 527107 INFO cinder.volume.drivers.emc.scaleio [req-5c0a7619-898b-44b8-bc47-3879195b2de3 - - - - -] Get domain by name response: {

"message" : "Unauthorized",

"httpStatusCode" : 401,

"errorCode" : 0

}

I have checked the username and password for ScaleIO, they are correct. Following are the configuration added in cinder.conf:

[scaleio]

volume_driver = cinder.volume.drivers.emc.scaleio.ScaleIODriver

volume_backend_name = scaleio

san_ip = 10.10.51.240

#sio_protection_domain_name = default

sio_protection_domain_id = 21ad348900000000

#sio_storage_pool_name = defaultSP

sio_storage_pool_id = c3e4eb1a00000000

san_login = admin

san_password = adminPass

Any thing I am missing?

No Responses!
No Events found!

Top