Your message dated Sat, 06 Dec 2008 10:47:05 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#507553: fixed in libvirt 0.5.1-2 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.5.1-2 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.5.1-2_powerpc.deb to pool/main/libv/libvirt/libvirt-bin_0.5.1-2_powerpc.deb libvirt-dev_0.5.1-2_powerpc.deb to pool/main/libv/libvirt/libvirt-dev_0.5.1-2_powerpc.deb libvirt-doc_0.5.1-2_all.deb to pool/main/libv/libvirt/libvirt-doc_0.5.1-2_all.deb libvirt0-dbg_0.5.1-2_powerpc.deb to pool/main/libv/libvirt/libvirt0-dbg_0.5.1-2_powerpc.deb libvirt0_0.5.1-2_powerpc.deb to pool/main/libv/libvirt/libvirt0_0.5.1-2_powerpc.deb libvirt_0.5.1-2.diff.gz to pool/main/libv/libvirt/libvirt_0.5.1-2.diff.gz libvirt_0.5.1-2.dsc to pool/main/libv/libvirt/libvirt_0.5.1-2.dsc python-libvirt_0.5.1-2_powerpc.deb to pool/main/libv/libvirt/python-libvirt_0.5.1-2_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: Sat, 06 Dec 2008 10:37:12 +0100 Source: libvirt Binary: libvirt-bin libvirt0 libvirt0-dbg libvirt-doc libvirt-dev python-libvirt Architecture: source all powerpc Version: 0.5.1-2 Distribution: experimental 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: 507547 507553 507578 507677 Changes: libvirt (0.5.1-2) experimental; urgency=low . * [4cd547b] create /var/run/libvirt (Closes: #507578) * [fe96870] merge back master * [d46313f] drop patches for issues fixed upstream - 0007-also-look-for-usr-bin-kvm.patch - 0008-Increase-initial-qemu-monitor-read-timeout.patch - 0009-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch - 0010-raise-error-on-invalid-volume-format.patch . libvirt (0.5.1-1) experimental; urgency=low . * [d76b3a1] Imported Upstream version 0.5.1 (Closes: #507677, #507547) * [2e550ae] enable hal for device enumeration * [0d9116a] rotate qemu monitor logs (Closes: #507553) - thanks to Harald Staub * [5f85e66] depend on logrotate * [6e955a3] open qemu monitor O_APPEND instead of O_TRUNC for logrotate * [7dbea84] drop 0004-xen-prefer-xenstoraged-driver-for- listDomains.patch - applied upstream Checksums-Sha1: a1f9dfd6a7cb69ef378ebf4338cb87c27ee1e445 1633 libvirt_0.5.1-2.dsc f229c17b91aa4580a328e8109659e8c1dff0da14 6086100 libvirt_0.5.1.orig.tar.gz 02d090da02f878ca08e37d98ae7f92e637b4df41 13223 libvirt_0.5.1-2.diff.gz ecb672f1038bf6a9bd8618bf4ec796b185cdf03d 602576 libvirt-doc_0.5.1-2_all.deb c706a50e0da62bf5f340b4bab508e95487d23dde 359932 libvirt-bin_0.5.1-2_powerpc.deb 152c0124b3b64fe0b26d9218a25f67e0da8ecf6c 329850 libvirt0_0.5.1-2_powerpc.deb fe7e7fc92f18ff17a18eb23c27fd51b80c8212c7 520024 libvirt0-dbg_0.5.1-2_powerpc.deb 76c5ffdd2e147710bfe351b55e73c7c57e794ef4 381428 libvirt-dev_0.5.1-2_powerpc.deb 5e6b326c7e50ebafb98d4a3edb3e1fd457b74015 191204 python-libvirt_0.5.1-2_powerpc.deb Checksums-Sha256: 4c67530f100a46302f0f148d067e771d398aedf4b99df4e12959987f242d8512 1633 libvirt_0.5.1-2.dsc 951f4c4fac929bab1968680dfcd45fb1053df7d2e3a916e2df13f1d11fe53512 6086100 libvirt_0.5.1.orig.tar.gz 9baa9476bbdef5ebfe04cf8f0c9a422f29931722a391962eb8a2710dd2660f1a 13223 libvirt_0.5.1-2.diff.gz 21c9926c70f6bb9ae48d54d89868625718552806cd5b9d9ea1d8f2c929af22fb 602576 libvirt-doc_0.5.1-2_all.deb bdc6c8d9b2fe1b60492a6b48e98a0956b17398af6b469abd3e8a529a7ac8cff9 359932 libvirt-bin_0.5.1-2_powerpc.deb 828392b75f52aecb0378addf59c8d4d9fb0b5c02a29634cd2aecb10445fbe83d 329850 libvirt0_0.5.1-2_powerpc.deb 0aac0581ea5ee6180b34e7de7c5befa6f53a04ec37b068e1d4577bf685108ce4 520024 libvirt0-dbg_0.5.1-2_powerpc.deb 6e7887bb493445f3ec002d0b1a894e878617265eb78d370e063bf949d244770d 381428 libvirt-dev_0.5.1-2_powerpc.deb 22dcd0c07d725be82a65c77533b52af78c6d1741e45eb20e0e9b4a54ee5e830b 191204 python-libvirt_0.5.1-2_powerpc.deb Files: b83698b26de9daade3f2fc82b103ca88 1633 libs optional libvirt_0.5.1-2.dsc abc697978e9c66cbc8d8db4fa3f1c1b6 6086100 libs optional libvirt_0.5.1.orig.tar.gz 57cb32592640e66ab44d0488afbd47ec 13223 libs optional libvirt_0.5.1-2.diff.gz 41ab759db692fe2868264a478d641b03 602576 doc optional libvirt-doc_0.5.1-2_all.deb 92f6ec91a63b420e259c01293c960d7d 359932 admin optional libvirt-bin_0.5.1-2_powerpc.deb 8af73d8cd1b4430d71bbb5f6be5636b1 329850 libs optional libvirt0_0.5.1-2_powerpc.deb 183b5648d12ef5ccd8042d4ac6059b41 520024 libs extra libvirt0-dbg_0.5.1-2_powerpc.deb 419ae03a66fe34b4abf0afa493bd29a4 381428 libdevel optional libvirt-dev_0.5.1-2_powerpc.deb aaf11a8910713c760a5ed26765d9246d 191204 python optional python-libvirt_0.5.1-2_powerpc.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJOlQjn88szT8+ZCYRAsRsAJ9FVghc2bIGiwWuA5diFAcgaHiHxQCfWT92 J4S8B2X1wpQ4408AEKylIbc= =l7C2 -----END PGP SIGNATURE-----
--- End Message ---

