apache / apache/cloudstack

No. of CPU Cores in Compute Cluster doesnt display correctly when Cluster has oversubscription more than 1

Ouverte
#9,693 12 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
status:needs-functional-definition
Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 19 h
PR mergées (30 j)
32

Description

##### ISSUE TYPE

* Bug Report

##### COMPONENT NAME

~~~
Compute Cluster UI
~~~

##### CLOUDSTACK VERSION

~~~
4.19.1.1
~~~

##### CONFIGURATION

##### OS / ENVIRONMENT

##### SUMMARY

We have 2 Compute Clusters:

- Cluster 1 : Oversubcription = 1
- Cluster 2 : Oversubcription = 2

Refering to the screenshot below, Cluster 1 is showing the correct No. of CPU Cores allocated.

But for Cluster 2, it seems inaccurate. The number of allocation exceeded whats available. Resulting in a UI error.

![Screenshot 2024-09-17 at 10 23 55 PM](https://github.com/user-attachments/assets/36c46ff6-7d2a-4641-80e5-48e28e040ad0)

![Screenshot 2024-09-17 at 10 24 05 PM](https://github.com/user-attachments/assets/68972682-4bf4-41d4-8d4e-d61b82132c35)

But the bigger problem now, is that both clusters have exceeded the allocation threshold, but there was no notification sent. And neither did cloudstack stop users from creating new virtual machines from the clusters.

Without this, Admins would not be able to ensure n+1 sufficient capacity in the event of a node failure.

![Screenshot 2024-09-17 at 10 34 14 PM](https://github.com/user-attachments/assets/550f0ab7-dc3b-4fbf-b757-75153761b17c)

In summary, there are 3 Issues:

- No. Of Allocated CPU Cores should display the full available amount, after oversubscription
- Admin should get Notification if exceeded the global setting threshold (cluster.cpu.allocated.capacity.notificationthreshold)
- User should not be able to create resources into the cluster after exceeding global setting threshold (cluster.cpu.allocated.capacity.disablethreshold)

##### STEPS TO REPRODUCE

~~~

~~~

##### EXPECTED RESULTS

~~~
- No. Of Allocated CPU Cores should display the full available amount, after oversubscription
- Admin should get Notification if exceeded the global setting threshold (cluster.cpu.allocated.capacity.notificationthreshold)
- User should not be able to create resources into the cluster after exceeding global setting threshold (cluster.cpu.allocated.capacity.disablethreshold)
~~~

##### ACTUAL RESULTS

~~~
- No. Of Allocated CPU Cores should not displaying total available cores correctly, after oversubscription.
- Admin did not get Notification if exceeded the global setting threshold (cluster.cpu.allocated.capacity.notificationthreshold)
- User is able to create resources into the cluster after exceeding global setting threshold (cluster.cpu.allocated.capacity.disablethreshold)
~~~

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par le comportement de la Compute Cluster UI décrit pour la surallocation, ainsi que par les paramètres cluster.cpu.allocated.capacity.notificationthreshold et cluster.cpu.allocated.capacity.disablethreshold. Le payload ne mentionne aucun fichier source ni aucun test. Suivez donc d’abord l’affichage de l’allocation du CPU et la gestion des seuils ; le travail est terminé lorsque l’affichage de la capacité, la notification et l’empêchement de la création de nouvelles VMs sont corrects.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
cloud, infrastructure
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.