master node not registered to nodes list in k8s coreos

Bug #1625581 reported by yatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
yatin

Bug Description

master node is not registered:

can also be checked using: kubectl get nodes

following logs can be found using: "journalctl -fu kubelet"

here: 10.0.0.11 is ip of master node:-
Sep 20 11:04:17 k8-krssvjbbvj-0-mo5hijvbjkse-kube-master-rx2b2gs72zhk.novalocal kubelet-wrapper[1182]: E0920 11:04:17.029024 1182 kubelet.go:2741] Error updating node status, will retry: error getting node "10.0.0.11": nodes "10.0.0.11" not found
Sep 20 11:04:17 k8-krssvjbbvj-0-mo5hijvbjkse-kube-master-rx2b2gs72zhk.novalocal kubelet-wrapper[1182]: E0920 11:04:17.046861 1182 kubelet.go:2741] Error updating node status, will retry: error getting node "10.0.0.11": nodes "10.0.0.11" not found
Sep 20 11:04:17 k8-krssvjbbvj-0-mo5hijvbjkse-kube-master-rx2b2gs72zhk.novalocal kubelet-wrapper[1182]: E0920 11:04:17.074396 1182 kubelet.go:2741] Error updating node status, will retry: error getting node "10.0.0.11": nodes "10.0.0.11" not found
Sep 20 11:04:17 k8-krssvjbbvj-0-mo5hijvbjkse-kube-master-rx2b2gs72zhk.novalocal kubelet-wrapper[1182]: E0920 11:04:17.102382 1182 kubelet.go:2741] Error updating node status, will retry: error getting node "10.0.0.11": nodes "10.0.0.11" not found
Sep 20 11:04:17 k8-krssvjbbvj-0-mo5hijvbjkse-kube-master-rx2b2gs72zhk.novalocal kubelet-wrapper[1182]: E0920 11:04:17.131290 1182 kubelet.go:2741] Error updating node status, will retry: error getting node "10.0.0.11": nodes "10.0.0.11" not found

Fix:
kubelet configuration should include:
    --register-node=true \
    --register-schedulable=false \

yatin (yatinkarel)
Changed in heat:
assignee: nobody → yatin (yatinkarel)
yatin (yatinkarel)
Changed in heat:
status: New → In Progress
Revision history for this message
Thomas Herve (therve) wrote :

Doesn't look Heat related.

Changed in heat:
status: In Progress → Opinion
status: Opinion → Invalid
Revision history for this message
yatin (yatinkarel) wrote :

Sorry, it was for magnum, i will update.

affects: heat → magnum
Changed in magnum:
status: Invalid → In Progress
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/373657

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

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

commit b8dd781f320ad39daa61364ba6cb2a527ac86a87
Author: yatin <email address hidden>
Date: Wed Sep 21 11:03:38 2016 +0530

    Register master node but make it non schedulable

    master node is not registered in k8s_coreos, it should
    register but should be marked as non schedulable.
    This is done by adding following parameters to kubelet
    args:-
        --register-node=true
        --register-schedulable=false

    Change-Id: Ifc2d52dadc128f4e09cfe5b1bea924dae725cd7c
    Closes-Bug: #1625581

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/376016

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (stable/newton)

Reviewed: https://review.openstack.org/376016
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=52fd593e15f23fac65439d332096060f00fd61a7
Submitter: Jenkins
Branch: stable/newton

commit 52fd593e15f23fac65439d332096060f00fd61a7
Author: yatin <email address hidden>
Date: Wed Sep 21 11:03:38 2016 +0530

    Register master node but make it non schedulable

    master node is not registered in k8s_coreos, it should
    register but should be marked as non schedulable.
    This is done by adding following parameters to kubelet
    args:-
        --register-node=true
        --register-schedulable=false

    Change-Id: Ifc2d52dadc128f4e09cfe5b1bea924dae725cd7c
    Closes-Bug: #1625581
    (cherry picked from commit b8dd781f320ad39daa61364ba6cb2a527ac86a87)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.1.1

This issue was fixed in the openstack/magnum 3.1.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 4.0.0

This issue was fixed in the openstack/magnum 4.0.0 release.

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.