emc-openstack / vnxe-cinder-driver

Cinder driver for EMC VNXe systems.
7 stars 2 forks source link

cannot initialize driver with Ussri release #5

Open numewre opened 3 years ago

numewre commented 3 years ago

Hi I have tried installing theses drivers with Ussri release: made three changes import http.cookiejar as cookielib import urllib.request as urllib2 from cinder.volume import volume_utils as vol_utils but now i am getting the below error:

                                                2020-10-18 17:01:39.544 3214713 ERROR oslo_service.service   File "/openstack/venvs/cinder-21.0.1/lib/python3.6/site-packages/cinder/volume/manager.py", line 2635, in _append_volume_stats
                                                2020-10-18 17:01:39.544 3214713 ERROR oslo_service.service     reason='Pools stats reported by the driver are not '
                                                2020-10-18 17:01:39.544 3214713 ERROR oslo_service.service cinder.exception.ProgrammingError: Programming error in Cinder: Pools stats reported by the driver are not reported in a list
                                                2020-10-18 17:01:39.544 3214713 ERROR oslo_service.service
Murray-LIANG commented 3 years ago

This repo is for our legacy product VNXe3200, and it's verified for Ocata and older release. It's not guaranteed that can be run under Ussuri.

Are you using it to manage VNXe3200 storage? You can use unity driver (https://github.com/openstack/cinder/tree/master/cinder/volume/drivers/dell_emc/unity) if you are managing Unity storage.

numewre commented 3 years ago

Hi Murray,

I am using VNXe3200 only. Should I try to use unity driver? or these are only compatible with unity.

and also, i have removed the exception in /openstack/venvs/cinder-21.0.1/lib/python3.6/site-packages/cinder/volume/manager.py and now I can initialize driver but when creating LUN

                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager   File "/openstack/venvs/cinder-21.0.1/lib/python3.6/site-packages/cinder/volume/drivers/emc/emc_vnxe.py", line 218, in _request
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager     err, resp = self._send_request(req)
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager   File "/openstack/venvs/cinder-21.0.1/lib/python3.6/site-packages/cinder/volume/drivers/emc/emc_vnxe.py", line 225, in _send_request
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager     resp = self.url_opener.open(req)
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager   File "/usr/lib64/python3.6/urllib/request.py", line 524, in open
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager     req = meth(req)
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager   File "/usr/lib64/python3.6/urllib/request.py", line 1248, in do_request_
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager     raise TypeError(msg)
                                                2020-10-18 23:02:45.195 3328321 ERROR cinder.volume.manager TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.
Murray-LIANG commented 3 years ago

You could try with Unity driver. cannot guarantee it works 100% for VNXe.

The error you paste is caused by different types of string in python2 and python3.