2.4.2 windows image never says "Synced" in 'boot-resources read' API output


#1

We installed MaaS from 18.04 LTS without adding the PPA explicitly, hence the version.

The UI reports that the image has synchronized to the rack controllers (in both the Images and Controllers pages), but the API just says “Uploaded”:

root@maasapi1-684e:/home/ubuntu# /usr/bin/maas admin boot-resources read
Success.
Machine-readable output follows:
[
<snip>
{
        "id": 6,
        "type": "Synced",
        "name": "ubuntu/bionic",
        "architecture": "amd64/hwe-18.04-lowlatency-edge",
        "resource_uri": "/MAAS/api/2.0/boot-resources/6/",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,hwe-18.10,hwe-19.04"
    },
    {
            "id": 27,
            "type": "Uploaded",
            "name": "windows/winserver2016",
            "architecture": "amd64/generic",
            "resource_uri": "/MAAS/api/2.0/boot-resources/27/",
            "subarches": "generic",
            "title": "winserver2016"
    }

    //

    root@maasapi1-684e:/home/ubuntu# /usr/bin/maas admin boot-resource read 27
    Success.
    Machine-readable output follows:
    {
    "id": 27,
    "type": "Uploaded",
    "name": "windows/winserver2016",
    "architecture": "amd64/generic",
    "resource_uri": "/MAAS/api/2.0/boot-resources/27/",
    "subarches": "generic",
    "title": "winserver2016",
    "sets": {
        "20190702": {
            "version": "20190702",
            "label": "uploaded",
            "size": 6074946231,
            "complete": true,
            "files": {
                "root-dd": {
                    "filename": "root-dd",
                    "filetype": "root-dd",
                    "sha256": "1d532165f4f188bffb67257cb9ba9fa4121007e4810ec9df0dc30a0cc4a049c8",
                    "size": 6074946231,
                    "complete": true
                }
            }
        }
    }
    }
]

I also don’t see any references to the Windows image in the Postgres database when browsing its contents directly, although I may not be looking in the right places.

All that said, the correct uefi-grub is delivered via PXE (so I know MaaS recognizes this as a valid Windows image) and I can successfully deploy the resulting image to the machine. I’m just trying to determine whether or not this is expected behavior.

Thank you.