apache / apache/cloudstack

cmk create kubernetescluster serviceofferingid issue (CKS)

未关闭
#13,408 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
component:kubernetes
主要语言
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.

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 时,升级使用 nodeoffering,并正确验证其最低硬件要求。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, kubernetes
领域
backend-api-design, cloud, infrastructure
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。