Comment 18 for bug 1160580

Revision history for this message
Baodong (Robert) Li (baoli) wrote : IP addresses obtained from nova metadat service

Hi Dan,

Just asked you about this question. I was looking at this process /usr/local/bin/quantum-ns-metadata-proxy. It seems that it uses a unix domain socket to communicate with the instances, and it then relay the requests to nova metadata service. Two of the metadata fields are local-ipv4 and public-ipv4. So my question is that if the ip addresses can be obtained from metadata using unix domain socket, why would it still need DHCP for ip addresses. After all, the ip addresses obtained from dnsmasq are allocated by quantum and added into the dnsmasq table. The second question is that if dhcp is still necessary, why Vms need local-ip and public-ip from metadata services. In other words, what are they used for by the instances?

Thanks,
Robert