Comment 1 for bug 1100036

Revision history for this message
Tomas Karasek (tomas-karasek) wrote :

Hi, I am not sure if this is alrady addressed in the fix, but if you mark distro as "rhel" in /etc/cloud/cloud.cfg:
[...]
system_info:
  distro: rhel
[...]

and enable update_etc_hosts module (which is enabled by default), you get:

2013-01-24 16:15:37,362 - cloud.py[WARNING]: No template found at /etc/cloud/templates/hosts.rhel.tmpl for template named hosts.rhel
2013-01-24 16:15:37,362 - util.py[WARNING]: Running update_etc_hosts (<module 'cloudinit.config.cc_update_etc_hosts' from '/usr/lib/python2.6/site-packages/cloudinit/config/cc_update_etc_hosts.pyc'>) failed

as there is no hosts.redhat.tmpl.

When I do
ln -s /etc/cloud/templates/hosts.redhat.tmpl /etc/cloud/templates/hosts.rhel.tmpl

and re-run update_etc_hosts, then it works properly