Restarting image import leaves boot-resources empty (selection is made but not saved)

Bug #1640780 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse
2.1
Fix Released
High
Blake Rouse

Bug Description

Sometimes in the CI, boot resources do not start downloading. In the UI, the selections are still shown, but the button says 'Save Selections' indicating that they have not been persisted. In the CLI, boot-sources and boot-source-selections both return something sensible, but boot-resources is empty:

root@autopkgtest:/home/ubuntu# maas maas boot-sources read
Success.
Machine-readable output follows:
[
    {
        "id": 1,
        "updated": "2016-11-10T07:18:22.487",
        "keyring_filename": "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg",
        "keyring_data": "",
        "created": "2016-11-10T07:18:22.487",
        "url": "http://images.maas.io/ephemeral-v3/daily/",
        "resource_uri": "/MAAS/api/2.0/boot-sources/1/"
    }
]
root@autopkgtest:/home/ubuntu# maas maas boot-source-selections read 1
Success.
Machine-readable output follows:
[
    {
        "resource_uri": "/MAAS/api/2.0/boot-sources/1/selections/1/",
        "arches": [
            "amd64"
        ],
        "os": "ubuntu",
        "subarches": [
            "*"
        ],
        "labels": [
            "*"
        ],
        "release": "xenial",
        "id": 1
    }
]
root@autopkgtest:/home/ubuntu# maas maas boot-resources read
Success.
Machine-readable output follows:
[]

Restarting the import again with stop-import and import calls, seems to make things work again.

Related branches

description: updated
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Here's a link the the MAAS log - there are a lot of 'interesting' messages in there

Revision history for this message
Blake Rouse (blake-rouse) wrote :

No link to the long.

Changed in maas:
status: New → Incomplete
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :
Changed in maas:
status: Incomplete → Triaged
importance: Undecided → High
milestone: none → 2.2.0
tags: added: cdoqa-blocker
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Blake Rouse (blake-rouse)
Revision history for this message
Blake Rouse (blake-rouse) wrote :

The attached branch provides the is-importing API that you can now use after calling stop-import to wait for the import to be fully stopped before changing selections and starting the import again.

Changed in maas:
status: In Progress → Fix Committed
John George (jog)
tags: added: cdo-qa-blocker
removed: cdoqa-blocker
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.