handle exception for updating a bay which its stack has been deleted

Bug #1500186 reported by Peiyu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
Unassigned

Bug Description

After i create a bay and delete its corresponding stack manually, i update the bay:
magnum bay-update k8sbay replace node_count=2

the error message in cmd is:Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py"
, line 142, in _dispatch_and_reply
    executor_callback))

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py"
, line 186, in _dispatch
    executor_callback)

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py"
, line 129, in _do_dispatch
    result = func(ctxt, **new_args)

  File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 160,|
 in bay_update
    raise exception.NotSupported(operation=operation)

NotSupported: Updating a bay when stack status is "DELETE_COMPLETE" is not suppo|
rted.
 (HTTP 400)

i think it should be handled more friendly.

Revision history for this message
Martin Falatic (martinfalatic) wrote :

Is this about the fact that this throws a long exception or because the error message isn't more explicitly stated ("Bay does not exist" or something)?

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
space (fengzhr)
Changed in magnum:
assignee: nobody → space (fengzhr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/267367

Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by fengzhr (<email address hidden>) on branch: master
Review: https://review.openstack.org/267367

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/267612

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by fengzhr (<email address hidden>) on branch: master
Review: https://review.openstack.org/267612

space (fengzhr)
Changed in magnum:
assignee: space (fengzhr) → nobody
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.