Running cloud-init collect-logs inside a chroot is not possible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Scott Moser |
Bug Description
When trying to debug boot issues of a GCE instance I mounted a snapshot of it's boot disk on a running instance and tried to run `sudo chroot /home/ubuntu/
This results in the errors below.
Is running collect-logs inside a chroot an expected use case or should I just gather as much as I can from the list @ http://
ubuntu@
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
collect_
File "/usr/lib/
shutil.
File "/usr/lib/
names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '/run/cloud-init'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self[
FileNotFoundError: [Errno 2] No such file or directory: '/proc/1918/exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
pr.
File "/usr/lib/
raise ValueError('invalid process')
ValueError: invalid process
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
collect_
File "/usr/lib/
shutil.
File "/usr/lib/
names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '/run/cloud-init'
ubuntu@
Related branches
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 205 lines (+66/-14)2 files modifiedcloudinit/cmd/devel/logs.py (+48/-11)
cloudinit/cmd/devel/tests/test_logs.py (+18/-3)
Changed in cloud-init: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Scott Moser (smoser) |
An upstream commit landed for this bug.
To view that commit see the following URL: /git.launchpad. net/cloud- init/commit/ ?id=9f5907e1
https:/