Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

5637

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?

October 4th, 2017 13:00

Yes, you are correct. The ScaleIO MDM credentials will need to be used.

Did you have to change your volume_driver path?

10 Posts

September 22nd, 2017 06:00

By default, we have different passwords for the ScaleIO Gateway and the MDM.

Which one should we mention in the config file for cinder? I have not created a separate user for cinder.

Thanks.

October 2nd, 2017 10:00

Hello,

Looking at your cinder config, specifically this line:

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

This may need to be updated to this:

volume_driver = cinder.volume.drivers.dell_emc.scaleio.driver.ScaleIODriver

You can confirm this by navigating to this directory on your cinder node:

/usr/lib/python2.7/site-packages/cinder/volume/drivers/

Look to see if there is a "dell_emc" or "emc" directory. Based on this, this should be your parameter you use for your volume_driver.

Note that this path may vary due to your OS.

October 2nd, 2017 10:00

Openstack talks through your ScaleIO Gateway, but will need to use your ScaleIO MDM credentials.

10 Posts

October 3rd, 2017 03:00

I used the MDM password, and it worked. I also check this by using rest calls, which didn't work with Gateway's Admin password, the same worked with the MDM's password.

10 Posts

October 18th, 2017 23:00

Hi David,

I used the same path for the driver.

So we need to use the MDM credentials and Gateway's IP in the ScaleIO configuration group added in the cinder.conf file.

3 Posts

February 20th, 2018 00:00

hi everyone . I wanted to know in integration of openstack newton with scaleio which document to follow or where can i find some tested steps for complete implementation of newton and scaleio

and if anyone has documented any steps for this process ,then please can you provide me.

Because the steps given on openstack page and scaleio guide are completely different.

10 Posts

April 19th, 2018 23:00

Hello @Updesh,

What issues are you facing?

No Events found!

Top