ccycv opened a new issue #5518:
URL: https://github.com/apache/cloudstack/issues/5518


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   
   * VR
   
   ##### CLOUDSTACK VERSION
   
   * Tested in 4.14.x, 4.15.0, 4,15.1, 4,15.2
   
   
   ~~~
   This issue persist for shared networks (Guest traffic) with multiple subnets 
in Basic network or with Advanced Networks.
   ~~~
   
   ##### CONFIGURATION
   <!--
     CloudStack with VMware 6.5 with Basic or Advanced Networks.
   -->
   
   
   ##### OS / ENVIRONMENT
   
   * CentOS 7, ESXI 6.5
   
   
   
   ##### SUMMARY
   A wrong data-server IP is provided to the cloud-init 
   
   
   ##### STEPS TO REPRODUCE
   
   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"`.
   
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   ~~~
    Expected not to have this issue, cloud-init should receive the data-server 
IP from same subnet as we have on the VM. 
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
       data-server IP from a different subnet is returned.
   ~~~
   


-- 
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