Your message dated Thu, 04 Dec 2008 17:17:05 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#507553: fixed in libvirt 0.4.6-7 has caused the Debian Bug report #507553, regarding libvirt: simple logrotate 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 [EMAIL PROTECTED] immediately.) -- 507553: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507553 Debian Bug Tracking System Contact [EMAIL PROTECTED] with problems
--- Begin Message ---Package: libvirt Version: 0.4.4-3 Severity: normal The log files in /var/log/libvirt/qemu/ may become quite large, especially with collectd's libvirt plugin (collects and logs drive statistics every 10 seconds). munin-libvirt-plugins has a similar effect, only that the volume is smaller (every 5 minutes). I use the following quick hack to make the logs rotateable (with logrotate's copytruncate option): diff -ur libvirt-0.4.4.orig/src/qemu_driver.c libvirt-0.4.4/src/qemu_driver.c --- libvirt-0.4.4.orig/src/qemu_driver.c 2008-06-12 16:52:53.000000000 +0200 +++ libvirt-0.4.4/src/qemu_driver.c 2008-12-02 12:48:32.271881000 +0100 @@ -844,7 +844,7 @@ return -1; } - if ((vm->logfile = open(logfile, O_CREAT | O_TRUNC | O_WRONLY, + if ((vm->logfile = open(logfile, O_CREAT | O_APPEND | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, _("failed to create logfile %s: %s"), So the log file is opened with O_APPEND (to make logrotate work with copytruncate) and without O_TRUNC (to not lose log information e.g. with stop and start of a VM).
--- End Message ---
--- Begin Message ---Source: libvirt Source-Version: 0.4.6-7 We believe that the bug you reported is fixed in the latest version of libvirt, which is due to be installed in the Debian FTP archive: libvirt-bin_0.4.6-7_powerpc.deb to pool/main/libv/libvirt/libvirt-bin_0.4.6-7_powerpc.deb libvirt-dev_0.4.6-7_powerpc.deb to pool/main/libv/libvirt/libvirt-dev_0.4.6-7_powerpc.deb libvirt-doc_0.4.6-7_all.deb to pool/main/libv/libvirt/libvirt-doc_0.4.6-7_all.deb libvirt0-dbg_0.4.6-7_powerpc.deb to pool/main/libv/libvirt/libvirt0-dbg_0.4.6-7_powerpc.deb libvirt0_0.4.6-7_powerpc.deb to pool/main/libv/libvirt/libvirt0_0.4.6-7_powerpc.deb libvirt_0.4.6-7.diff.gz to pool/main/libv/libvirt/libvirt_0.4.6-7.diff.gz libvirt_0.4.6-7.dsc to pool/main/libv/libvirt/libvirt_0.4.6-7.dsc python-libvirt_0.4.6-7_powerpc.deb to pool/main/libv/libvirt/python-libvirt_0.4.6-7_powerpc.deb 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 [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Guido Günther <[EMAIL PROTECTED]> (supplier of updated libvirt 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 [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Thu, 04 Dec 2008 17:50:45 +0100 Source: libvirt Binary: libvirt-bin libvirt0 libvirt0-dbg libvirt-doc libvirt-dev python-libvirt Architecture: source all powerpc Version: 0.4.6-7 Distribution: unstable Urgency: low Maintainer: Debian Libvirt Maintainers <[EMAIL PROTECTED]> Changed-By: Guido Günther <[EMAIL PROTECTED]> Description: libvirt-bin - the programs for the libvirt library libvirt-dev - development files for the libvirt library libvirt-doc - documentation for the libvirt library libvirt0 - library for interfacing with different virtualization systems libvirt0-dbg - library for interfacing with different virtualization systems python-libvirt - libvirt Python bindings Closes: 499720 507547 507553 507578 507677 Changes: libvirt (0.4.6-7) unstable; urgency=low . * [ea12bd9] create /var/run/libvirt fixes /var/run on tmpfs (Closes: #507578) * [97e5706] also look for /usr/bin/kvm (Closes: #507547) * [311b4c1] increase initial qemu monitor read timeout (Closes: #499720) * [fbe4e00] open qemu monitor log O_APPEND instead of O_TRUNC * [f8ce017] raise error on invalid volume format * [40edcf8] rotate qemu monitor logs (Closes: #507553) - thanks to Harald Staub * [46ea43a] fix segfault on missing volume format (Closes: #507677) - thanks to Daniel Veillard * [ee377f3] bump shlibs version to 0.4.6 * [504d55d] depend on logrotate Checksums-Sha1: 6f64bb9fc084354411266107288f9d3c3ff28d12 1593 libvirt_0.4.6-7.dsc 9ed7ca5bd65dc2a40ebe29a8c4d88a69a63bd39a 16312 libvirt_0.4.6-7.diff.gz 015d6b36a8b2c3dec4c71c901fca138932eca632 548026 libvirt-doc_0.4.6-7_all.deb 6225648a7a921c7d64bb35d29e3aa4796c3c27ba 236904 libvirt-bin_0.4.6-7_powerpc.deb 689be7ca652f401067edf322f750c3fa85604ee7 307666 libvirt0_0.4.6-7_powerpc.deb b6f48fc9052b429eabd8ef158c46447c23b2dd45 554338 libvirt0-dbg_0.4.6-7_powerpc.deb 906830bf987b0b3944807a42b345db5b353e62ea 385978 libvirt-dev_0.4.6-7_powerpc.deb 09b54ae0231f101d23858f90eb6bd507e6ad879f 151500 python-libvirt_0.4.6-7_powerpc.deb Checksums-Sha256: b334383d761fcda1296e9d28b0559abdce58bcf133df2e3a364c6dbfca33e7a4 1593 libvirt_0.4.6-7.dsc e5a1cf470ac51b2caab0a50714d80bfada285ac8a1e7f184286400f3f77a93b6 16312 libvirt_0.4.6-7.diff.gz 8e084949b8d6a1f9768e638f02f67f95b7b954d539949180e700e9846a4d8eae 548026 libvirt-doc_0.4.6-7_all.deb 6701263d7ce08012b18416e27745aa18edcca6bfea3474d5905d198b44f7d235 236904 libvirt-bin_0.4.6-7_powerpc.deb b9cff65e3f798fc282757a48b88430e9bd66dd2ea4a42a960d224bfcb4f2ae78 307666 libvirt0_0.4.6-7_powerpc.deb b7063218da44d10ca9bcbec10bc204b8f9fed20cbb27765c4b93814dbe1f459b 554338 libvirt0-dbg_0.4.6-7_powerpc.deb 97410e6bab137cb20399fe3f2b750f3ff9e84ab3015d246b121e6f8ea184934f 385978 libvirt-dev_0.4.6-7_powerpc.deb e105fa3b819e35876deaec0d0451520413dfbb9538574c837a799cd4f9063022 151500 python-libvirt_0.4.6-7_powerpc.deb Files: 12fc013705ca4f40c5a9df3418c8168c 1593 libs optional libvirt_0.4.6-7.dsc e3fa7c0376a14d542a2b61701f46f7a5 16312 libs optional libvirt_0.4.6-7.diff.gz f087fc94c99bd1d4ecca4e9df3fdc8d7 548026 doc optional libvirt-doc_0.4.6-7_all.deb ad899e5a96f4f92645822b803a3aed38 236904 admin optional libvirt-bin_0.4.6-7_powerpc.deb 8a8576cd128eff7c6fe349d331a2f57d 307666 libs optional libvirt0_0.4.6-7_powerpc.deb 8f655be9698bd02145854c38d719dec5 554338 libs extra libvirt0-dbg_0.4.6-7_powerpc.deb c46654f5ada27f652e4fa133ee3c0b0e 385978 libdevel optional libvirt-dev_0.4.6-7_powerpc.deb 712f876b9b3064c35bb505c37944dc68 151500 python optional python-libvirt_0.4.6-7_powerpc.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJOA80n88szT8+ZCYRAsHZAJ9JoJtyy/QBRH0gjl4BDAL3XTrntQCfanns fp9snvj82lC9CV+PkfaiK9U= =FALw -----END PGP SIGNATURE-----
--- End Message ---

