cmk create kubernetescluster serviceofferingid issue (CKS)
- 主要語言
- Java
- 星號
- 3.1k
- 分支
- 1.4k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 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.
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 時,升級會使用 nodeoffering,並正確驗證其最低硬體需求。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java, kubernetes
- 領域
- backend-api-design, cloud, infrastructure
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100