Re: [Openstack] Mystery of VM's Hostname

2014-12-19 Thread Lars Kellogg-Stedman
On Fri, Dec 19, 2014 at 12:29:58PM +0530, Girija Sharan wrote: > Can you pin point where are we setting this value? That is the default for the dhcp_domain option. See: https://github.com/openstack/nova/blob/master/nova/network/manager.py#L130 > > Here when my VM gets IP, it is getting some

Re: [Openstack] Mystery of VM's Hostname

2014-12-18 Thread Girija Sharan
Hi Lars, Thank you once again. You made it quite more clear. And now I have much more understanding of all this. But I still have some queries like : > These are set to the name you give your instance when it boots. The domain name (".novalocal") is configured in, e.g., nova.conf. > Here hos

Re: [Openstack] Mystery of VM's Hostname

2014-12-18 Thread Lars Kellogg-Stedman
On Thu, Dec 18, 2014 at 10:57:52PM +0530, Girija Sharan wrote: > " curl http://169.254.169.254/openstak/latest/meta_data.json " from inside > the VM (once it is launched), I am getting hostname, name, availability > zone, etc etc. as output. > > So here my question becomes : How this meta_data.

Re: [Openstack] Mystery of VM's Hostname

2014-12-18 Thread Girija Sharan
Hi Lars, Thank you very much for your early and informative reply. > If cloud-init is installed and is able to connect to the metadata service, cloud-init will set your hostname based on the value provided in the metadata. Here, in my case cloud-init is installed and is able to connect to meta-da

Re: [Openstack] Mystery of VM's Hostname

2014-12-18 Thread Lars Kellogg-Stedman
> *2).* Please do point me to any helpful links from where I can get > understanding of VM's hostname mechanism. I'm not sure what you're asking here. If cloud-init is installed and is able to connect to the metadata service, cloud-init will set your hostname based on the value provided in the me

[Openstack] Mystery of VM's Hostname

2014-12-18 Thread Girija Sharan
Hi All, I am using Openstack Icehouse release and have multi-node setup. I am wondering how the nova instances launched using Nova CLI (or from Horizon) are getting their hostnames, as I am not specifying any hostname as part of launching. I launched 2 instances : *Instance A :* using CentOS 6.3