Your message dated Fri, 05 Dec 2008 09:47:11 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#507553: fixed in libvirt 0.5.1-1
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-1

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-1_powerpc.deb
  to pool/main/libv/libvirt/libvirt-bin_0.5.1-1_powerpc.deb
libvirt-dev_0.5.1-1_powerpc.deb
  to pool/main/libv/libvirt/libvirt-dev_0.5.1-1_powerpc.deb
libvirt-doc_0.5.1-1_all.deb
  to pool/main/libv/libvirt/libvirt-doc_0.5.1-1_all.deb
libvirt0-dbg_0.5.1-1_powerpc.deb
  to pool/main/libv/libvirt/libvirt0-dbg_0.5.1-1_powerpc.deb
libvirt0_0.5.1-1_powerpc.deb
  to pool/main/libv/libvirt/libvirt0_0.5.1-1_powerpc.deb
libvirt_0.5.1-1.diff.gz
  to pool/main/libv/libvirt/libvirt_0.5.1-1.diff.gz
libvirt_0.5.1-1.dsc
  to pool/main/libv/libvirt/libvirt_0.5.1-1.dsc
libvirt_0.5.1.orig.tar.gz
  to pool/main/libv/libvirt/libvirt_0.5.1.orig.tar.gz
python-libvirt_0.5.1-1_powerpc.deb
  to pool/main/libv/libvirt/python-libvirt_0.5.1-1_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: Fri, 05 Dec 2008 09:36:54 +0100
Source: libvirt
Binary: libvirt-bin libvirt0 libvirt0-dbg libvirt-doc libvirt-dev python-libvirt
Architecture: source all powerpc
Version: 0.5.1-1
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 507677
Changes: 
 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: 
 3dad1d5bd6239f7ec74c271ce2119f63d0e0bcbc 1633 libvirt_0.5.1-1.dsc
 f229c17b91aa4580a328e8109659e8c1dff0da14 6086100 libvirt_0.5.1.orig.tar.gz
 cb82698bd915606c3e9cd8efe9912a52be904503 12842 libvirt_0.5.1-1.diff.gz
 ca69e68f7802700b41d628b3846d0a5c5e46f546 602416 libvirt-doc_0.5.1-1_all.deb
 bf4335e746d7e434763feb03be4a20cb589740c0 359550 libvirt-bin_0.5.1-1_powerpc.deb
 888dcf7b1f643ebfd91886321a8ab676172a6e76 329484 libvirt0_0.5.1-1_powerpc.deb
 9ab08ad2a4bafee46620b0ae2ea2e3f664ab20b1 519622 
libvirt0-dbg_0.5.1-1_powerpc.deb
 259df986433333231e8b38a0296a160a057eae6e 381002 libvirt-dev_0.5.1-1_powerpc.deb
 fa2188af164e1c945933fb8baab7839b8ae27021 190800 
python-libvirt_0.5.1-1_powerpc.deb
Checksums-Sha256: 
 033f10ebba1a4126b6bfc4b97fe7b9cb72528eb43234b9db26af471faa6cb93d 1633 
libvirt_0.5.1-1.dsc
 951f4c4fac929bab1968680dfcd45fb1053df7d2e3a916e2df13f1d11fe53512 6086100 
libvirt_0.5.1.orig.tar.gz
 c424abbcd577e612a608d692fb80859fd14a7248820779edb391bcd037a6582f 12842 
libvirt_0.5.1-1.diff.gz
 72c91b839d9440b8be6a1a0217cf01a8131a0a96037ac31d0a047e13e26a883a 602416 
libvirt-doc_0.5.1-1_all.deb
 993af874a13e2459b9fc6f8d8d6517bb5ac2bbd00fd57c553babd28ea017d36f 359550 
libvirt-bin_0.5.1-1_powerpc.deb
 042e5e1129908fd7bef930a03f759a024a2141571e07f97f268fd726e463d9a0 329484 
libvirt0_0.5.1-1_powerpc.deb
 646b5e51c40c9c893421b6ff200b1f2ca46cded9faae906a700839a2f6ce5d3c 519622 
libvirt0-dbg_0.5.1-1_powerpc.deb
 750b28ef4cab7d8243cd6a58a44bd78b69c82864dec65d8e997b65ef8d9200e8 381002 
libvirt-dev_0.5.1-1_powerpc.deb
 889bc0f3178944c7bdf2c40af3524e3051002786cf2d0e76a62a210984c3e3e3 190800 
python-libvirt_0.5.1-1_powerpc.deb
Files: 
 c44844df1d559917cc542f6d81ab349e 1633 libs optional libvirt_0.5.1-1.dsc
 abc697978e9c66cbc8d8db4fa3f1c1b6 6086100 libs optional 
libvirt_0.5.1.orig.tar.gz
 fb864cf63a6abe74ae75dcbecf2d3f7f 12842 libs optional libvirt_0.5.1-1.diff.gz
 33dc4617a54084b113fe8ed216774b6f 602416 doc optional 
libvirt-doc_0.5.1-1_all.deb
 74d5e6dbdb06ef630ff15aff408789ac 359550 admin optional 
libvirt-bin_0.5.1-1_powerpc.deb
 0b45b0244bb16582bbf6767b9c0dca0e 329484 libs optional 
libvirt0_0.5.1-1_powerpc.deb
 4af02477f7eff588ad124f8eb37e5d68 519622 libs extra 
libvirt0-dbg_0.5.1-1_powerpc.deb
 286772dea4b6732575af11dbaa35777a 381002 libdevel optional 
libvirt-dev_0.5.1-1_powerpc.deb
 efd6fa833f0784d831b1a0cf04282792 190800 python optional 
python-libvirt_0.5.1-1_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJOPaXn88szT8+ZCYRAs8LAJ9UO7Y8kB3Ej3RCrR2qLbOYwrh5XwCfY+jF
0/gK9x1+V2xOFJ2Ezxnvjlw=
=UtOf
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to