apache / apache/cloudstack

Management Server Jobs Pending View Incorrect

未关闭
#11,056 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
long-term-plan status:needs-reproducing
主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 19 小时
30 天内合并 PR
32

描述

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

贡献指南

打开贡献指南

调研方向

从 Management Server Jobs Pending 视图和 async job API 开始,然后使用 async_job 中 job_status 为 1 或 2 的已完成作业重现该问题。确定哪种所提议的过滤方法适合项目,并验证 Pending Jobs 选项卡只显示状态为 pending 的作业,同时不会隐藏确实处于 pending 状态的作业。

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

评估

领域
api, frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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