onitake commented on issue #3557: cloud-init fails to fetch metadata when 
shared networks are present
URL: https://github.com/apache/cloudstack/issues/3557#issuecomment-524793882
 
 
   I think we found the "right" way to do this: If the metadata server is 
enabled on an interface, it will offer the special hostname `data-server` on 
its DNS server. This is already the case, and I really don't understand why 
cloud-init isn't already using that.
   
   This should always be the first host that cloud-init checks.
   
   As a second step, the "only latest lease" heuristic should go be replaced 
with "try all leases in reverse chronological order".
   
   Ideally, _all_ virtual routers should allow resolving the `data-server` 
hostname, returning the IP address of a router that has the metadata server 
enabled. If none of them do, the hostname shouldn't exist.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to