weizhouapache commented on issue #4931:
URL: https://github.com/apache/cloudstack/issues/4931#issuecomment-927965978


   > I still have the same issue, even in 4.15.2, it will not work with basic 
network ( or advanced with guest ) with multiple subnets.
   > 
   > This issue is persistent to the VMs with cloud-init:
   > 
   > Ubuntu 16 - OK
   > Ubuntu 18 - OK
   > Ubuntu 20 - OK
   > CentOS7 - Not working
   > CentOS8 - Not working
   > Debian8 - Not working
   > Debian9 - OK
   > Debian10 - OK
   > 
   > It is simple to reproduce, add multiple CIDR to the same guest router, 
deploy multiple instances, when a new VM is going to be deployed under 
different subnet, for some reasons the returned data-server IP is not from VM 
subnet, it is the IP which is defined in /etc/hosts into the router, example;
   > 149.xx.xx.99 r-xxx-VM data-server
   > 
   > And because it is from different subnet, there is no password saved in the 
file for different subnet (in router ). in this case, no password is going to 
be set for this VM.
   > 
   > If I execute this: "cat /var/lib/dhclient/dhclient--eth0.lease | grep 
dhcp-server-identifier" into the VM the returned IP is the right one. Even if I 
try to add this to VM host file( IP data-server) ,it is not working, the 
cloud-init it is using the IP for metadata, and not the host 
"http://data-server";.
   > 
   > Tested with :
   > 4.15.0 + VMware
   > 4.15.1 + VMware
   > 4.15.2 + VMware
   > 
   > At this point, I'm not sure if this is a cloud-init issue or cloudstack.
   
   @ccycv it seems to be a bug in cloudstack. can you create file an issue ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to