Provide a mechanism for capturing package_command output

Bug #1241701 reported by Craig Tracey
6
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.

Changed in cloud-init:
assignee: nobody → Craig Tracey (craigtracey)
Revision history for this message
Scott Moser (smoser) wrote :

ctracey, is there some reason why you'd not want 'tee' ?
as in
  output: {all: '| tee -a /var/log/cloud-init-output.log'}
the package command being logged makes quite reaosnable sense but is thre a
reason that capturing output generically is insufficient ?

Scott Moser (smoser)
Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Scott Moser (smoser) wrote :

marking fix-released. if you feel otherwise, please re-open and give comment as to why.

Changed in cloud-init:
status: Incomplete → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.