The exception handling in utils.py should be improved

Bug #872490 reported by Nachi Ueno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned
OpenStack Quality Assurance
Fix Released
Medium
Unassigned

Bug Description

The exception handling in utils.py should be improved.

- utils.py raises exception.Error. This is not informative.
- IOError、socket.errors are not handled

Nachi Ueno (nati-ueno)
description: updated
summary: - utils.py do not raise informative exceptions
+ The exception handling in utils.py should be improved
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Nachi Ueno (nati-ueno)
Changed in openstack-qa:
status: New → In Progress
Changed in nova:
assignee: nobody → Nachi Ueno (nati-ueno)
Changed in openstack-qa:
assignee: nobody → Nachi Ueno (nati-ueno)
importance: Undecided → Medium
Nachi Ueno (nati-ueno)
Changed in nova:
assignee: Nachi Ueno (nati-ueno) → nobody
Changed in openstack-qa:
assignee: Nachi Ueno (nati-ueno) → nobody
Revision history for this message
Tom Fifield (fifieldt) wrote :

Still an issue in utils.py

Revision history for this message
Andrew Bogott (andrewbogott) wrote :

This looks to be partially fixed by

commit 2f552e957fddcd9e042a09a2d32d32fa564c18e7
Author: Alex Meade <email address hidden>
Date: Thu May 3 14:29:50 2012 -0400

    Replaces exceptions.Error with NovaException

    Fixes bug 817107

    Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a

I'm not clear about the socket.errors bit though.

Revision history for this message
Russell Bryant (russellb) wrote :

Please reopen the bug with more details about specifically where exceptions should be handled if there is anything left to do here at this point. Thanks!

Changed in nova:
status: Confirmed → Fix Released
Nachi Ueno (nati-ueno)
Changed in openstack-qa:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.