Ever since I updated to libvirt-python-6.8.0, virt-manager throws an error when making a snapshot of a KVM virtual machine: "Error creating snapshot: name 'dom' is not defined" The snapshot fails and is not shown in the snapshot-view of the VM. I discovered a bug report in the Red Hat bugzilla of the same nature: https://bugzilla.redhat.com/show_bug.cgi?id=1888709 Based on this I propose to stabilize the next version quickly. Reproducible: Always Steps to Reproduce: 1.Take a snapshot of a running VM using virt-manager 2.Get the error thrown at you. 3. Actual Results: Error creating snapshot: name 'dom' is not defined Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/details/snapshots.py", line 237, in _do_create_snapshot self.vm.create_snapshot(xml) File "/usr/share/virt-manager/virtManager/object/domain.py", line 1125, in create_snapshot self._backend.snapshotCreateXML(xml, flags) File "/usr/lib/python3.7/site-packages/libvirt.py", line 3031, in snapshotCreateXML __tmp = virDomainSnapshot(self, _obj=ret) File "/usr/lib/python3.7/site-packages/libvirt.py", line 7023, in __init__ self._dom = dom NameError: name 'dom' is not defined Expected Results: A snapshot is made successfully. # emerge --info Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-5.4.72-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.7 KiB Mem: 32117264 total, 326204 free KiB Swap: 25165816 total, 19825568 free Timestamp of repository gentoo: Sun, 20 Dec 2020 10:45:01 +0000 Head commit of repository gentoo: 675e5a8e24bbba7119a0fbb28c1d0c5b74971b12 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo dev-util/cmake: 3.17.4-r1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync2.nl.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: localrepo location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE dlj-1.1 Oracle-BCLA-JavaSE googleearth AdobeFlash-11.x RAR unRAR linux-fw-redistributable linux-firmware no-source-code freedist MPEG-4 intel-ucode splunk-eula Spotify MSttfEULA all-rights-reserved NPSL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="nl_NL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="nl de fr en en_US" MAKEOPTS="-j4" 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="X X509 a52 aac aacplus acl acpi activities addc ads alsa amd64 amr anacron apng avx berkdb bluetooth branding bzip2 cacert cairo caps cdda cddb cdr clamdtop cli conch conntrack context crypt cryptsetup cups curl dar64 dbus declarative designer dhcp-tools dnssec dolphin dpi dri drm dts dvd dvdr ebook elogind emboss encode exif faac fax ffmpeg flac fortran gd gdbm gif gimp gpg gphoto2 gpm graph gtk gudev gui hpcups http2 hwdb iconv icu imagemagick imap initramfs ipv6 java jpeg jpeg2k kde kipi kwallet lcms libglvnd libnotify libtirpc lm_sensors logrotate lua lvm lzma lzo mad mbox melt metadata-analysis-api minizip mjpeg mmx mng mobi monitor mount mp3 mp4 mpeg mtp multilib ncurses nfs nls nptl ogg openexr opengl openmp opus pam pango pcre pdf perl phonon plasma png pnm policykit ppds printsupport pulseaudio qml qt5 quicktime quota readline redeyes sasl scanner sdl seccomp semantic-desktop sensord slp smbsharemodes smime smtp sndfile snmp soap spell spice split-usr sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg swat syslog system-libvncserver taglib tcpd tftp theora threads tiff tls truetype twolame udev udisks unicode upcall upower usb usbredir utils video videoslideshow vim-syntax virt-network vorbis vpx webchannel webp widgets winbind wireshark-plugins wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 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 authz_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 sheets words" CAMERAS="ptp2 directory canon samsung" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="nl de fr en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Actually, I just discovered a bug-report that is related to this. I didn't find it before because it mentions the wrong package (virt-manager), while the bug is in the libvirt-python package. Related ticket: https://bugs.gentoo.org/show_bug.cgi?id=747871 Please can you declare libvirt-6.9.0-r1 and libvirt-python-6.9.0 stable to mitigate this problem? The actual fix is in libvirt-python-6.9.0... Thanks, Toon.
Stabilizing 7.0.0 in a minute. *** This bug has been marked as a duplicate of bug 747871 ***