[tripleo-common] DibImageBuilder spews stdout/stderr

Bug #1577374 reported by John Trowbridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
John Trowbridge

Bug Description

We do not provide any log file for the subprocess.check_call method responsible for executing disk-image-create:
https://github.com/openstack/tripleo-common/blob/master/tripleo_common/image/image_builder.py#L89

This is undesirable behavior for a library, as the code calling into the library can not change this behavior without some mock gymnastics.

In particular, I am writing an ansible module that consumes this library. Ansible uses a job status file for tracking async tasks, and the stdout/stderr from DIB is ending up in that status file. This breaks the json format of that file.

We can instead have a defaulted log file option, and pipe both stderr and stdout to that file.

John Trowbridge (trown)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
assignee: nobody → John Trowbridge (trown)
milestone: none → newton-1
Revision history for this message
John Trowbridge (trown) wrote :

This was fixed with https://github.com/openstack/tripleo-common/commit/29d6f749d7bab01fa3defb0c1c6e1f95b268d665

not sure why the bot didnt update this bug

Changed in tripleo:
status: Triaged → Fix Committed
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-common 5.0.0.0b1

This issue was fixed in the openstack/tripleo-common 5.0.0.0b1 development milestone.

Steven Hardy (shardy)
Changed in tripleo:
status: Fix Committed → Fix Released
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.