[Bug 1366893] [NEW] cloud-init --local needs mounted /run but not guaranteed by upstart job
Scott Moser
smoser at ubuntu.com
Mon Sep 8 17:01:04 UTC 2014
Public bug reported:
in cloud-init local , cloud-init does:
a. create /run/cloud-init if it does not exist
b. write some data to /var/lib/cloud/data/status.json
c. link /run/cloud-init/status.json
if /run is mounted over the top of /run between a and c, then we'll fail to create the symlink,
and will have a stack trace to console like:
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 618, in <module>
sys.exit(main())
File "/usr/bin/cloud-init", line 614, in main
get_uptime=True, func=functor, args=(name, args))
File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1875, in log_time
ret = func(*args, **kwargs)
File "/usr/bin/cloud-init", line 491, in status_wrapper
force=True)
File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1402, in sym_link
os.symlink(source, link)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1.1
ProcVersionSignature: User Name 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Mon Sep 8 16:50:40 2014
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.init.cloud.init.local.conf: 2014-09-08T14:38:58.888631
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty uec-images
--
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/1366893
Title:
cloud-init --local needs mounted /run but not guaranteed by upstart
job
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1366893/+subscriptions
More information about the Ubuntu-server-bugs
mailing list