MAAS in Air-gapped network not commissioning

Hey folks,

I am running into a brick wall trying to get MAAS running on a single VM in an air-gapped network. I have a local mirror(same machine) which is successful when using “apt-update”. MAAS repos are configured to use the same repo. I also used SimpleStreams to download the source packages and they have uploaded and Synced to the rack. However, when the remote hosts boots it does not find the image. I am at a loss on what to look at next. So any assistance would be greatly apricated.

Could you elaborate more

However, when the remote hosts boots it does not find the image

?

Where and what’s the exact error?

Sorry, I’m kind of new to MAAS… after digging in a little deeper it is not that it is not finding the image but failing on the commsioning. The problem is that for some reason the node attempts to pull the packages from the Repo on port 8000. I have tried adding a redirect in iptables but that did not help… I also have apache listening on port 8000. here is a snipit of the logs.

Suggested packages:
libusbmuxd-tools fdutils linux-doc | linux-source-5.4.0 linux-tools
The following NEW packages will be installed:
amd64-microcode crda intel-microcode iucode-tool iw libdbus-glib-1-2
libevdev2 libimobiledevice6 libnl-3-200 libnl-genl-3-200 libplist3
libupower-glib3 libusbmuxd6 linux-firmware linux-generic
linux-headers-5.4.0-174 linux-headers-5.4.0-174-generic
linux-headers-generic linux-image-5.4.0-174-generic linux-image-generic
linux-modules-5.4.0-174-generic linux-modules-extra-5.4.0-174-generic
thermald upower usbmuxd wireless-regdb
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 220 MB of archives.
After this operation, 1119 MB of additional disk space will be used.
Err:1 Index of /ubuntu focal-updates/main amd64 libnl-3-200 amd64 3.4.0-1ubuntu0.1
Could not connect to 192.168.100.10:8000 (192.168.100.10). - connect (111: Connection refused)
Err:2 Index of /ubuntu focal-updates/main amd64 libnl-genl-3-200 amd64 3.4.0-1ubuntu0.1
Unable to connect to 192.168.100.10:8000:
Ign:3 Index of /ubuntu focal-updates/main amd64 wireless-regdb all 2022.06.06-0ubuntu1~20.04.1
Err:4 Index of /ubuntu focal/main amd64 iw amd64 5.4-1
Unable to connect to 192.168.100.10:8000:
Err:5 Index of /ubuntu focal/main amd64 crda amd64 3.18-1build1
Unable to connect to 192.168.100.10:8000:
Err:6 Index of /ubuntu focal/main amd64 iucode-tool amd64 2.3.1-1
Unable to connect to 192.168.100.10:8000:
Err:7 Index of /ubuntu focal/main amd64 libdbus-glib-1-2 amd64 0.110-5fakssync1
Unable to connect to 192.168.100.10:8000:
Err:8 Index of /ubuntu focal/main amd64 libplist3 amd64 2.1.0-4build2
Unable to connect to 192.168.100.10:8000:
Err:9 Index of /ubuntu focal/main amd64 libusbmuxd6 amd64 2.0.1-2
Unable to connect to 192.168.100.10:8000:
Err:10 Index of /ubuntu focal/main amd64 libimobiledevice6 amd64 1.2.1~git20191129.9f79242-1build1
Unable to connect to 192.168.100.10:8000:
Err:11 Index of /ubuntu focal/main amd64 libupower-glib3 amd64 0.99.11-1build2
Unable to connect to 192.168.100.10:8000:
Err:12 Index of /ubuntu focal-updates/main amd64 linux-firmware all 1.187.39
Unable to connect to 192.168.100.10:8000:
Ign:13 Index of /ubuntu focal-updates/main amd64 linux-modules-5.4.0-174-generic amd64 5.4.0-174.193
Ign:14 Index of /ubuntu focal-updates/main amd64 linux-image-5.4.0-174-generic amd64 5.4.0-174.193
Ign:15 Index of /ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-174-generic amd64 5.4.0-174.193
Ign:16 Index of /ubuntu focal-updates/main amd64 intel-microcode amd64 3.20231114.0ubuntu0.20.04.1
Ign:17 Index of /ubuntu focal-updates/main amd64 amd64-microcode amd64 3.20191218.1ubuntu1.2
Ign:18 Index of /ubuntu focal-updates/main amd64 linux-image-generic amd64 5.4.0.174.172
Ign:19 Index of /ubuntu focal-updates/main amd64 linux-headers-5.4.0-174 all 5.4.0-174.193
Ign:20 Index of /ubuntu focal-updates/main amd64 linux-headers-5.4.0-174-generic amd64 5.4.0-174.193
Ign:21 Index of /ubuntu focal-updates/main amd64 linux-headers-generic amd64 5.4.0.174.172
Ign:22 Index of /ubuntu focal-updates/main amd64 linux-generic amd64 5.4.0.174.172
Ign:23 Index of /ubuntu focal-updates/main amd64 libevdev2 amd64 1.9.0+dfsg-1ubuntu0.2
Err:24 Index of /ubuntu focal-updates/main amd64 thermald amd64 1.9.1-1ubuntu0.6
Unable to connect to 192.168.100.10:8000:
Err:25 Index of /ubuntu focal/main amd64 upower amd64 0.99.11-1build2
Unable to connect to 192.168.100.10:8000:
Err:26 Index of /ubuntu focal/main amd64 usbmuxd amd64 1.1.1~git20191130.9af2b12-1
Unable to connect to 192.168.100.10:8000:
Err:3 Index of /ubuntu focal-updates/main amd64 wireless-regdb all 2022.06.06-0ubuntu1~20.04.1
Unable to connect to 192.168.100.10:8000:
Err:13 Index of /ubuntu focal-updates/main amd64 linux-modules-5.4.0-174-generic amd64 5.4.0-174.193
Unable to connect to 192.168.100.10:8000:
Err:14 Index of /ubuntu focal-updates/main amd64 linux-image-5.4.0-174-generic amd64 5.4.0-174.193
Unable to connect to 192.168.100.10:8000:
Err:15 Index of /ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-174-generic amd64 5.4.0-174.193
Unable to connect to 192.168.100.10:8000:
Err:16 Index of /ubuntu focal-updates/main amd64 intel-microcode amd64 3.20231114.0ubuntu0.20.04.1
Unable to connect to 192.168.100.10:8000:
Err:17 Index of /ubuntu focal-updates/main amd64 amd64-microcode amd64 3.20191218.1ubuntu1.2
Unable to connect to 192.168.100.10:8000:
Err:18 Index of /ubuntu focal-updates/main amd64 linux-image-generic amd64 5.4.0.174.172
Unable to connect to 192.168.100.10:8000:
Err:19 Index of /ubuntu focal-updates/main amd64 linux-headers-5.4.0-174 all 5.4.0-174.193
Unable to connect to 192.168.100.10:8000:
Err:20 Index of /ubuntu focal-updates/main amd64 linux-headers-5.4.0-174-generic amd64 5.4.0-174.193
Unable to connect to 192.168.100.10:8000:
Err:21 Index of /ubuntu focal-updates/main amd64 linux-headers-generic amd64 5.4.0.174.172
Unable to connect to 192.168.100.10:8000:
Err:22 Index of /ubuntu focal-updates/main amd64 linux-generic amd64 5.4.0.174.172
Unable to connect to 192.168.100.10:8000:
Err:23 Index of /ubuntu focal-updates/main amd64 libevdev2 amd64 1.9.0+dfsg-1ubuntu0.2

