Can't delete an image while it is downloading
Bug #2057935 reported by
Jacopo Rota
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
Medium
|
Unassigned | ||
3.5 |
Fix Released
|
Medium
|
Unassigned | ||
maas-ui |
Fix Committed
|
Medium
|
Peter Makowski |
Bug Description
In 3.5.0 when I'm downloading an image the "thrash" action button is available and if I click it the button is pinning until the image has been downloaded. After it is available, it gets deleted and the ui returns to normal
Changed in maas: | |
importance: | Undecided → High |
Changed in maas-ui: | |
milestone: | none → 3.5.0 |
Changed in maas-ui: | |
assignee: | nobody → Peter Makowski (petermakowski) |
Changed in maas-ui: | |
status: | Triaged → Fix Committed |
no longer affects: | maas-ui/3.5 |
no longer affects: | maas/3.6 |
Changed in maas: | |
milestone: | 3.5.0 → 3.6.0 |
assignee: | nobody → Anton Troyanov (troyanov) |
assignee: | Anton Troyanov (troyanov) → nobody |
status: | Triaged → Fix Committed |
To post a comment you must log in.
There are 2 ways we could approach this, both will require back-end work.
Option 1. If a user attempts to delete an image that is currently being imported, the UI can first make a request to `bootresource. stop_import` before calling `bootresource. delete_ image`. stop_import currently stops all imports and doesn't allow to specify particular images. We would need to modify this endpoint to accept image id.
However, bootresource.
Option 2. When bootresource. delete_ image is called on an image being downloaded, the back-end could make sure that download operation is paused before proceeding with the deletion.