Failed commissioning on MAAS 3.4.7 (Ubuntu Server 22.04.5 LTS)

Commissioning fails. Err:1 http://archive.ubuntu.com“ ”Bad Gateway IP…" Is this due to the fact that both the MAAS server and client are not connected to the Internet?

Server and client are on the same LAN.

Is it necessary to have a local mirror on the MAAS server side for PXE Boot in an offline environment?

The error message is as follows

20-maas-01-install-lldpd

30-maas-01-bmc-config

If it’s an air gapped environment, then you need also an APT mirror and point to it in the MAAS settings

1 Like

I built MAAS using the following procedure.

MAAS *Executed as an ordinary user

[hpcs]

Pre-install dependent packages

sudo apt update

sudo apt install -y software-properties-common curl gnupg2 lsb-release

Add MAAS 3.4 PPA

sudo add-apt-repository ppa:maas/3.4

sudo apt update

Install MAAS package

sudo apt install -y maas

sudo apt install -y curtin

//> install PostgreSQL *pre-installed

//sudo apt install -y postgresql

Create DB

sudo -i -u postgres psql -c “CREATE USER admin WITH ENCRYPTED PASSWORD ‘admin’;”

sudo -i -u postgres createdb -O admin maasadmin

Edit configuration file

sudo vi /etc/postgresql/14/main/pg_hba.conf


host maasadmin admin 0.0.0.0/0 md5


Reload postgresql

sudo systemctl reload postgresql

sudo systemctl status postgresql

Initialize MAAS

sudo maas init

Example)

hpcs@maas:~$ sudo maas init

Configuring authentication

URL for the Canonical RBAC service (leave blank if not using the service):

Path of the Candid authentication agent file (leave blank if not using the service):

Create first admin account

Username: admin

Password:

Again:

Email: dummy@gmail.com

Import SSH keys (lp:user-id or gh:user-id):*Enter

hpcs@maas:~$

Log in to WebUI *DHCP settings

http://192.168.11.18:5240/MAAS

Translated with DeepL.com (free version)