yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75952
[Bug 1805201] [NEW] collect-logs traceback on non-root user
Public bug reported:
Permissions errors are seen when running collect-logs as non-root user
cloud-init 18.4.24
$ cloud-init collect-logs
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 11, in <module>
load_entry_point('cloud-init==18.4', '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/devel/logs.py", line 125, in handle_collect_logs_args
collect_logs(args.tarfile, args.userdata, args.verbosity)
File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 113, in collect_logs
os.path.join(run_dir, 'cloud-init'))
File "/usr/lib/python3.6/shutil.py", line 359, in copytree
raise Error(errors)
shutil.Error: [('/run/cloud-init/instance-data-sensitive.json', '/tmp/tmphc62cg6h/cloud-init-logs-2018-11-26/run/cloud-init/instance-data-sensitive.json', "[Errno 13] Permission denied: '/run/cloud-init/instance-data-sensitive.json'")]
** Affects: cloud-init
Importance: Medium
Assignee: Chad Smith (chad.smith)
Status: In Progress
** Changed in: cloud-init
Assignee: (unassigned) => Chad Smith (chad.smith)
** Changed in: cloud-init
Importance: Undecided => Medium
** Changed in: cloud-init
Status: New => In Progress
--
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/1805201
Title:
collect-logs traceback on non-root user
Status in cloud-init:
In Progress
Bug description:
Permissions errors are seen when running collect-logs as non-root user
cloud-init 18.4.24
$ cloud-init collect-logs
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 11, in <module>
load_entry_point('cloud-init==18.4', '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/devel/logs.py", line 125, in handle_collect_logs_args
collect_logs(args.tarfile, args.userdata, args.verbosity)
File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 113, in collect_logs
os.path.join(run_dir, 'cloud-init'))
File "/usr/lib/python3.6/shutil.py", line 359, in copytree
raise Error(errors)
shutil.Error: [('/run/cloud-init/instance-data-sensitive.json', '/tmp/tmphc62cg6h/cloud-init-logs-2018-11-26/run/cloud-init/instance-data-sensitive.json', "[Errno 13] Permission denied: '/run/cloud-init/instance-data-sensitive.json'")]
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1805201/+subscriptions
Follow ups