debian image built with diskimage-builder sets instance's hostname to 'debian'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned | ||
tripleo |
Won't Fix
|
High
|
Ghe Rivero |
Bug Description
After following the instructions as in bug 1384103 I can build a debian image with diskimage-builder.
However, when starting a virtual machine the hostname is set by default to 'debian'.
This is I think due to the following file
more /etc/cloud/
hostname: debian
which is created by script
/home/ubuntu/
91 # specify a hostname so that cloud-init does not default to (None)
92 sudo sh -c "echo 'hostname: debian' > ${TARGET_
After commenting out line 92, the virtual machine gets created with the correct hostname (the instance name that is passed to cloud init by openstack).
Regards,
Alessandro
Changed in tripleo: | |
assignee: | nobody → Ghe Rivero (ghe.rivero) |
Changed in tripleo: | |
status: | Incomplete → Won't Fix |
Hi Alessandro. That is indeed a problem. I would have thought cloud-init would override that hostname. Anyway, that was copied from the scripts that the semi-official AWS images are created with, but we should probably just drop 'debian' in /etc/hostname and then cloud-init will overwrite it once it has a data source.