[libvirt] [PATCH v1 2/2] command: Change virCommandAddEnv so it replaces existing environment variables.

Richard W.M. Jones rjones at redhat.com
Tue Sep 25 11:12:40 UTC 2012


On Mon, Sep 24, 2012 at 02:24:23PM -0600, Eric Blake wrote:
> On 09/24/2012 02:16 PM, Richard W.M. Jones wrote:
> > Unfortunately this patch does not fix the bug, but it now
> > fails in a different, and stranger way:
> > 
> > libvir:  error : libvirtd quit during handshake: Input/output error
> > 
> > In this code:
> > 
> >         if ((rv = saferead(cmd->handshakeNotify[0], &c,
> >                            sizeof(c))) != sizeof(c)) {
> >             if (rv < 0)
> >                 virReportSystemError(errno, "%s",
> >                                      _("Unable to wait on parent process"));
> >             else
> >                 virReportSystemError(EIO, "%s",
> >                                      _("libvirtd quit during handshake"));
> >             return -1;
> >         }
> 
> Ewww.  Something went wrong in the child, which in turn messed up the
> handshake notifier.

This turned out to be an SELinux policy problem stopping qemu from
creating temporary files, which was exposed only once we started
setting $TMPDIR correctly for qemu.

https://bugzilla.redhat.com/show_bug.cgi?id=860235

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the libvir-list mailing list