Your message dated Sun, 31 Mar 2024 10:58:05 +0000
with message-id <e1rqst3-0050mk...@fasolo.debian.org>
and subject line Bug#1014781: fixed in mom 0.6.4-0.1
has caused the Debian Bug report #1014781,
regarding momd crashing due to error in HypervisorInterfaces/libvirtInterface.py
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1014781: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014781
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mom
Version: 0.6.0-2
Severity: grave
Tags: patch
Justification: renders package unusable

Hello Dear Maintainer,

Looks like momd is "broken" in bullseye :-(
Service is failling every start with exception :
        Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3/dist-packages/mom/HypervisorInterfaces/libvirtInterface.py", 
line 128, in _domainGetPid
        Jul 11 20:48:21 minas-anor momd[149966]:     matches = 
re.findall(r"^\s*(\d+)\s+.*" + uuid, p1, re.M)
        Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3.9/re.py", line 241, in findall
        Jul 11 20:48:21 minas-anor momd[149966]:     return _compile(pattern, 
flags).findall(string)
        Jul 11 20:48:21 minas-anor momd[149966]: TypeError: cannot use a string 
pattern on a bytes-like object

Comparing with current code for libvirtInterface.py in mom github 
https://github.com/oVirt/mom/blob/master/mom/HypervisorInterfaces/libvirtInterface.py
I made modification in libvirtInterface.py line 128
        #p1 = Popen(["ps", "axww"], stdout=PIPE).communicate()[0]
        p1 = Popen(["ps", "axww"], stdout=PIPE).communicate()[0].decode("utf-8")

Sorry for not attaching a patch file, not sure it is needed for this change

After this little change momd is now working correctly and tacking care of VM 
ballooning :-)

For the moment, i'm only using KVM + momd + balloning on test servers
(that's why i only discovered the issue now)
don't know if some other users are impacted in production.
I suppose bug is related to python 3.9, but not shure at all

Think a little "patch" release will be needed for debian package


Thank you for your time maintaining debian :-))




Here more complete log extract if needed
Jul 11 20:48:21 minas-anor momd[149966]: 2022-07-11 20:48:21,840 - 
mom.GuestManager - ERROR - Guest Manager crashed
Jul 11 20:48:21 minas-anor momd[149966]: Traceback (most recent call last):
Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3/dist-packages/mom/GuestManager.py", line 86, in run
Jul 11 20:48:21 minas-anor momd[149966]:     
self._spawn_guest_monitors(domain_list)
Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3/dist-packages/mom/GuestManager.py", line 112, in 
_spawn_guest_monitors
Jul 11 20:48:21 minas-anor momd[149966]:     info = 
self.hypervisor_iface.getVmInfo(id)
Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3/dist-packages/mom/HypervisorInterfaces/libvirtInterface.py", 
line 189, in getVmInfo
Jul 11 20:48:21 minas-anor momd[149966]:     data['pid'] = 
self._domainGetPid(data['uuid'])
Jul 11 20:48:21 minas-anor momd[149966]:   File 
"/usr/lib/python3/dist-packages/mom/HypervisorInterfaces/libvirtInterface.py", 
line 128, in _domainGetPid
Jul 11 20:48:21 minas-anor momd[149966]:     matches = 
re.findall(r"^\s*(\d+)\s+.*" + uuid, p1, re.M)
Jul 11 20:48:21 minas-anor momd[149966]:   File "/usr/lib/python3.9/re.py", 
line 241, in findall
Jul 11 20:48:21 minas-anor momd[149966]:     return _compile(pattern, 
flags).findall(string)
Jul 11 20:48:21 minas-anor momd[149966]: TypeError: cannot use a string pattern 
on a bytes-like object
Jul 11 20:48:26 minas-anor momd[149966]: 2022-07-11 20:48:26,825 - mom - ERROR 
- Thread 'GuestManager' has exited



-- System Information:
Debian Release: 11.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'stable-security')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/6 CPU threads)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_IE:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mom depends on:
ii  libvirt-daemon         7.0.0-3
ii  libvirt-daemon-system  7.0.0-3
ii  procps                 2:3.3.17-5
ii  python3                3.9.2-3
ii  python3-libvirt        7.0.0-2
ii  python3-six            1.16.0-2

mom recommends no packages.

mom suggests no packages.

-- Configuration Files:
/etc/momd.conf changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: mom
Source-Version: 0.6.4-0.1
Done: Alexandre Detiste <tc...@debian.org>

