Kubernetes fedora atomic is not working with cinder volume driver

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

Bug Description

Kuberenetes fedora atomic is not working when using cinder volume driver:

kubelet error: Unable to construct api.Node object for kubelet: failed to get external ID from cloud provider: Failed to find object

Patch: https://review.openstack.org/#/c/318438/ introduce hostname-override, but cinder driver needs node name to attach volume to instances.
Also one more issue is with kublet configuration, AUTH_URL override for v2.0: v3 is replaced with v2 but it should be replaced with v2.0(because v2 is not a valid version)

Steps to reproduce
1. setup magnum with devstack, create keypair: testkey
2. magnum cluster-template-create --name k8s-cluster-template-cinder \
                       --image-id fedora-atomic-latest \
                       --keypair-id testkey \
                       --external-network-id public \
                       --dns-nameserver 8.8.8.8 \
                       --flavor-id ds1G \
                       --docker-volume-size 5 \
                       --network-driver flannel \
                       --coe kubernetes --volume-driver cinder

3. magnum cluster-create --name k8s-cluster1 --cluster-template k8s-cluster-template-cinder --node-count 1 --timeout 120

3. Login to minion node, and check kubelet logs: journalctl -fu kubelet.
Can also try to create pod but it would fail because minion node is not ready.

yatin (yatinkarel)
Changed in magnum:
assignee: nobody → yatin (yatinkarel)
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/373097

Changed in magnum:
status: New → In Progress
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/373417

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

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

commit 6a16c862157cde29533aa177348226ee09e63332
Author: yatin <email address hidden>
Date: Tue Sep 20 15:01:27 2016 +0530

    Fix k8s_fedora to work with cinder volume driver

    cinder volume driver of kubernetes requires hostname to be
    same as instance name so that volume can be attached to
    node running the pod, hostname-override is not required
    by cinder volume driver.

    hostname-override was introduced with following patch:
    I55df72c8f36d81852bde36018c17670101860f79

    In this patch following are fixed:
    1) v3 --> v2(incorrect keystone version) is changed to v3 --> v2.0
    2) --hostname-override is not added to KUBELET_ARGS for cinder
    volume driver.

    Change-Id: I1347b934d99ad6fe04e124e295c4961fe77c6b20
    Closes-Bug: #1625479
    Closes-Bug: #1620455

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

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

commit a7d719d08ac22bc9e023c1dae72bbf20210ff1e6
Author: yatin <email address hidden>
Date: Tue Sep 20 15:01:27 2016 +0530

    Fix k8s_fedora to work with cinder volume driver

    cinder volume driver of kubernetes requires hostname to be
    same as instance name so that volume can be attached to
    node running the pod, hostname-override is not required
    by cinder volume driver.

    hostname-override was introduced with following patch:
    I55df72c8f36d81852bde36018c17670101860f79

    In this patch following are fixed:
    1) v3 --> v2(incorrect keystone version) is changed to v3 --> v2.0
    2) --hostname-override is not added to KUBELET_ARGS for cinder
    volume driver.

    Change-Id: I1347b934d99ad6fe04e124e295c4961fe77c6b20
    Closes-Bug: #1625479
    Closes-Bug: #1620455

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  Edit
Everyone can see this information.

Other bug subscribers