Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698424 - app-emulation/libvirt-5.8.0 fails to start domain with "Unable to get host boot time: No such process"
Summary: app-emulation/libvirt-5.8.0 fails to start domain with "Unable to get host bo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PATCH
Depends on: 707982
Blocks:
  Show dependency tree
 
Reported: 2019-10-23 23:55 UTC by ron widler
Modified: 2020-02-03 15:37 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patches virhostuptime.c for host boot time fallback (libvirt-5.8.0-add_linux_stub_for_musl.patch,2.34 KB, patch)
2019-10-23 23:55 UTC, ron widler
Details | Diff
updated ebuild for libvirt-5.8.0 (libvirt-5.8.0.ebuild,9.44 KB, text/plain)
2019-10-23 23:56 UTC, ron widler
Details
emerge info (emerge-info.txt,9.76 KB, text/plain)
2019-10-23 23:58 UTC, ron widler
Details
emerge --info of correct (emerge.correct.log,6.16 KB, text/x-log)
2019-10-28 10:27 UTC, pasha
Details
emerge --info of failed (emerge.fail.log,5.92 KB, text/x-log)
2019-10-28 10:27 UTC, pasha
Details
strace of correct (strace.correct.log,5.01 KB, text/x-log)
2019-10-28 10:28 UTC, pasha
Details
strace of failed (strace.fail.log,18.84 KB, text/x-log)
2019-10-28 10:31 UTC, pasha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ron widler 2019-10-23 23:55:26 UTC
Created attachment 593728 [details, diff]
patches virhostuptime.c for host boot time fallback

when trying to start a domain it fails with the error message
"error: internal error: child reported (status=125): Unable to get host boot time: No data available"

as also described here: https://github.com/void-linux/void-packages/issues/14721

The attached the patch was taken from: https://www.redhat.com/archives/libvir-list/2019-October/msg00765.html
with the changes proposed here: https://bugzilla.redhat.com/show_bug.cgi?id=1760885

after emerging libvirt with this patch domains can be created as expected again.
Comment 1 ron widler 2019-10-23 23:56:38 UTC
Created attachment 593730 [details]
updated ebuild for libvirt-5.8.0
Comment 2 ron widler 2019-10-23 23:58:34 UTC
Created attachment 593732 [details]
emerge info
Comment 3 pasha 2019-10-28 10:26:32 UTC
I have same problem with one of my gentoo systems but attached patch didn`t help.
Attached some logs from "correct" and "failed" systems. At first sight main difference between systems is mdadm+dracut on "failed" and none of them on "correct".
Comment 4 pasha 2019-10-28 10:27:13 UTC
Created attachment 594220 [details]
emerge --info of correct
Comment 5 pasha 2019-10-28 10:27:43 UTC
Created attachment 594222 [details]
emerge --info of failed
Comment 6 pasha 2019-10-28 10:28:59 UTC
Created attachment 594224 [details]
strace of correct
Comment 7 pasha 2019-10-28 10:31:54 UTC
Created attachment 594226 [details]
strace of failed

Also made minimal working example, that simulates boot time:

#include <utmpx.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>

static unsigned long long bootTime;
static int bootTimeErrno;

void
main(void)
{
    struct utmpx id = {.ut_type = BOOT_TIME};
    struct utmpx *res = NULL;

    if (!(res = getutxid(&id))) {
        bootTimeErrno = errno;
    } else {
        bootTime = res->ut_tv.tv_sec;
    }

    printf("bootTime %lld\n", bootTime);
    printf("bootTimeErrno %d\n", bootTimeErrno);
    endutxent();
}
Comment 8 Michael Rohleder (mroh) 2019-11-18 21:16:45 UTC
I can confirm this one.

the suggestion from https://bugzilla.redhat.com/show_bug.cgi?id=1760885#c1 helped me:

disabling remember_owner in /etc/libvirt/qemu.conf and restarting libvirtd
Comment 9 Larry the Git Cow gentoo-dev 2019-12-31 22:01:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb4fc1071be2c3cc4db7f3ce9ba4b5ef15aae3ac

commit bb4fc1071be2c3cc4db7f3ce9ba4b5ef15aae3ac
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-12-31 21:07:11 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-12-31 22:01:21 +0000

    app-emulation/libvirt: version bump to 5.10.0
    
    Closes: https://bugs.gentoo.org/698424
    Closes: https://bugs.gentoo.org/702816
    Closes: https://github.com/gentoo/gentoo/pull/14190
    Package-Manager: Portage-2.3.83, Repoman-2.3.20
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/libvirt/Manifest              |   1 +
 app-emulation/libvirt/libvirt-5.10.0.ebuild | 379 ++++++++++++++++++++++++++++
 2 files changed, 380 insertions(+)
Comment 10 Gordon Pritchard 2020-01-02 19:19:26 UTC
STILL A BUG.

app-emulation/libvirt-5.8.0 just appeared in my "stable" listing, so I emerge'd it.  Now, none of my KVM/QEMU guests will start.

So, for "stable" users, this bug still exists.
Comment 11 Matthias Maier gentoo-dev 2020-01-02 20:24:22 UTC
(In reply to Gordon Pritchard from comment #10)
> STILL A BUG.

***__UNDERSTOOD__***
Comment 12 neil.stone 2020-02-03 00:22:21 UTC
Upgrade to 5.8.0 also broke mine. Bumped to 5.10.0 and immediate resolution. Suggest 5.8.0 gets blacklisted somehow 'till 5.10.0 is made stable.