[Bug 832175] [NEW] Doesn't report an error when hostname fails
Loïc Minier
lool at dooz.org
Tue Aug 23 16:54:07 UTC 2011
Public bug reported:
Hi
If you try setting hostname to an invalid one, cloud-init will log
setting the hostname (and will change /etc/hostname) but hostname (the
command) will actually fail.
cloud-init should log an error in this case.
It would also be best to not set etc/hostname if running hostname fails.
Finally, if cloud-init detected the invalid syntax it could avoid
running hostname entirely and display a nicer error by validating the
allowed hostname chars first; this does mean validating the chars both
in hostname and in cloud-init, which means it will get out of date, but
that's fairly stable.
Cheers,
** Affects: cloud-init
Importance: Low
Status: Confirmed
** Affects: cloud-init (Ubuntu)
Importance: Low
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/832175
Title:
Doesn't report an error when hostname fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/832175/+subscriptions
More information about the Ubuntu-server-bugs
mailing list