rbd driver _trash_purge exception handling
Bug #1852471 reported by
Eric Harney
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Jon Bernard |
Bug Description
Detected by our pylint job...
_trash_purge does "except Exception as e" and then assumes that e.errno exists, which is not valid. This means that non-OSError exceptions will cascade into another messy exception here.
Should only check for e.errno on exception types where that is valid. (Which is OSError, I think)
Changed in cinder: | |
assignee: | nobody → Jon Bernard (jbernard) |
status: | New → In Progress |
Changed in cinder: | |
importance: | Undecided → Low |
To post a comment you must log in.
Addressed by: https:/ /review. opendev. org/c/openstack /cinder/ +/694140