
On Tue, Jul 19, 2016 at 4:56 PM, Tomáš Golembiovský <tgolembi@redhat.com> wrote:
On Thu, 14 Jul 2016 17:25:28 +0300 Nir Soffer <nsoffer@redhat.com> wrote:
After https://gerrit.ovirt.org/#/c/46733/ you should be able to create the pipeline in python like this:
v2v = Popen(["virt-v2v", ...], stdout=PIPE, stderr=STDOUT) tee = Popen(["tee", "-a", logfile], stdin=v2v.stdout, stdout=PIPE, stderr=PIPE)
Now we can read output from tee.stdout, and when tee is finished, we can wait for v2v to get the exit code.
Since all output would go to tee stdout and stderr may only contain tee usage errors, we don't need to use AsyncProc, making this code python 3 compatible.
Yes, this may actualy work. And do we plan to adopt the cpopen 1.4.1, where this is fixed, in VDSM?
cpopen 1.5.1 - and yes but not in ovirt-4.0
-- Tomáš Golembiovský <tgolembi@redhat.com> _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- *Yaniv Bronhaim.*