From nobody Sun May 5 04:26:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1596459789; cv=none; d=zohomail.com; s=zohoarc; b=l2F9lOHheMaJbpyJLDXKWPP0WnM8iFCQa9iSxTOppLYg3UinR7mX6PdUU3gycF8VMbdQBcKBW3vKsnI04hOUhzxMfokiQ96/+xNbHWmRbHB4Cw9urOhn7QaQZOY1zx5L9ZQcJGCvOfpotA1eiiCCPWrIISOhKpGriUw/U2P1Fm8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596459789; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8S+ftfqJqsBnqVYOb7HEZ2ss/SmayRPJlBSOG9VW2Wk=; b=ACBHxOcttPOzWqfbBkju6far1/wtRsHR/vvFrR9UUymC1ThBYpQbF0SGidpQ+Rx6pOst7Q+ksqy5pilOHWy0gwKAIWpH8DCTb4ZoHfuzII9edIZgFY9n1vng/5IBHtYnin9Me1BXpKfaOWme1T2xM1rnXKreep6Q+PyB6cXIPgA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 15964597896061005.7784844221601; Mon, 3 Aug 2020 06:03:09 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-102-EKPgM5q0NuC6TUGImaGUDg-1; Mon, 03 Aug 2020 09:01:04 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 15756800460; Mon, 3 Aug 2020 13:00:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CE8BF8A177; Mon, 3 Aug 2020 13:00:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 543999A10B; Mon, 3 Aug 2020 13:00:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 073D0sIq007979 for ; Mon, 3 Aug 2020 09:00:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7315B26324; Mon, 3 Aug 2020 13:00:54 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id D257B19D7D for ; Mon, 3 Aug 2020 13:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596459667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8S+ftfqJqsBnqVYOb7HEZ2ss/SmayRPJlBSOG9VW2Wk=; b=UxxXiHiPSrWu9LtoURtgr/Z6R8exvMCfQE6STHSQL0bP5p9pgvnILBvT7oChOHmfwRlsv0 fpoJ6Tsy4OBfx+BLg0OP5v3LDRuSzVbJyKZWpt5M4uYU30c8PEmN78Lv4E/Jw/3Ii2O8Zm Qo86KsR2+08Yi8kqa1EsrEgcPT5vl7Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596459788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8S+ftfqJqsBnqVYOb7HEZ2ss/SmayRPJlBSOG9VW2Wk=; b=eDtlvtTZnvFpwmf6nTVlWwSN6mMkFoe+c9hGRwa15lzUv94N5BCvTs699/DbxM0NhqQu65 vc5X4zI+Cga+pvA6/k1otHb+Sdhk5ZEaziN2GUIxNwWRHWFNWS6mdcu1OK3T9bGwCNKkeQ 1vSud2PP8Qyp+X++aM04Sq4iMvxnmnU= X-MC-Unique: EKPgM5q0NuC6TUGImaGUDg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 1/2] kbase: debuglogs: Include more data to attach to bugreports Date: Mon, 3 Aug 2020 15:00:46 +0200 Message-Id: <519e38c852e42be85f9cdde68ef1c60195d246f1.1596459607.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Promote the 'What to attach?' section to a first level heading and request also the XML config of a VM, coredump backtrace if something crashed and ask to not tear down the environment for the possibility to ask for additional data. Signed-off-by: Peter Krempa --- docs/kbase/debuglogs.rst | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/kbase/debuglogs.rst b/docs/kbase/debuglogs.rst index decc53a69b..523adfcacc 100644 --- a/docs/kbase/debuglogs.rst +++ b/docs/kbase/debuglogs.rst @@ -136,13 +136,20 @@ setting which depends on the host configuration, *jou= rnald* in our case: Logging outputs: 2:journald What to attach? -~~~~~~~~~~~~~~~ +--------------- Now you should go and reproduce the bug. Once you're finished, attach: - ``/var/log/libvirt/libvirtd.log`` or whatever path you set for the daem= on logs. -- If the problem is related to a domain attach - ``/var/log/libvirt/qemu/$dom.log`` then. Or substitute ``qemu`` with wh= atever - hypervisor you are using. +- If the problem is related to a domain named ``$dom`` attach: + + - ``/var/log/libvirt/qemu/$dom.log`` (Or substitute ``qemu`` with what= ever + hypervisor you are using.) + - The XML configuration of the vm/domain obtained by ``virsh dumpxml $= dom`` + +- If the problem involves a crash of ``libvirtd`` or any other component = also + attach the core dump backtrace if possible (e.g. using ``coredumpctl``). - If you are asked for client logs, ``/tmp/libvirt_client.log``. +- Ideally don't tear down the environment in case additionall information= is + required. --=20 2.26.2 From nobody Sun May 5 04:26:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1596459722; cv=none; d=zohomail.com; s=zohoarc; b=D4yp1oQHwk7FI8oVUalW16dvK712nbiO911cKkvssfIXk2Ov6rEZuk0PufC/SGNW6H34h74v34USD7F6Qxkcduw+4hC5Bg4PqwHnGy4Y2qciV2Fb2FTC+p8pf/800gl/JkCqhe1igr+Xqz89uCN5puKMb22NfMJjiMsnX5Fot8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596459722; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TrHI++dM0elkcKfStLMHMxMSbsr6GCh4MKM9RyfQvFs=; b=SpPCBP+/Aa6LkocYUt+hCDw6gvx4hcWVytYXqsxB36RnN17RitXDdqS2RrJjkr16vFPkUEQvpo79XBDXaYvRc8ffJt7ftukEA8Sp9xw4wEPvYhxZ1Vqy6onxrIZ9gzdhNXJVEbCXZKz6dX5rVP5O19Bs6y45eOlRCTrbiYAFUjc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1596459722700936.350823834133; Mon, 3 Aug 2020 06:02:02 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-263-3WPXmycqPUGAPTmjGCVxJQ-1; Mon, 03 Aug 2020 09:01:05 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 626AD57; Mon, 3 Aug 2020 13:00:59 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CBFC60F96; Mon, 3 Aug 2020 13:00:59 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 03EFE95A72; Mon, 3 Aug 2020 13:00:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 073D0thR007990 for ; Mon, 3 Aug 2020 09:00:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7EFF9272C4; Mon, 3 Aug 2020 13:00:55 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id D7F8119D7D for ; Mon, 3 Aug 2020 13:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596459667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TrHI++dM0elkcKfStLMHMxMSbsr6GCh4MKM9RyfQvFs=; b=fYDyN+AS+nQw7KEhVZMoVK4hzYAJ1W+vT3WUSs3su1h02/UC2zCKxFYZqwCJ6mmd/W2a9k PM+2/bA7K+sp/hMlnMLKFav1LOnj9RLZ4UahkKN8ZOKZhIQo1NXbGC3ffzHmBRo9TlhNdL VaCix4l3JZ1jc8YePlDEqQeG89Jm/Tk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596459720; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TrHI++dM0elkcKfStLMHMxMSbsr6GCh4MKM9RyfQvFs=; b=SaMh+EYHjNn6hs7tX4FKQPdp5w/wVFUquqD/JCwf5xqj8qUvjDaJvuFH6gTO2amIRVWKd3 lv0t3zfJD9TGlIP84fLeURwYRA13sLOw1+LrIUTvFdvPNWj43ErWw1qaHBrjLTqd45PGMp 1TBjbKPkDEPGHqxSO6uQRk77xowFiyk= X-MC-Unique: 3WPXmycqPUGAPTmjGCVxJQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/2] kbase: debuglogs: Add some more example filters settings Date: Mon, 3 Aug 2020 15:00:47 +0200 Message-Id: <7984e08bdc6a801c316e2b4625d5d60c8ce94a95.1596459607.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Show various usage of filters including some useful examples. Signed-off-by: Peter Krempa --- docs/kbase/debuglogs.rst | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/kbase/debuglogs.rst b/docs/kbase/debuglogs.rst index 523adfcacc..8991feb17c 100644 --- a/docs/kbase/debuglogs.rst +++ b/docs/kbase/debuglogs.rst @@ -153,3 +153,42 @@ Now you should go and reproduce the bug. Once you're f= inished, attach: - If you are asked for client logs, ``/tmp/libvirt_client.log``. - Ideally don't tear down the environment in case additionall information= is required. + +Example filter settings +----------------------- + +Some filter setting suggestions for debugging more specific things. Unless= it's +explicitly stated, these apply on libvirt 4.4.0 and later. Please note tha= t some +of the filtrs below may not contain enough information for filing a libvir= t bug. + +Targetted logging for debugging QEMU vms +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Specifying only sections some sections allows for a targetted filter +configuration which works on all versions and is sufficient for most cases. + +:: + + 1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 3:object 1:ut= il + +Less verbose logging for QEMU vms +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Some subsystems are very noisy and usually not the culprit of the problems= . They +can be silenced individually for a less verbose log while still logging +everything else. Usual suspects are the JSON code, udev, authentication an= d such. +A permissive filter is good for development use cases. + +:: + + 3:remote 4:event 3:util.json 3:util.object 3:util.dbus 3:util.udev 3:n= ode_device 3:rpc 3:access.accessmanager 3:util.netlink 1:* + + +Minimalistic QEMU QMP monitor logging +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This filter logs only QMP traffic and skips most of libvirt's messages. + +:: + + 2:qemu.qemu_monitor 3:* --=20 2.26.2