Failed to scale-down k8s cluster

Bug #1509206 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
Eli Qiao

Bug Description

taget@taget-ThinkStation-P300:~/Downloads/kube/kubernetes/examples/redis$ magnum bay-update 8aadfb89-3fef-4d9a-99ff-6423d035e113 add node_count=1
ERROR: Timed out waiting for a reply to message ID 9173fde282e74290bb5069e95455c588 (HTTP 500)

2015-10-23 14:48:22.857 ERROR oslo_messaging.rpc.dispatcher [req-d8513222-635a-4b51-a6b7-2ca962140e45 admin admin] Exception during message handling: 'Bay' object has no attribut
e 'bay_uuid'
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 170, in bay_update
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher _update_stack(context, osc, bay, manager)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 99, in _update_stack
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher context, bay, scale_manager=scale_manager)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 68, in _extract_template_definition
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher scale_manager=scale_manager)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/template_definition.py", line 341, in extract_definition
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher **kwargs)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/template_definition.py", line 471, in get_params
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher scale_mgr.get_removal_nodes(hosts))
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/scale_manager.py", line 50, in get_removal_nodes
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher k8s_api = k8s.create_k8s_api(self.context, bay)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/k8s_api.py", line 110, in create_k8s_api
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher return K8sAPI(context, obj)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/k8s_api.py", line 55, in __init__
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher bay = utils.retrieve_bay(context, obj)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/utils.py", line 20, in retrieve_bay
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher return objects.Bay.get_by_uuid(context, obj.bay_uuid)
2015-10-23 14:48:22.857 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'Bay' object has no attribute 'bay_uuid'

Eli Qiao (taget-9)
Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
status: New → Confirmed
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/238822

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

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

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.