Several errors in network operations should be taken as NetworkException instead of InvalidInput

Bug #1770084 reported by dyyang@cn.ibm.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zVM Cloud Connector
Fix Committed
Low
Ya Lian Pan

Bug Description

We only define three types of invalid input error: invalid format/type/number.

Currently in network interfaces, a new exception named InvalidInput is added and used a lot. There are several error cases (eg, specified OSA is not free, active is specified True when guest is in 'off' status, etc.) are wrongly reported as invalidinput error, which should be NetworkOperationError.

Revision history for this message
dyyang@cn.ibm.com (dyyang) wrote :

After more discussion, all module exceptions (NetworkOperationError, GuestOperationError, ImageOperationError) would be converted to internal error in wsgi layer.

We should avoid 500 as possible, so all these kind of resource status error should be reported as Conflict exception.

Huang Rui (bjhuangr)
Changed in python-zvm-sdk:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Ya Lian Pan (yalian)
Ya Lian Pan (yalian)
Changed in python-zvm-sdk:
status: Triaged → In Progress
Revision history for this message
jichenjc (jichenjc) wrote :
Ya Lian Pan (yalian)
Changed in python-zvm-sdk:
status: In Progress → Fix Committed
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.