boot-resources import fails

I am on bare metal ubuntu 22.04 using CLI. I am attempting to import an image created by packer-maas for Rocky 9. I’ve imported other Ubuntu supported images, jammy and centos. The error being returned is
{“architecture”: [“‘amd64/generic’ is not a valid architecture. It should be one of: ’ '.”]}
The logs indicate a runtime error from the stack trace with a refused connection. I see nginx is listening on 5240. Any suggestions or insight as to what next to get the custom image to import would be greatly appreciated.

Jun 24 15:23:51 campfire maas-regiond[266986]: regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
Jun 24 15:23:57 campfire maas-regiond[266983]: maasserver.bootresources: [critical] Importing boot resources failed.
Jun 24 15:23:57 campfire maas-regiond[266983]:         Traceback (most recent call last):
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/threading.py", line 1010, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             self._target(*self._args, **self._kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 821, in worker
Jun 24 15:23:57 campfire maas-regiond[266983]:             return target()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 49, in work
Jun 24 15:23:57 campfire maas-regiond[266983]:             task()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 192, in doWork
Jun 24 15:23:57 campfire maas-regiond[266983]:             task()
Jun 24 15:23:57 campfire maas-regiond[266983]:         --- <exception caught here> ---
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 269, in inContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = inContext.theWork()  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 285, in <lambda>
Jun 24 15:23:57 campfire maas-regiond[266983]:             inContext.theWork = lambda: context.call(  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 137, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func_in_reactor(*args, **kwargs).wait(LONGTIME)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 196, in wait
Jun 24 15:23:57 campfire maas-regiond[266983]:             result.raiseException()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 505, in raiseException
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise self.value.with_traceback(self.tb)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1078, in _runCallbacks
Jun 24 15:23:57 campfire maas-regiond[266983]:             current.result = callback(  # type: ignore[misc]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 947, in eb_import
Jun 24 15:23:57 campfire maas-regiond[266983]:             failure.trap(DatabaseLockNotHeld)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 481, in trap
Jun 24 15:23:57 campfire maas-regiond[266983]:             self.raiseException()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 505, in raiseException
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise self.value.with_traceback(self.tb)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 269, in inContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = inContext.theWork()  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 285, in <lambda>
Jun 24 15:23:57 campfire maas-regiond[266983]:             inContext.theWork = lambda: context.call(  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/orm.py", line 727, in call_with_connection
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/__init__.py", line 177, in call_with_lock
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 1068, in _import_resources_with_lock
Jun 24 15:23:57 campfire maas-regiond[266983]:             return _import_resources_internal(notify)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 1030, in _import_resources_internal
Jun 24 15:23:57 campfire maas-regiond[266983]:             successful = download_all_boot_resources(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 894, in download_all_boot_resources
Jun 24 15:23:57 campfire maas-regiond[266983]:             store.finalize(notify=notify)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 680, in finalize
Jun 24 15:23:57 campfire maas-regiond[266983]:             execute_workflow(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/__init__.py", line 35, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             ret = asyncio.run(func(*args, **kwargs))
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             return runner.run(main)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self._loop.run_until_complete(task)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "uvloop/loop.pyx", line 1516, in uvloop.loop.Loop.run_until_complete
Jun 24 15:23:57 campfire maas-regiond[266983]:             
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/__init__.py", line 71, in execute_workflow
Jun 24 15:23:57 campfire maas-regiond[266983]:             temporal_client = await get_client_async()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/asynchronous.py", line 263, in wrapped
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise e
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/asynchronous.py", line 259, in wrapped
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await fn(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/worker/worker.py", line 45, in get_client_async
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await Client.connect(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/client.py", line 173, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await temporalio.service.ServiceClient.connect(connect_config),
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 209, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await _BridgeServiceClient.connect(config)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 1008, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await client._connected_client()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 1021, in _connected_client
Jun 24 15:23:57 campfire maas-regiond[266983]:             self._bridge_client = await temporalio.bridge.client.Client.connect(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/bridge/client.py", line 97, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await temporalio.bridge.temporal_sdk_bridge.connect_client(
Jun 24 15:23:57 campfire maas-regiond[266983]:         builtins.RuntimeError: Failed client connect: Server connection error: tonic::transport::Error(Transport, ConnectError(ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))

mind taking a screenshot of the images page in the UI and share it?

this is a headless server.

This is the json after running boot-resources read

[
    {
        "id": 11,
        "type": "Synced",
        "name": "centos/centos70",
        "architecture": "amd64/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/11/",
        "last_deployed": null,
        "subarches": "generic"
    },
    {
        "id": 1,
        "type": "Synced",
        "name": "grub-efi-signed/uefi",
        "architecture": "amd64/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/1/",
        "last_deployed": null
    },
    {
        "id": 2,
        "type": "Synced",
        "name": "grub-efi/uefi",
        "architecture": "arm64/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/2/",
        "last_deployed": null
    },
    {
        "id": 3,
        "type": "Synced",
        "name": "grub-ieee1275/open-firmware",
        "architecture": "ppc64el/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/3/",
        "last_deployed": null
    },
    {
        "id": 4,
        "type": "Synced",
        "name": "pxelinux/pxe",
        "architecture": "i386/generic",
        "resource_uri": "/MAAS/api/2.0/boot-resources/4/",
        "last_deployed": null
    },
    {
        "id": 12,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/ga-22.04",
        "resource_uri": "/MAAS/api/2.0/boot-resources/12/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04"
    },
    {
        "id": 13,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/ga-22.04-lowlatency",
        "resource_uri": "/MAAS/api/2.0/boot-resources/13/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04"
    },
    {
        "id": 14,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/hwe-22.04",
        "resource_uri": "/MAAS/api/2.0/boot-resources/14/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04"
    },
    {
        "id": 15,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/hwe-22.04-edge",
        "resource_uri": "/MAAS/api/2.0/boot-resources/15/",
        "last_deployed": null,
        "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,hwe-19.10,hwe-20.04,hwe-22.04"
    },
    {
        "id": 16,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/hwe-22.04-lowlatency",
        "resource_uri": "/MAAS/api/2.0/boot-resources/16/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04"
    },
    {
        "id": 17,
        "type": "Synced",
        "name": "ubuntu/jammy",
        "architecture": "amd64/hwe-22.04-lowlatency-edge",
        "resource_uri": "/MAAS/api/2.0/boot-resources/17/",
        "last_deployed": null,
        "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,hwe-19.10,hwe-20.04,hwe-22.04"
    },
    {
        "id": 5,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/ga-24.04",
        "resource_uri": "/MAAS/api/2.0/boot-resources/5/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04,ga-22.10,ga-23.04,ga-23.10,ga-24.04"
    },
    {
        "id": 6,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/ga-24.04-lowlatency",
        "resource_uri": "/MAAS/api/2.0/boot-resources/6/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04,ga-22.10,ga-23.04,ga-23.10,ga-24.04"
    },
    {
        "id": 7,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/hwe-24.04",
        "resource_uri": "/MAAS/api/2.0/boot-resources/7/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04,ga-22.10,ga-23.04,ga-23.10,ga-24.04"
    },
    {
        "id": 8,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/hwe-24.04-edge",
        "resource_uri": "/MAAS/api/2.0/boot-resources/8/",
        "last_deployed": null,
        "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,hwe-19.10,hwe-20.04,hwe-22.04,hwe-24.04"
    },
    {
        "id": 9,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/hwe-24.04-lowlatency",
        "resource_uri": "/MAAS/api/2.0/boot-resources/9/",
        "last_deployed": null,
        "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,ga-18.10,ga-19.04,ga-19.10,ga-20.04,ga-20.10,ga-21.04,ga-21.10,ga-22.04,ga-22.10,ga-23.04,ga-23.10,ga-24.04"
    },
    {
        "id": 10,
        "type": "Synced",
        "name": "ubuntu/noble",
        "architecture": "amd64/hwe-24.04-lowlatency-edge",
        "resource_uri": "/MAAS/api/2.0/boot-resources/10/",
        "last_deployed": null,
        "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,hwe-19.10,hwe-20.04,hwe-22.04,hwe-24.04"
    }
]```

mind executing

sudo snap run --shell maas -c "maas-region shell"

and then

from maasserver.models import BootResource
BootResource.objects.get_usable_architectures()

Also, ensure that the commissioning image for amd64 is fully synchronized. Apparently it’s not in the list you shared

returned an empty array/list

Are you referring to the Rocky 9 image? If yes, I am attempting to add the Rocky 9 image as a boot resource. The error is from attempting to create the Rocky 9 boot resource.

You must have the MAAS commissioning for amd64/generic, otherwise you can’t do anything. Is this a single region+rack? Do you have multiple regions? Are you hosting MAAS on an Ubuntu machine?

This is a single region+rack configuration on an Ubuntu server (22.04).

You might try to “maas admin boot-resources import” again

@r00ta re-ran maas admin boot-resources import. Then double checked via shell BootResource still returned an empty array. I then ran BootResource.objects.all().values_list("name", "architecture", "rtype") this essentially returned the boo-resources read json. Any other ideas as to what is causing the issue of not having usable architectures?

Any other ideas as to what is causing the issue of not having usable architectures?

Again, you don’t have the commissioning image fully downloaded.

I get it. I do see that the stack trace I posted is related to the failure to retrieve the images

Jun 24 15:23:21 campfire maas-regiond[266985]: regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: grub-efi-signed/amd64/generic/uefi/20231004.0/grub2-signed.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: grub-efi-signed/amd64/generic/uefi/20231004.0/shim-signed.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: grub-efi/arm64/generic/uefi/20231004.0/grub2-signed.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: grub-efi/arm64/generic/uefi/20231004.0/shim-signed.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: grub-ieee1275/ppc64el/generic/open-firmware/20210509.0/grub2.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: pxelinux/i386/generic/pxe/20210203.0/syslinux.tar.xz
Jun 24 15:23:24 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: centos/amd64/generic/centos70/20240622_01/root-tgz
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04/jammy/20250615/boot-initrd
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04/jammy/20250615/boot-kernel
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04/jammy/20250615/squashfs
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04-lowlatency/jammy/20250615/boot-initrd
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04-lowlatency/jammy/20250615/boot-kernel
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-22.04-lowlatency/jammy/20250615/squashfs
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04/jammy/20250615/boot-initrd
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04/jammy/20250615/boot-kernel
Jun 24 15:23:25 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04/jammy/20250615/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-edge/jammy/20250615/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-edge/jammy/20250615/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-edge/jammy/20250615/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency/jammy/20250615/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency/jammy/20250615/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency/jammy/20250615/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency-edge/jammy/20250615/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency-edge/jammy/20250615/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-22.04-lowlatency-edge/jammy/20250615/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04/noble/20250618/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04/noble/20250618/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04/noble/20250618/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04-lowlatency/noble/20250618/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04-lowlatency/noble/20250618/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/ga-24.04-lowlatency/noble/20250618/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04/noble/20250618/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04/noble/20250618/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04/noble/20250618/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-edge/noble/20250618/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-edge/noble/20250618/boot-kernel
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-edge/noble/20250618/squashfs
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency/noble/20250618/boot-initrd
Jun 24 15:23:26 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency/noble/20250618/boot-kernel
Jun 24 15:23:27 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency/noble/20250618/squashfs
Jun 24 15:23:27 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency-edge/noble/20250618/boot-initrd
Jun 24 15:23:27 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency-edge/noble/20250618/boot-kernel
Jun 24 15:23:27 campfire maas-regiond[266983]: maasserver.bootresources: [info] Scheduling image download: ubuntu/amd64/hwe-24.04-lowlatency-edge/noble/20250618/squashfs
Jun 24 15:23:50 campfire maas-regiond[266984]: RegionServer,25,::ffff:192.168.122.1: [info] RegionServer connection lost (HOST:IPv6Address(type='TCP', host='::ffff:192.168.122.1', port=5252, flowInfo=0, scopeID=0) PEER:IPv6Address(type='TCP', host='::ffff:192.168.122.1', port=60562, flowInfo=0, scopeID=0))
Jun 24 15:23:50 campfire maas-regiond[266825]: maasserver.ipc: [info] Worker pid:266984 lost burst connection to ('192.168.122.1', 5252).
Jun 24 15:23:50 campfire maas-regiond[266984]: RegionServer,26,::ffff:192.168.122.1: [info] RegionServer connection lost (HOST:IPv6Address(type='TCP', host='::ffff:192.168.122.1', port=5252, flowInfo=0, scopeID=0) PEER:IPv6Address(type='TCP', host='::ffff:192.168.122.1', port=60570, flowInfo=0, scopeID=0))
Jun 24 15:23:50 campfire maas-regiond[266825]: maasserver.ipc: [info] Worker pid:266984 lost burst connection to ('192.168.122.1', 5252).
Jun 24 15:23:51 campfire maas-regiond[266986]: regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
Jun 24 15:23:57 campfire maas-regiond[266983]: maasserver.bootresources: [critical] Importing boot resources failed.
Jun 24 15:23:57 campfire maas-regiond[266983]:         Traceback (most recent call last):
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/threading.py", line 1010, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             self._target(*self._args, **self._kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 821, in worker
Jun 24 15:23:57 campfire maas-regiond[266983]:             return target()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 49, in work
Jun 24 15:23:57 campfire maas-regiond[266983]:             task()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 192, in doWork
Jun 24 15:23:57 campfire maas-regiond[266983]:             task()
Jun 24 15:23:57 campfire maas-regiond[266983]:         --- <exception caught here> ---
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 269, in inContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = inContext.theWork()  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 285, in <lambda>
Jun 24 15:23:57 campfire maas-regiond[266983]:             inContext.theWork = lambda: context.call(  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 137, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func_in_reactor(*args, **kwargs).wait(LONGTIME)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 196, in wait
Jun 24 15:23:57 campfire maas-regiond[266983]:             result.raiseException()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 505, in raiseException
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise self.value.with_traceback(self.tb)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1078, in _runCallbacks
Jun 24 15:23:57 campfire maas-regiond[266983]:             current.result = callback(  # type: ignore[misc]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 947, in eb_import
Jun 24 15:23:57 campfire maas-regiond[266983]:             failure.trap(DatabaseLockNotHeld)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 481, in trap
Jun 24 15:23:57 campfire maas-regiond[266983]:             self.raiseException()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/failure.py", line 505, in raiseException
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise self.value.with_traceback(self.tb)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 269, in inContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = inContext.theWork()  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 285, in <lambda>
Jun 24 15:23:57 campfire maas-regiond[266983]:             inContext.theWork = lambda: context.call(  # type: ignore[attr-defined]
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kw)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             result = func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/orm.py", line 727, in call_with_connection
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/__init__.py", line 177, in call_with_lock
Jun 24 15:23:57 campfire maas-regiond[266983]:             return func(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 1068, in _import_resources_with_lock
Jun 24 15:23:57 campfire maas-regiond[266983]:             return _import_resources_internal(notify)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 1030, in _import_resources_internal
Jun 24 15:23:57 campfire maas-regiond[266983]:             successful = download_all_boot_resources(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 894, in download_all_boot_resources
Jun 24 15:23:57 campfire maas-regiond[266983]:             store.finalize(notify=notify)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/bootresources.py", line 680, in finalize
Jun 24 15:23:57 campfire maas-regiond[266983]:             execute_workflow(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/__init__.py", line 35, in wrapper
Jun 24 15:23:57 campfire maas-regiond[266983]:             ret = asyncio.run(func(*args, **kwargs))
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             return runner.run(main)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
Jun 24 15:23:57 campfire maas-regiond[266983]:             return self._loop.run_until_complete(task)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "uvloop/loop.pyx", line 1516, in uvloop.loop.Loop.run_until_complete
Jun 24 15:23:57 campfire maas-regiond[266983]:             
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/__init__.py", line 71, in execute_workflow
Jun 24 15:23:57 campfire maas-regiond[266983]:             temporal_client = await get_client_async()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/asynchronous.py", line 263, in wrapped
Jun 24 15:23:57 campfire maas-regiond[266983]:             raise e
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/utils/asynchronous.py", line 259, in wrapped
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await fn(*args, **kwargs)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/lib/python3.12/site-packages/maasserver/workflow/worker/worker.py", line 45, in get_client_async
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await Client.connect(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/client.py", line 173, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await temporalio.service.ServiceClient.connect(connect_config),
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 209, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             return await _BridgeServiceClient.connect(config)
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 1008, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await client._connected_client()
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/service.py", line 1021, in _connected_client
Jun 24 15:23:57 campfire maas-regiond[266983]:             self._bridge_client = await temporalio.bridge.client.Client.connect(
Jun 24 15:23:57 campfire maas-regiond[266983]:           File "/snap/maas/39328/usr/lib/python3/dist-packages/temporalio/bridge/client.py", line 97, in connect
Jun 24 15:23:57 campfire maas-regiond[266983]:             await temporalio.bridge.temporal_sdk_bridge.connect_client(
Jun 24 15:23:57 campfire maas-regiond[266983]:         builtins.RuntimeError: Failed client connect: Server connection error: tonic::transport::Error(Transport, ConnectError(ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))

@sjwilcox can you ensure that your MAAS instance is able to reach images.maas.io so it can download Ubuntu for commissioning?

From the error it looks like temporal is not up and running. Logs of maas-temporal? Also, if you installed the MAAS snap on a non-Ubuntu OS then it’s a known issue. The snap will only work on Ubuntu

Could be that 5271 - 5274 or 5281 - 5284 are not opened?

ran curl -I http://images.maas.io and it returned 200.

maas status indicates

temporal disabled inactive -
temporal-worker disabled active today at 13:28 UTC

correction there are logs.

output of lsb_release -a? Also, have you tried restarting the snap with sudo snap restart maas?