apache / apache/cloudstack

cmk create kubernetescluster serviceofferingid issue (CKS)

Aperta
#13,408 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
component:kubernetes
Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 19h
PR unite (30g)
32

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema con cmk o l’API su CloudStack 4.22.1: crea un cluster Kubernetes con un nodeoffering ma senza serviceofferingid, quindi prova a eseguire un aggiornamento. Traccia il percorso di aggiornamento del cluster Kubernetes e confronta il modo in cui viene convalidato serviceofferingid rispetto a nodeoffering. Il lavoro è completato quando gli aggiornamenti utilizzano nodeoffering quando è presente e convalidano correttamente i requisiti hardware minimi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, kubernetes
Ambito
backend-api-design, cloud, infrastructure
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.