apache / apache/cloudstack

cmk create kubernetescluster serviceofferingid issue (CKS)

オープン
#13,408 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:kubernetes
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
32

説明

### problem

When using cmk to create kubernetescluster with nodeoffering, I left out the serviceofferingid (the legacy parameter pre 4.21) which I thought was optional as it will be overwritten with nodeoffering anyway.
The CKS was created sucessfully but when I try to upgrade the kubernetes cluster, I get the error "Invalid service offering associated with Kubernetes cluster". The upgrade seems to check for serviceofferingid and require it to be present even though you can create one without serviceofferingid.

Image

A second related issue is when I put a serviceofferingid of a 1 vcpu 1 GB ram in cmk create kubernetescluster as a way to pass the upgrade check. To my suprise, when I try to upgrade, cloudstack complains that the template does not meed minimum hardware requirement even though the template I put in to nodeoffering satisfy this requirement. So it must be using serviceofferingid to verify the hardware requirement when upgrade was triggered.

### versions

4.22.1 KVM NFS

### The steps to reproduce the bug

1. use cmk (or api) to create cks with nodeoffering ommiting serviceofferingid
2. Try to upgrade CKS
3.
...

### What to do about it?

The correct behaviour for the upgrade process is to also check for the presence of nodeoffering and use this to detect minimum hardware requirement

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

CloudStack 4.22.1 で cmk または API を使って問題を再現します。nodeoffering は指定するが serviceofferingid は指定せずに Kubernetes クラスターを作成し、その後アップグレードを試みます。Kubernetes クラスターのアップグレードパスを追跡し、serviceofferingid と nodeoffering で検証方法がどのように異なるかを比較します。nodeoffering が存在する場合にアップグレードでそれが使用され、その最小ハードウェア要件が正しく検証されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, kubernetes
領域
backend-api-design, cloud, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。