cinder-backup doesn't set a useful fail_reason on backup record when swift is unavailable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
stephen mulcahy |
Bug Description
When a backup is created - if there is a failure, we set the backup to the error state and give a detailed message about the source of the error in the fail_reason field. In the case of swift being unavailable (because it is not in the list of ENABLED_SERVICES in a devstack localrc for example) - a create backup currently logs the message "[Errno 111] ECONNREFUSED" for the fail_reason.
The backup, restore and delete operations in the swift service need to catch socket.error 111's and raise a more explanatory exception for use by the exception handler in the backup manager by raising a new exception such as
classSwiftConne
message = _("Connection to swift failed") + ": %(reason)s"
or similar
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → grizzly-rc1 |
Changed in cinder: | |
assignee: | nobody → stephen mulcahy (stephen-mulcahy) |
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | grizzly-rc1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/23166
Review: https:/