Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664164 - app-emulation/libvirt-4.6.0-r1 with qemu: errors from virsh and virt-manager: "internal error: failed to parse JSON"
Summary: app-emulation/libvirt-4.6.0-r1 with qemu: errors from virsh and virt-manager:...
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: https://libvirt.org/git/?p=libvirt.gi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 09:05 UTC by Martin Wegner
Modified: 2018-11-04 05:13 UTC (History)
5 users (show)

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


Attachments
patch to replace jansson with yajl (revert-jansson-usage.patch,51.12 KB, patch)
2018-08-22 22:24 UTC, Oleg Akimov
Details | Diff
libvirt-4.6.0-r1.ebuild with yajl (libvirt-4.6.0-r1.ebuild,9.40 KB, text/plain)
2018-08-22 22:25 UTC, Oleg Akimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wegner 2018-08-21 09:05:00 UTC
When trying to control domains after the upgrade to app-emulation/libvirt-4.6.0-r1, I get the following error when using either virsh or virt-manager (version 1.5.1):

% virsh shutdown docker
error: Failed to shutdown domain docker
error: internal error: failed to parse JSON 1:63: too big integer near '18446744073709551615'

According to [0] this seems to be fixed upstream for libvirt-4.7.0, see URL above.

[0] https://bbs.archlinux.org/viewtopic.php?id=239599

Downgrading to app-emulation/libvirt-4.5.0-r1 fixes this for the moment.

% emerge --info
Portage 2.3.47 (python 2.7.15-final-0, hardened/linux/amd64, gcc-7.3.0, glibc-2.27-r6, 4.14.57-gentoo-odin x86_64)                                                                                                                                                               
=================================================================
System uname: Linux-4.14.57-gentoo-odin-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_V2_@_3.40GHz-with-gentoo-2.6
KiB Mem:    32789140 total,   5203720 free                                                                                                                                                                                                                                       
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 20 Aug 2018 06:15:01 +0000
Head commit of repository gentoo: 8a9f1f25ccd3822fe260a048eee50947fd9b113b
Timestamp of repository poly-c: Fri, 17 Aug 2018 10:49:16 +0000
Head commit of repository steam-overlay: 1237b523da636a247376b25cd4ec59c16d5b0104

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p1) 2.31.1
ccache version 3.4.2 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/ccache:          3.4.2::gentoo
dev-util/cmake:           3.12.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r2::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

local
    location: /usr/local/portage/mittwinter
    masters: gentoo
    priority: 0

betagarden
    location: /var/lib/layman/betagarden
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/betagarden.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

fkmclane
    location: /var/lib/layman/fkmclane
    sync-type: laymansync
    sync-uri: https://github.com/fkmclane/overlay.git
    masters: gentoo
    priority: 50

flow
    location: /var/lib/layman/flow
    sync-type: laymansync
    sync-uri: https://gitlab.com/Flow/flow-s-ebuilds.git
    masters: gentoo
    priority: 50

gamarouns
    location: /var/lib/layman/gamarouns
    sync-type: laymansync
    sync-uri: https://bitbucket.org/amaroun/gamarouns
    masters: gentoo
    priority: 50

genthree
    location: /var/lib/layman/genthree
    sync-type: laymansync
    sync-uri: https://gitlab.com/genthree/overlay.git
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gnome.git
    masters: gentoo
    priority: 50

grub2-themes
    location: /var/lib/layman/grub2-themes
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/grub2-themes-overlay.git
    masters: gentoo
    priority: 50

hacking-gentoo
    location: /var/lib/layman/hacking-gentoo
    sync-type: laymansync
    sync-uri: rsync://rsync.mad-hacking.net/hacking-gentoo-overlay/
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

kaa
    location: /var/lib/layman/kaa
    sync-type: laymansync
    sync-uri: https://github.com/Oleh-Kravchenko/kaa-layman.git
    masters: gentoo
    priority: 50

mittwinter
    location: /var/lib/layman/mittwinter
    sync-type: laymansync
    sync-uri: https://github.com/mittwinter/gentoo-overlay
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

poly-c
    location: /var/lib/layman/poly-c
    sync-type: laymansync
    sync-uri: rsync://rsync.gentoofan.org/poly-c
    masters: gentoo
    priority: 50

ssnb
    location: /var/lib/layman/ssnb
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/repo/user/ssnb
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

tranquility
    location: /var/lib/layman/tranquility
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/repo/dev/tranquility.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6
/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /e
tc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --alert y --verbose-conflicts --changed-deps y --changed-use --complete-graph y --with-bdeps y --autounmask --autounmask-write --deep --backtrack=1000 --keep-going y"                                                                                     
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"                                                                                              
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="        ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo        ftp://mirror.netcologne.de/gentoo/      "
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j6 -l6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"                                 
PORTAGE_TMPDIR="/var/tmp"
USE="acl aes amd64 apache2 berkdb bzip2 cli crypt cryptsetup cxx device-mapper dri exif fat fuse gdbm hardened iconv icu idn inotify ipv6 libtirpc lvm lz4 lzma lzo managesieve mmx mmxext modules multilib ncurses nls nptl offensive openmp pam pcre pie popcnt readline seccomp
 smartcard sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 syslog tcpd unicode urandom vim-syntax xattr xtpax xz zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 i
ntel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner aut
hz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA
_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garm
in garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="en de" LCD_DEVICES="b
ayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PY
THON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23 ruby24 ruby25" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac
delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Oleg Akimov 2018-08-22 22:22:43 UTC
It's a problem with jansson

There is a solution:
https://www.redhat.com/archives/libvir-list/2018-August/msg00633.html
https://bugzilla.redhat.com/show_bug.cgi?id=1614569

But you should rebase that patch onto v4.6.0 tag to apply it.

I have done rebase, patched libvirt-4.6.0-r1.ebuild and now virt-manager works like a charm for me
Comment 2 Oleg Akimov 2018-08-22 22:24:09 UTC
Created attachment 544588 [details, diff]
patch to replace jansson with yajl
Comment 3 Oleg Akimov 2018-08-22 22:25:37 UTC
Created attachment 544590 [details]
libvirt-4.6.0-r1.ebuild with yajl
Comment 4 Renich Bon Ciric 2018-08-30 18:54:52 UTC
(In reply to Oleg Akimov from comment #2)
> Created attachment 544588 [details, diff] [details, diff]
> patch to replace jansson with yajl

This patch resolved all my minikube + kvm2 driver issues. Thanks a lot.
Comment 5 Jonathan Callen (RETIRED) gentoo-dev 2018-09-09 17:18:21 UTC
Upstream has released a version 4.7.0 that contains the attached patch
Comment 6 Larry the Git Cow gentoo-dev 2018-11-04 05:13:47 UTC
The bug has been closed via the following commit(s):

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

commit 93da884126b854197bd055544c638007b8901b51
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-11-04 04:58:56 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-11-04 05:13:29 +0000

    app-emulation/libvirt: Version bump to 4.8.0
    
    Closes: https://bugs.gentoo.org/668766
    Closes: https://bugs.gentoo.org/664164
    Closes: https://bugs.gentoo.org/666728
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-emulation/libvirt/Manifest                |   1 +
 app-emulation/libvirt/libvirt-4.6.0-r1.ebuild |   2 +-
 app-emulation/libvirt/libvirt-4.8.0.ebuild    | 382 ++++++++++++++++++++++++++
 3 files changed, 384 insertions(+), 1 deletion(-)