Unable to create cnf using kubernetes VIM

Bug #1878753 reported by Hiep Mai
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
Hiep Mai

Bug Description

Currently, VIM Kubernetes uses ExtensionsV1beta1Deployment API [1], which is deprecated in version 1.16 [2], to deploy "Deployment" in Kubernetes so it's not possible to deploy a CNF using tacker.

[1]: https://opendev.org/openstack/tacker/src/branch/master/tacker/vnfm/infra_drivers/kubernetes/k8s/translate_outputs.py#L231

[2] https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/

Hiep Mai (hiepmq)
Changed in tacker:
assignee: nobody → Hiep Mai (hiepmq)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tacker (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/728376

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tacker (master)

Reviewed: https://review.opendev.org/728376
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=621a13afba80c85b3855e53633ebb7971d578711
Submitter: Zuul
Branch: master

commit 621a13afba80c85b3855e53633ebb7971d578711
Author: Quang Hiep <email address hidden>
Date: Fri May 15 07:09:18 2020 +0000

    Use API apps/v1 to create deployment

    In Kubernetes version 1.16, deployment in ExtensionsV1beta1Deployment
    is deprecated [1], so it is unable to create cnf.
    In this patch, I first create method to get AppsV1Api [2],
    then I include app_v1_api_client in Kubernetes translate_template to
    create deployment.

    [1]: https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/
    [2]: https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/AppsV1Api.md

    Related-Bug: #1878753
    Change-Id: I0004f5045a6f4aeae84c2105a1dac4369ab3b2fe

Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Medium
Yasufumi Ogawa (yasufum)
Changed in tacker:
status: New → Fix Released
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.