yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00246
[Bug 1078452] Re: update-hostname module results in "Error reading hostname from /var/lib/cloud/data/previoius-hostname"
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1078452
Title:
update-hostname module results in "Error reading hostname from
/var/lib/cloud/data/previoius-hostname"
Status in Init scripts for use on cloud images:
Fix Released
Bug description:
$ sudo rm /var/lib/cloud/data/previous-*
$ sudo cloud-init single --name=update-hostname
Cloud-init v. 0.7.1 running 'single' at Tue, 13 Nov 2012 20:54:41 +0000. Up 992.81 seconds.
2012-11-13 20:54:41,497 - __init__.py[WARNING]: /var/lib/cloud/data/previous-hostname
2012-11-13 20:54:41,498 - __init__.py[WARNING]: no
2012-11-13 20:54:41,499 - util.py[WARNING]: Error reading hostname from /var/lib/cloud/data/previous-hostname
This warning would occur on a fresh/pristine boot every time.
It comes from 2 places in cloudinit/distros/__init__.py:
prev_hostname = self._read_hostname(prev_hostname_fn)
and
self._write_hostname(hostname, fn)
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1078452/+subscriptions