Nodes don't unregister correctly during Kub cluster flex down

Bug #1511570 reported by Egor Guz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
hongbin

Bug Description

magnum bay-create --name k8sbay --baymodel k8sbaymodel --node-count 2
kubectl get nodes
NAME LABELS STATUS
k8-rx3u4snr7c-0-ugpltcslxk7s-kube-minion-7zikbqn2xfmi kubernetes.io/hostname=k8-rx3u4snr7c-0-ugpltcslxk7s-kube-minion-7zikbqn2xfmi Ready
k8-rx3u4snr7c-1-3z7cqglokv7k-kube-minion-jdu36taopc26 kubernetes.io/hostname=k8-rx3u4snr7c-1-3z7cqglokv7k-kube-minion-jdu36taopc26 Ready

magnum bay-update k8sbay replace node_count=1
kubectl get nodes
NAME LABELS STATUS
k8-rx3u4snr7c-0-ugpltcslxk7s-kube-minion-7zikbqn2xfmi kubernetes.io/hostname=k8-rx3u4snr7c-0-ugpltcslxk7s-kube-minion-7zikbqn2xfmi NotReady
k8-rx3u4snr7c-1-3z7cqglokv7k-kube-minion-jdu36taopc26 kubernetes.io/hostname=k8-rx3u4snr7c-1-3z7cqglokv7k-kube-minion-jdu36taopc26 Ready

Revision history for this message
Ton Ngo (ton-i) wrote :

There is an "unregister" step that is supposed to occur when the node is removed so that k8s will no longer show that node. Apparently this is not happening correctly. I will take a look.

Changed in magnum:
assignee: nobody → Ton Ngo (ton-i)
Hua Wang (humble00)
Changed in magnum:
assignee: Ton Ngo (ton-i) → Hua Wang (humble00)
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/241183

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

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

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

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

Changed in magnum:
assignee: Hua Wang (humble00) → hongbin (hongbin034)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/241183
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=c075bc7ce03ab8faef2bb4731abb995a2847313c
Submitter: Jenkins
Branch: master

commit c075bc7ce03ab8faef2bb4731abb995a2847313c
Author: Hua Wang <email address hidden>
Date: Thu Nov 12 10:16:38 2015 +0800

    Delete kube-register

    1. kubelet can automatically register nodes, so we don't need to
    register nodes.
    2. When we remove a node from the cluster, the nova instance is
    terminated. So the instance has no stop process to run unregister
    script. Heat has a spec [1] to add stop deletion policy now. After
    this function is merged, I will add unregister script back.

    [1] https://review.openstack.org/#/c/243012/

    Change-Id: I9b1ea0eda74f9bfba8b87c67c2bd063c62460336
    Partial-Bug: #1511570

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
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.