Stack instances all get set with the same hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Medium
|
Steven Hardy |
Bug Description
When creating a stack from template with multiple instances, cloud-init will configure all instances to have the same hostname.
The meta-data store contains the hostname in the format:
<stackname>
i.e. If I create a stack called 'teststack' with two instances 'instance1' and 'instance2' executing the following on each instance
curl -m 10 -s http://
returns
teststack.
and
teststack.
However running 'hostname' on the instance itself returns 'teststack'.
Note that I can manually set the hostname using 'hostname teststack.
An alternative option maybe to use <stackname>
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → havana-1 |
Changed in heat: | |
assignee: | nobody → Steven Hardy (shardy) |
N.B
Looking at this further - a DNS entry seems to be created for each instance in the stack, although again this seems to use the stackname, i.e. So if my instance is called teststack. instance1, running ping teststack resolves to the machines ip address. teststack.instance1 does not resolve to anything.