kubectl exec/log are not working on devstack

Bug #1668337 reported by Vijendar Komalla
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Vijendar Komalla

Bug Description

kubectl exec/log commands are not working on Kubernetes cluster created on devstack Magnum. This is due to the fact that hostnames registered with Kubernetes cluster are not FQDN. Probably need to register with FQDN or IP address.

Changed in magnum:
assignee: nobody → Vijendar Komalla (vijendar-komalla)
description: updated
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/439906

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

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

commit 396439f703aea8598a07adac6b562c714fa19113
Author: Vijendar Komalla <email address hidden>
Date: Wed Mar 1 17:17:21 2017 -0600

    Set k8s apiserver preferred address type arg

    Currently not able to run kubectl exec/logs commands
    with a k8s cluster created on devstack. This is due
    to the fact that apiserver is not able to resolve
    the worker node by hostname. This change fixes the
    issue by passing --kubelet-preferred-address-types
    argument to apiserver.

    Change-Id: I9d328626723d11372a6d912fae4edd33b8f01277
    Closes-Bug: #1668337

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/486634

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/486638

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

Reviewed: https://review.openstack.org/486634
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=7cf0b5051ac85977c49fafd1876aa3c773355b75
Submitter: Jenkins
Branch: stable/ocata

commit 7cf0b5051ac85977c49fafd1876aa3c773355b75
Author: Vijendar Komalla <email address hidden>
Date: Wed Mar 1 17:17:21 2017 -0600

    Set k8s apiserver preferred address type arg

    Currently not able to run kubectl exec/logs commands
    with a k8s cluster created on devstack. This is due
    to the fact that apiserver is not able to resolve
    the worker node by hostname. This change fixes the
    issue by passing --kubelet-preferred-address-types
    argument to apiserver.

    Change-Id: I9d328626723d11372a6d912fae4edd33b8f01277
    Closes-Bug: #1668337
    (cherry picked from commit 396439f703aea8598a07adac6b562c714fa19113)

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

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

commit baac010d79be32e3d72b11db6e85fd6175682b67
Author: Vijendar Komalla <email address hidden>
Date: Wed Mar 1 17:17:21 2017 -0600

    Set k8s apiserver preferred address type arg

    Currently not able to run kubectl exec/logs commands
    with a k8s cluster created on devstack. This is due
    to the fact that apiserver is not able to resolve
    the worker node by hostname. This change fixes the
    issue by passing --kubelet-preferred-address-types
    argument to apiserver.

    Change-Id: I9d328626723d11372a6d912fae4edd33b8f01277
    Closes-Bug: #1668337
    (cherry picked from commit 396439f703aea8598a07adac6b562c714fa19113)

tags: added: in-stable-newton
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/494250

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

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

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

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

commit 8e36613965619c480f57f069bb1d46ecd4c626d7
Author: yatin <email address hidden>
Date: Wed Aug 16 21:25:58 2017 +0530

    Fix usage of --kubelet-preferred-address arg for apiserver

    https://review.openstack.org/#/c/439906/ fixed it only for
    tls based cluster, we need kubectl exec/log to work with
    tls-disabled clusters as well.

    Change-Id: Iae2d4bc9af7fc55ab0ce2db97c6b7cf61479a2ff
    Closes-Bug: #1668337

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/497160

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

Reviewed: https://review.openstack.org/497160
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=602cf70d9ba076a10a6b2e27a549705cfd8de426
Submitter: Jenkins
Branch: stable/pike

commit 602cf70d9ba076a10a6b2e27a549705cfd8de426
Author: yatin <email address hidden>
Date: Wed Aug 16 21:25:58 2017 +0530

    Fix usage of --kubelet-preferred-address arg for apiserver

    https://review.openstack.org/#/c/439906/ fixed it only for
    tls based cluster, we need kubectl exec/log to work with
    tls-disabled clusters as well.

    Change-Id: Iae2d4bc9af7fc55ab0ce2db97c6b7cf61479a2ff
    Closes-Bug: #1668337
    (cherry picked from commit 8e36613965619c480f57f069bb1d46ecd4c626d7)

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

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

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

This issue was fixed in the openstack/magnum 6.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.