maas-agent 3.6.0 crashes if using external DHCP server

ok- so i installed 3.6 using apt. can I still move to snap. Or should I just to a fresh install and redeploy?

You should be able to migrate to snap by extracting the current database uri with

#!/bin/bash

conf_file="/etc/maas/regiond.conf"

db_user=$(sudo grep '^database_user:' "$conf_file" | awk '{print $2}')
db_pass=$(sudo grep '^database_pass:' "$conf_file" | awk '{print $2}')
db_host=$(sudo grep '^database_host:' "$conf_file" | awk '{print $2}')
db_port=$(sudo grep '^database_port:' "$conf_file" | awk '{print $2}')
db_name=$(sudo grep '^database_name:' "$conf_file" | awk '{print $2}')

db_uri="postgres://${db_user}:${db_pass}@${db_host}:${db_port}/${db_name}"

echo "$db_uri"

and note it somewhere. Then you remove the MAAS debs entirely with

sudo DEBIAN_FRONTEND=noninteractive apt remove --purge -y 'maas*' && sudo DEBIAN_FRONTEND=noninteractive apt -y autoremove

and then you

sudo snap install --channel=3.6/edge maas
sudo maas init region+rack --database-uri "<THE DB URI YOU EXTRACTED BEFORE>"
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.