MAAS can't download boot images

Solution 1:

The import operating is dependent on the version of MAAS that you are using. I would recommend using version 1.7 or higher. In version 1.7 starting the images import can be done on the images page or using the API.

maas root boot-resources import

The error you are seeing is because MAAS is unable to reach maas.ubuntu.com to download the images. Check your upstream network connectivity on the MAAS server to make sure it can access that location. The /var/log/maas/regiond.log will also contain more information on this error and could be helpful in diagnosing the issue you are experiencing.

Solution 2:

I have also experienced this error and like you, tried all possible solutions. Turned out that it was much simpler than I had imagined. Going trough /var/log/maas/regiond.log just after typing the command

maas <user> boot-resources import

Gave me this error:

key 476CF100 was created 152222276 seconds in the future (time warp or clock problem)\n gpg: Can't check signature: timestamp conflict\n")

Since this many seconds ammount to 4.8 years, I decided to check my system time with timedatectl:

Local time: Tue 2008-01-01 02:27:44 BRST

After rebooting the machine and correctly configuring the date settings in the BIOS, I got:

Local time: Tue 2016-04-05 16:01:50 BRT

Now everything works fine.