cloud-init clean from within /var/lib/cloud-init/instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Chad Smith |
Bug Description
Attempted to cloud-init clean from a directory clean will remove:
/var/lib/
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
exit_code = remove_
File "/usr/lib/
return 1
File "/usr/lib/
next(self.gen)
File "/usr/lib/
os.chdir(curr)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/
Related branches
- Ryan Harper: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 63 lines (+15/-14)2 files modifiedcloudinit/cmd/clean.py (+13/-13)
cloudinit/cmd/tests/test_clean.py (+2/-1)
Changed in cloud-init: | |
status: | New → In Progress |
assignee: | nobody → Chad Smith (chad.smith) |
This bug is fixed with commit 48955354 to cloud-init on branch master. /git.launchpad. net/cloud- init/commit/ ?id=48955354
To view that commit see the following URL:
https:/