The problem is that although I already have an external dns/dhcp server, MAAS assigns a new ip to the machine during the commissioning and deployment process. After deployment, it finishes with “static” settings in the /netplan/50-cloud-init.yml network configuration file. At this stage, I would like to set “renderer: NetworkManager” and “dhcp4:true” parameters for the related interface, but I have not been successful.
1- Why MAAS is changing the ip address of the machines in a subnet that is not authoritative?
2- How can I set the network configuration I want at the end of the deployment? I wrote a cloud-init script as below but it does not apply it after deployment.
As you might know the configuration with external DHCP servers is not officially supported by MAAS. Btw, have you tried changing the IP settings of the machine?
Yes when i changed the setting all is good ,but the real problem is that “MAAS” takes the IP already assigned to another machine in the subnet and assigns it to the machine it is going to commission.
Thanks, I solved this problem with reserved IP. How can I make the statically assigned network settings in the remaining 50-cloud-init.yaml file as dhcp4: true automatically during the deployment process so after deployment, the machine gets its IP from external dhcp.