We believe that the bug you reported is fixed in the latest version of
mom, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1014...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tc...@debian.org> (supplier of updated mom package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 30 Mar 2024 13:34:45 +0100
Source: mom
Architecture: source
Version: 0.6.4-0.1
Distribution: unstable
Urgency: medium
Maintainer: Dmitry Smirnov <only...@debian.org>
Changed-By: Alexandre Detiste <tc...@debian.org>
Closes: 1014781 1018413
Changes:
 mom (0.6.4-0.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * New upstream release. (Closes: #1014781)
   * Fix watchfile for new GitHub API
   * Remove obsolete build dependencies:
     * python3-mock
     * python3-nose (Closes: #1018413)
   * Use new dh-sequence-python3
   * janitor:
     * Add upstream metadata
     * Set upstream metadata fields: Repository.
     * Update standards version to 4.6.2, no changes needed.
     * Bump debhelper from old 12 to 13.
Checksums-Sha1:
 bab066a33efccc1822a70c2f69096ce5283b98d1 1909 mom_0.6.4-0.1.dsc
 8772c4ebb50522115285d71aa38eb1ea0f5afd78 61156 mom_0.6.4.orig.tar.xz
 74f560d3d95a67653e8ef176aebb24df4c649dbf 6048 mom_0.6.4-0.1.debian.tar.xz
 a0d4025938ed69d3508fb8b9f3e4ceab4145ee3b 7838 mom_0.6.4-0.1_source.buildinfo
Checksums-Sha256:
 8b7e22e0cd930ad5b49b5f1646724fa1642a87a7d07e699012d1ee7d8574cadc 1909 
mom_0.6.4-0.1.dsc
 0181692fb57d54a2261a6184c975e8ec345ab0b389afc9a9532bcab0226a8d01 61156 
mom_0.6.4.orig.tar.xz
 da9a5b526d92624715e678e44c36114d54aa85ef27ffa31b0b2d0f79a076601f 6048 
mom_0.6.4-0.1.debian.tar.xz
 bc16301440dc77e996b43c119ae46fe2b1630f68651a87c4424db36a2699c612 7838 
mom_0.6.4-0.1_source.buildinfo
Files:
 ce49da9ef027324a843c160c7a3c3318 1909 admin optional mom_0.6.4-0.1.dsc
 866c1a958abc32021b088c0849a293ea 61156 admin optional mom_0.6.4.orig.tar.xz
 46418acb335053334b5e1e0a561f62fc 6048 admin optional 
mom_0.6.4-0.1.debian.tar.xz
 b655edd187b0603c2fa92736d6633a42 7838 admin optional 
mom_0.6.4-0.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmYIGMURHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBof6BAAsBS86XD0OBblqWJIhDCOvF6DekPCj+2M
HsUP1apJZaRjsQ0keYrf0DF/iEbGw4OOdW/2OMJjxtH8z/ISOvVYROVcGzHVI8i9
EKGMMoLU+y9p95mZfoGsqJCarLmyl/aWIjBkBISa9fnDi8vV0wNQaatTmiAOTr1m
vPxrBZP6RMPV0f7XWUYiOl7kID8JR2GQCmpLoGHAI6mC8LWFAXXVtsbi8AUNexJT
AMTzAvpJAkdrJq5q3/1wnz0ztC6q2TKRL458YHvJJsDtlZarf5bBL/aoNruD7ZpQ
YVFGS0jsVRsm+LYAqe3k2aHtIfwC5PgLHqPw23TYcyZkBgh0Y4x61x4hRFOIyNWw
/s8dUAQ+/Kq1DkbbVb/FqwcJyqpez11gzrmUTFsjPTORFfm6jbEy+kb0UGBZzzeZ
yQdAu9CsImhH3vzWu0qSlaBbhamiG9XpRQct19/89V2ZGqSJebjMwKT3Teg1kD21
n7Tix6WU7+tPWhB5UPgfXzDFCaVodJNucamv2B2TBU6vqSIYLQ8uBIngMkPuGWgc
PGgsOWnfuBn1dM8/bzcrmLBYvZT7Ia17hmsFuHf3YoxAbu0DthGfcqUnHiXOi8NV
X0TIW3TVpELVLObeztsoZXhrhaENT+LjEImfOwjdiaSmijdAj5VWSkOeQGMEPB/t
Z1Ol9J802as=
=9y8x
-----END PGP SIGNATURE-----

Attachment: pgpLkhiXwahZt.pgp
Description: PGP signature


--- End Message ---

Reply via email to