cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Management Server Jobs Pending View Incorrect

Open rg9975 opened this issue 5 months ago • 1 comments

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

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

rg9975 avatar Jun 18 '25 17:06 rg9975

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Jun 18 '25 17:06 boring-cyborg[bot]

@rg9975 , I had not used this feature before and in my test environments no jobs are shown at all. Is there something you configured to get this output?

BTW your proposal .1 seems best to me (maybe in combination with .3)

DaanHoogland avatar Jun 25 '25 09:06 DaanHoogland

btw @rg9975 , are you planning any work on this?

DaanHoogland avatar Jun 25 '25 09:06 DaanHoogland

I opened this as I was limited on time to work it at the moment and didn't want it to become lost.

rg9975 avatar Jun 25 '25 13:06 rg9975