Hello,
I have a question about metadata service.
We set up a multi-hosts testbed on RHEL6 from RDO icehouse.
Inside the instance, hostname shows as expected by the dhcp server, as
shown below:
[root@host-172-10-0-8 ~]# hostname -f
host-172-10-0-8.openstack.bnl.gov
[root@host-172-10-0-8 ~]# nslookup
host-172-10-0-8.openstack.bnl.gov
Server: 172.10.0.3
Address: 172.10.0.3#53
Name:
host-172-10-0-8.openstack.bnl.gov
Address: 172.10.0.8
But the hostname returned by metadata is different and not reachable:
[root@host-172-10-0-8 ~]# curl
http://169.254.169.254/latest/meta-data/hostname
server-626663d6-cf90-4f2a-b888-7c3b6bdd1841.novalocal[root@host-172-10-0-8
~]#
[root@host-172-10-0-8 ~]# nslookup
server-626663d6-cf90-4f2a-b888-7c3b6bdd1841.novalocal
Server: 172.10.0.3
Address: 172.10.0.3#53
*** Can't find server-626663d6-cf90-4f2a-b888-7c3b6bdd1841.novalocal: No
answer
Note that, the hostname returned by metadata is the same as shown in the
"Name" column from the "nova list" command.
How can we get the metadata service return the real hostname?
Thanks,
Xin