yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78397
[Bug 1795508] Re: cloud-init clean from within /var/lib/cloud-init/instance
This bug is believed to be fixed in cloud-init in version 19.1. If this
is still a problem for you, please make a comment and set the state back
to New
Thank you.
** 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/1795508
Title:
cloud-init clean from within /var/lib/cloud-init/instance
Status in cloud-init:
Fix Released
Bug description:
Attempted to cloud-init clean from a directory clean will remove:
/var/lib/cloud/instance# cloud-init clean --logs --reboot
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 9, in <module>
load_entry_point('cloud-init==18.3', 'console_scripts', 'cloud-init')()
File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 904, in main
get_uptime=True, func=functor, args=(name, args))
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2514, in log_time
ret = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cloudinit/cmd/clean.py", line 81, in handle_clean_args
exit_code = remove_artifacts(args.remove_logs, args.remove_seed)
File "/usr/lib/python3/dist-packages/cloudinit/cmd/clean.py", line 75, in remove_artifacts
return 1
File "/usr/lib/python3.6/contextlib.py", line 88, in __exit__
next(self.gen)
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 832, in chdir
os.chdir(curr)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/cloud/instances/ce3aca12-4e37-4ef9-bc51-170db3d25881'
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1795508/+subscriptions
References