cloud-init status broken in groovy lxd containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Ryan Harper | ||
cloud-init (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
cloud-init status returns error, in groovy lxd containers.
This is probably happening because it expects /etc/fstab to exist, but it doesn't.
[Test Case]
$ lxc launch ubuntu-daily:groovy g
$ lxc exec g -- /bin/bash
root@g:~# cloud-init status
status: error
From /var/log/
2020-07-06 14:51:47,011 - util.py[DEBUG]: Running module mounts (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
ran, _r = cc.run(run_name, mod.handle, func_args,
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
for line in util.load_
File "/usr/lib/
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
tags: | added: id-596e17fac6e5ac8ded74a8ee |
Status changed to 'Confirmed' because the bug affects multiple users.