Uploading multiple images from the same ISO results in incorrect names in GUI

Bug #1950694 reported by Joseph Handzik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Caleb Ellis
maas-ui
Fix Released
Unknown

Bug Description

Using version 3.1.0~beta5-10861-g.52020466a

This bug is with the GUI, but I will provide some CLI output to facilitate triage as well.

Using the instructions contained in this repo, provided for use with NVIDIA's DGX OS: https://github.com/DeepOps/packer-maas/tree/master/dgxos5

Two bundles are built for upload - one for DGX A100 systems, and another for DGX 2 systems.

The upload commands used from the CLI are (redacting the username):

maas <user> boot-resources create name='custom/dgx_a100-5.1' title='NVIDIA DGX-A100 5.1' architecture='amd64/generic' filetype='tgz' base_image=ubuntu/focal content@=./dgxos5_dgx_a100.tar.gz

maas <user> boot-resources create name='custom/dgx2-5.1' title='NVIDIA DGX-2 5.1' architecture='amd64/generic' filetype='tgz' base_image=ubuntu/focal content@=dgxos5_dgx2.tar.gz

Important to know (I think) - both tar.gz files are based on the same ISO, but target different system types via the Packer JSON file (which you can take a look at in the GitHub repo above).

Uploading either of the two bundles by itself results in the correct behavior via the GUI. However, once both tar.gz bundles are uploaded, the UI result is the image named "both-uploaded" in the attached zip file.

However, the output from the CLI command 'maas <user> boot-resources read' appears correct - the images are tracked as distinct (note - the skipped 14 id is because I deleted and recreated the DGX-2 upload to make sure I didn't make a mistake).

    {
        "id": 15,
        "type": "Uploaded",
        "name": "dgx2-5.1",
        "architecture": "amd64/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/15/",
        "subarches": "generic",
        "title": "NVIDIA DGX-2 5.1"
    },
    {
        "id": 13,
        "type": "Uploaded",
        "name": "dgx_a100-5.1",
        "architecture": "amd64/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/13/",
        "subarches": "generic",
        "title": "NVIDIA DGX-A100 5.1"
    }

When going to delete an image in the GUI, both images open with the "Delete" button presented (see "click-bottom-trashcan" in the zip file).

Clicking delete on the bottom trashcan results in two custom images in the list still - and the names are as one would expect prior to the bug occurring (see "after-clicking-delete-on-bottom-image" in the zip).

Clicking on the top image's trashcan in the GUI does nothing. Clicking delete on the bottom image's trashcan behaves as one would expect (see "after-clicking-bottom-trashcan-second-time"). Once the delete button is clicked for this bottom row, both images disappear from the GUI - there are no more custom images listed.

Tags: ui
Revision history for this message
Joseph Handzik (jhandzik) wrote :
tags: added: ui
Changed in maas-ui:
importance: Undecided → Unknown
status: New → Unknown
Changed in maas:
assignee: nobody → Caleb Ellis (caleb-ellis)
milestone: none → 3.1.0
importance: Undecided → High
status: New → In Progress
Changed in maas-ui:
status: Unknown → Fix Released
Alberto Donato (ack)
Changed in maas:
status: In Progress → Fix Committed
milestone: 3.1.0 → 3.1.0-rc1
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.