apache / apache/cloudstack

Management Server Jobs Pending View Incorrect

Ouverte
#11,056 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
long-term-plan status:needs-reproducing
Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 19 h
PR mergées (30 j)
32

Description

### problem

The Management Server Jobs Pending view in the UI is showing ALL jobs in the async_job table for the management server id, not just those with pending status. This is due to the fact that the API call does not have an option to filter by job status, and the UI logic/view does not filter out non-pending jobs.

![Image](https://github.com/user-attachments/assets/009e2966-0696-427e-8917-a1a9f0e6a5db)

### versions

This was found in Cloudstack 4.19.0.1, but appears to be present in all later versions as well.

### The steps to reproduce the bug

1. Perform actions that cause async jobs to run (AttachVolume for example).
2. Once jobs are complete (job_status=1 or job_status=2 in database), view the management server's Pending Jobs tab.

### What to do about it?

This could be fixed in several ways:

1. Async job api updated to take a filter for job status and UI updated to provide it as input (better performance)
2. UI updated to filter the response data based on job status (could degrade if # of jobs becomes large)
3. UI enhanced to show job status data for the user (and maybe details when a job fails, for example).

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la vue Management Server Jobs Pending et l’async job API, puis reproduisez le problème avec des jobs terminés dans async_job dont le job_status est 1 ou 2. Déterminez quelle approche de filtrage proposée convient au projet et vérifiez que l’onglet Pending Jobs n’affiche que les jobs dont le statut est pending, sans masquer les jobs réellement en attente.

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

Évaluation

Domaine
api, frontend
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.