Erasing disks fails when trying to start maas_hardware_sync.service

Hi,

erasing disks is currently failing because the maas_hardware_sync service fails to start.

In order to troubleshoot further, I connected to the machine via ssh and tried to get the status the service:

ubuntu@icdatasrv074:~$ systemctl status maas_hardware_sync.service
× maas_hardware_sync.service - MAAS Hardware Sync Service
     Loaded: loaded (/lib/systemd/system/maas_hardware_sync.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2024-02-02 08:07:12 UTC; 2min 16s ago
TriggeredBy: ● maas_hardware_sync.timer
       Docs: https://maas.io
    Process: 2587 ExecStartPre=/usr/bin/wget -O /usr/bin/maas-run-scripts http://10.90.33.2:5248/MAAS/maas-run-scripts (code=exited, status=0/SUCCESS)
    Process: 2617 ExecStartPre=/bin/chmod 0755 /usr/bin/maas-run-scripts (code=exited, status=0/SUCCESS)
    Process: 2619 ExecStart=/usr/bin/maas-run-scripts report-results --config /etc/maas/maas-machine-creds.yml (code=exited, status=1/FAILURE)
   Main PID: 2619 (code=exited, status=1/FAILURE)
        CPU: 191ms

Feb 02 08:07:12 icdatasrv074 wget[2587]: HTTP request sent, awaiting response... 200 OK
Feb 02 08:07:12 icdatasrv074 wget[2587]: Length: 32563 (32K) [text/x-python]
Feb 02 08:07:12 icdatasrv074 wget[2587]: Saving to: ‘/usr/bin/maas-run-scripts’
Feb 02 08:07:12 icdatasrv074 wget[2587]:      0K .......... .......... .......... .                    100%  229M=0s
Feb 02 08:07:12 icdatasrv074 wget[2587]: 2024-02-02 08:07:12 (229 MB/s) - ‘/usr/bin/maas-run-scripts’ saved [32563/32563]
Feb 02 08:07:12 icdatasrv074 maas-run-scripts[2619]: * Fetching scripts from http://10.90.33.2:5248/MAAS/metadata/2012-03-01/ to /tmp/tmpl29oefvq/scripts
Feb 02 08:07:12 icdatasrv074 maas-run-scripts[2619]: No script returned
Feb 02 08:07:12 icdatasrv074 systemd[1]: maas_hardware_sync.service: Main process exited, code=exited, status=1/FAILURE
Feb 02 08:07:12 icdatasrv074 systemd[1]: maas_hardware_sync.service: Failed with result 'exit-code'.
Feb 02 08:07:12 icdatasrv074 systemd[1]: Failed to start MAAS Hardware Sync Service.

I also tried to run the failing command manually. I’m getting the same error:

ubuntu@icdatasrv074:~$ sudo /usr/bin/maas-run-scripts report-results --config /etc/maas/maas-machine-creds.yml
* Fetching scripts from http://10.90.33.2:5248/MAAS/metadata/2012-03-01/ to /tmp/tmp0uve3rw3/scripts
No script returned
ubuntu@icdatasrv074:~$ echo $?
1

How can I troubleshoot that further?

Hello @jaepetto

Which version of MAAS you are using? If thats latest/edge there currently might be some issues and bugs related to machine release process.

I’m using MaaS 3.4.0