Provide a mechanism for capturing package_command output
Bug #1241701 reported by
Craig Tracey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Craig Tracey |
Bug Description
We have run into a few scenarios where yum fails to install certain packages via cloud-init. As all of the package_command implementations set capture=False when shelling out, there is no easy way for a user to debug this sort of a problem.
I am proposing that we add a directive that would selectively turn on logging for package_command.
Related branches
Changed in cloud-init: | |
assignee: | nobody → Craig Tracey (craigtracey) |
Changed in cloud-init: | |
status: | New → Incomplete |
To post a comment you must log in.
ctracey, is there some reason why you'd not want 'tee' ? cloud-init- output. log'}
as in
output: {all: '| tee -a /var/log/
the package command being logged makes quite reaosnable sense but is thre a
reason that capturing output generically is insufficient ?