[Bug 1052664] Re: hostname intermittently contains comment from cloud-init

Scott Moser smoser at ubuntu.com
Wed Sep 19 17:05:36 UTC 2012


This seems racey.  Ben and I both report having sen this on server build of 20120919, but only intermittently.
To add to the oddness, on 20120919 desktop (where it seems to reproduce more frequently), I moved /bin/hostname to /bin/hostname.real, then:
$ cat /bin/hostname
#!/bin/sh

if [ $# -ne 0 ]; then
   {
   echo "== pid=$$ ppid=$PPID JOB=$UPSTART_JOB: $* =="
   cat /proc/$PPID/cmdline
   echo
   } >/run/hostname.log 2>&1
fi
exec /bin/hostname.real "$@"
$ cat /run/hostname.log 
== pid=212 ppid=1 JOB=hostname: -b -F /etc/hostname ==
/sbin/init


so during boot the only thing that called /bin/hostname was the upstart job 'hostname'.
However, just running 'sudo hostname -b -F /etc/hostname' behaves correctly.

-- 
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/1052664

Title:
  hostname intermittently contains comment from cloud-init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1052664/+subscriptions



More information about the Ubuntu-server-bugs mailing list