Thank you for providing additional information about your deployment issue. Based on your explanation and the screenshots you shared, it seems that the problem is related to the subnets you have configured in MAAS.
From your description, it appears that you have two subnets set up in MAAS: one where MAAS is located (subnet 1) and another subnet (subnet 2) that is in a different network. Additionally, you mentioned that you have assigned IP addresses for MAAS in both subnets.
The issue you are experiencing is that when you deploy CentOS on a machine connected to subnet 2, the deployment process gets stuck during the reboot and the machine is unable to obtain an IP address from
To troubleshoot this further, here are a few suggestions:
Verify your subnet configurations: Double-check the settings and configurations for subnet 2, including the network range, DHCP configuration, gateway settings, and any relevant firewall rules. Ensure that the subnet settings are correctly configured and aligned with the network infrastructure.
Check DHCP and DNS: It’s always DNS! Make sure that DHCP and DNS services are properly configured for subnet 2. Ensure that the DHCP server is running and capable of assigning IP addresses to machines in that subnet. Do some packet captures if you have to, just to be sure DORA is happening on that subnet. Also confirm that the DNS resolution is functioning correctly for the machines in subnet 2. You can use the usual litany of command-line networking tools to do this.
Network connectivity: Probably not an issue, but do make sure that there is proper network connectivity between the MAAS server and the machines in subnet 2. Check for any potential network issues, especially firewall rules blocking communication or misconfigured routing.
Debug cloud-init: Since the issue occurs during the
cloud-init phase after installation, you can try to debug
cloud-init on the deployed CentOS machine. Check the
cloud-init logs (
cloud-init configuration files for any errors or misconfigurations that might prevent the machine from obtaining an IP address.
MAAS troubleshooting: Consider reviewing the MAAS logs for any related errors or warnings. The MAAS logs can provide unexpected insight into the deployment process and help identify any potential issues. I think you know where to find those, but if not, bounce back.
If the issue persists or you need further assistance, we’re here, ready to help you resolve the problem on a best-effort basis. Good luck!