Outupt of wget:
wget http://192.168.100.10:80/ubuntu/archive.ubuntu.com/ubuntu/pool/main/libn/libnl3/libnl-3-200_3.4.0-1ubuntu0.1_amd64.deb
–2024-04-02 06:09:41-- http://192.168.100.10/ubuntu/archive.ubuntu.com/ubuntu/pool/main/libn/libnl3/libnl-3-200_3.4.0-1ubuntu0.1_amd64.deb
Connecting to 192.168.100.10:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 54360 (53K) [application/vnd.debian.binary-package]
Saving to: ‘libnl-3-200_3.4.0-1ubuntu0.1_amd64.deb’

libnl-3-200_3.4.0-1ubuntu0.1_amd64.deb 100%[========================================================================================>] 53.09K --.-KB/s in 0s

2024-04-02 06:09:41 (574 MB/s) - ‘libnl-3-200_3.4.0-1ubuntu0.1_amd64.deb’ saved [54360/54360]


Proxy = MAAS build-in
Repos= All point to my local repo http://192.168.100.10/ubuntu/arvhive.ubuntu.com/ubuntu
Owner of files in the www dir: www-data:www-data

Apache Conf
<VirtualHost *:80 *:8000>
ServerAdmin webmaster@hostname.com

DocumentRoot /var/www/html
    <Directory /var/www/html>
    Options +FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
~ --------------------------------------------------------------------------------------------- IPtables: DNAT tcp -- anywhere anywhere tcp dpt:8000 to:192.168.100.10:80 --------------------------------------------------------------------------------------------- /etc/sysctl.conf net.ipv4.ip_forward=1 --------------------------------------------------------------------------------------------- /etc/maas/rackd.conf maas_url: http://192.168.100.10:5240/MAAS --------------------------------------------------------------------------------------------- regiond.conf maas_url: http://192.168.100.10:5240/MAAS ---------------------------------------------------------------------------------------------

oh yeah, the firewall is turned off & tcp port 8000 is permitted