Adding rack controller to maas on ubuntu 20.04. throws "maas-rack: command not found" error

On an ubuntu 20.04. machine I have installed maas via

sudo snap install maas

and initiated it with the default configurations through

sudo maas init

As I only have a region controller, I selected "add a rack controller" in the dashboard/controllers, where I am told to install the maas-rack-controller package with the apt package manager and then do

sudo maas-rack register --url --secret XXXXXXXXXX

However, I get error:

sudo: maas-rack: command not found

although the package has been properly installed.

Does anyone know what this could be due to ?

P.S.: This seems to work on bionic ...

2 Answers

sudo maas init

Controller has already been initialized. Are you sure you want to initialize again (yes/no) [default=no]? yes

Note: Configuring the MAAS snap in "all" mode will be deprecated in MAAS 2.8.0 and removed in 2.9.0.

See for details.

Mode (all/region+rack/region/rack/none) [default=all]? rack MAAS URL [default=: Secret: Put the key from Add rack controller button

I ran into a same issue. You need to use

 sudo maas init rack --maas-url $MAAS_URL --secret $SECRET

instead of running sudo maas-rack

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like