[Bug 1866248] [NEW] [regression] get_usage_info fails with OSError class not found, raised on ocata.

Jorge Niedbalski 1866248 at bugs.launchpad.net
Thu Mar 5 20:37:03 UTC 2020


Public bug reported:

[Description]

Fix for LP: #1698786 backported https://review.openstack.org/625965
into ocata, but python-rbd versions lower than 12.0.3 lacks the specific OSError exception.

var/log/cinder/cinder-volume.log:20:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/rbd.py", line 474, in _update_volume_stats
var/log/cinder/cinder-volume.log:21:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service     total_gbi = self._get_usage_info()
var/log/cinder/cinder-volume.log:22:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/rbd.py", line 386, in _get_usage_info
var/log/cinder/cinder-volume.log:23:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service     except (self.rbd.ImageNotFound, self.rbd.OSError):
var/log/cinder/cinder-volume.log:24:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service AttributeError: 'module' object has no attribute 'OSError'

[Proposed solution]

* Revert -updates
* Implement a new fix that makes use of the class IOError (https://github.com/ceph/ceph/blob/master/src/pybind/rbd/rbd.pyx#L854), that is also available on 10.2.11 (https://github.com/ceph/ceph/blob/v10.2.11/src/pybind/rbd/rbd.pyx#L335)

** Affects: cloud-archive
     Importance: Critical
         Status: Triaged

** Also affects: cloud-archive
   Importance: Undecided
       Status: New

** Changed in: cinder
       Status: New => Fix Released

** No longer affects: cinder

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1866248

Title:
  [regression] get_usage_info fails with OSError class not found, raised
  on ocata.

Status in Ubuntu Cloud Archive:
  Triaged

Bug description:
  [Description]

  Fix for LP: #1698786 backported https://review.openstack.org/625965
  into ocata, but python-rbd versions lower than 12.0.3 lacks the specific OSError exception.

  var/log/cinder/cinder-volume.log:20:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/rbd.py", line 474, in _update_volume_stats
  var/log/cinder/cinder-volume.log:21:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service     total_gbi = self._get_usage_info()
  var/log/cinder/cinder-volume.log:22:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/rbd.py", line 386, in _get_usage_info
  var/log/cinder/cinder-volume.log:23:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service     except (self.rbd.ImageNotFound, self.rbd.OSError):
  var/log/cinder/cinder-volume.log:24:2020-03-05 06:25:22.514 1207092 ERROR oslo_service.service AttributeError: 'module' object has no attribute 'OSError'

  [Proposed solution]

  * Revert -updates
  * Implement a new fix that makes use of the class IOError (https://github.com/ceph/ceph/blob/master/src/pybind/rbd/rbd.pyx#L854), that is also available on 10.2.11 (https://github.com/ceph/ceph/blob/v10.2.11/src/pybind/rbd/rbd.pyx#L335)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1866248/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list