How to change the MaaS server ip address?

Asked by Dafang Zhang

Hi, All,

I'm experiencing MaaS using VirtualBox. I had the MaaS server installed fine based on the wiki. The VirtualBox VM has two network interfaces, eth0 for NAT, eth1 for Host Only. The MaaS server picked eth0, so I followed the wiki instruction to change the MaaS server IP address via the following command,

$ sudo dpkg-reconfigure maas

The https://wiki.ubuntu.com/ServerTeam/MAAS instruction says "You will be prompted for the correct ip address", but I did not get any prompt.

I was able to manually edit /etc/cobbler/settings to change the "server" and "next-server" properties to point to the IP for eth1. The added node was able to boot via PXE that leveraged the MaaS server; however, at the end of the boot, the iscsistart is still trying to connect to IP for eth0, hence, it failed to connect, since the dhcp is set to point to the IP for eth1.

Can you help to point out 1) why I didn't get the prompt? 2) how to manually change IP address setting for the iscsi?

Thanks,
Dafang

Question information

Language:
English Edit question
Status:
Solved
For:
MAAS Edit question
Assignee:
No assignee Edit question
Solved by:
Dafang Zhang
Solved:
Last query:
Last reply:
Revision history for this message
Dafang Zhang (me2050) said :
#1

Did a complete maas reinstall. Looks like the latest code fixed the issue.

Revision history for this message
Andres Rodriguez (andreserl) said :
#2

sudo dpkg-reconfigure maas
sudo maas-import-isos --update-settings

Those commands above should do!

Revision history for this message
David Fischer (david-fischer-ch) said :
#3

I do no if this is the right answer to your question but I faced the same kind of problem : The MaaS web user interface became unrecheable after changing the IP address of my controller.

The solution was to reconfigure a lot of MaaS related packages :

    dpkg --get-selections | grep maas

Here is the output :

    maas install
    maas-cli install
    maas-cluster-controller install
    maas-common install
    maas-region-controller install
    python-django-maas install
    python-maas-client install
    python-maas-provisioningserver install

I reconfigured the packages :

    $ sudo dpkg-reconfigure maas-region-controller
    $ sudo dpkg-reconfigure maas-cluster-controller
    $ sudo ...
    $ sudo reboot

... All works fine now !

Hope it helps.

Revision history for this message
David Bainbridge (dbainbri) said :
#4

Is it possible to do this without a prompt, so it could be scripted for example?