metadata service local-hostname is not fqdn
Bug #854614 reported by
Scott Moser
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Scott Moser | ||
Diablo |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Medium
|
Scott Moser |
Bug Description
On a nova instance of Ubuntu oneiric image 20110920 , where nova server is running ~ oneiric beta-1 code, I see:
$ ec2metadata --local-hostname
server-1013
on ec2, this gives a FQDN for the internal hostname.
Note, that in this particular case, there is a reverse lookup-able address:
$ host server-1013
server-
I would like to see 'server-
tags: | added: server-o-rs |
Changed in nova (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
milestone: | none → ubuntu-11.10 |
Changed in nova (Ubuntu): | |
assignee: | nobody → Scott Moser (smoser) |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → essex-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
tags: |
added: verification-done removed: server-o-rs verification-needed |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
To post a comment you must log in.
At least in this case, it looks like what I need is linux_net. py .
FLAGS.dhcp_domain
which is set in nova/network/
but my simple patch to nova/api/ ec2/cloud. py: ref['hostname' ] ref['hostname' ], FLAGS.dhcp_domain)
- hostname = instance_
+ hostname = "%s.%s" % (instance_
resulted in ec2.metadata) : TRACE: Traceback (most recent call last): ec2.metadata) : TRACE: File "/home/ ubuntu/ src/nova/ nova/api/ ec2/metadatareq uesthandler. py", line 79, in __call__ ec2.metadata) : TRACE: meta_data = self.cc. get_metadata( remote_ address) ec2.metadata) : TRACE: File "/home/ ubuntu/ src/nova/ nova/api/ ec2/cloud. py", line 329, in get_metadata ec2.metadata) : TRACE: hostname = "%s.%s" % (instance_ ref['hostname' ], FLAGS.dhcp_domain) ec2.metadata) : TRACE: File "/home/ ubuntu/ src/nova/ nova/flags. py", line 144, in __getattr__ ec2.metadata) : TRACE: val = gflags. FlagValues. __getattr_ _(self, name) ec2.metadata) : TRACE: File "/usr/lib/ python2. 7/dist- packages/ gflags. py", line 935, in __getattr__ ec2.metadata) : TRACE: raise AttributeError( name) ec2.metadata) : TRACE: AttributeError: dhcp_domain ec2.metadata) : TRACE:
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
I not sure that 'dhcp_domain' is actually what we want, but we want something.