cmk create kubernetescluster serviceofferingid issue (CKS)
- Langage dominant
- Java
- Étoiles
- 3.1k
- Forks
- 1.4k
- Merge moyen
- 6 j 19 h
- PR mergées (30 j)
- 32
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le problème avec cmk ou l’API sur CloudStack 4.22.1 : créez un cluster Kubernetes avec un nodeoffering mais sans serviceofferingid, puis tentez une mise à niveau. Suivez le chemin de mise à niveau du cluster Kubernetes et comparez la manière dont serviceofferingid est validé par rapport à nodeoffering. Le travail est terminé lorsque les mises à niveau utilisent nodeoffering lorsqu’il est présent et valident correctement ses exigences matérielles minimales.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, kubernetes
- Domaine
- backend-api-design, cloud, infrastructure
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 52/100