From nobody Fri May 3 11:13:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 149016976497140.3946925496482; Wed, 22 Mar 2017 01:02:44 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3F3514DD55; Wed, 22 Mar 2017 08:02:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 117A27AF7B; Wed, 22 Mar 2017 08:02:44 +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 BB2AB5EC65; Wed, 22 Mar 2017 08:02:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2M82UtJ006921 for ; Wed, 22 Mar 2017 04:02:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id C3DDC785D3; Wed, 22 Mar 2017 08:02:30 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B958DC65D6 for ; Wed, 22 Mar 2017 08:02:29 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 137076AAD1 for ; Wed, 22 Mar 2017 08:02:28 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id g2so29140954pge.2 for ; Wed, 22 Mar 2017 01:02:27 -0700 (PDT) Received: from prerna-saxena.dev.eng.nutanix.com. (206-15-90-246.static.twtelecom.net. [206.15.90.246]) by smtp.gmail.com with ESMTPSA id a62sm1939099pgc.60.2017.03.22.01.02.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 01:02:25 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3F3514DD55 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3F3514DD55 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i74QZjRc" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 137076AAD1 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=saxenap.ltc@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 137076AAD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=Ztm0YtFGSBlpSCMtFfVGVHh8UNZ3cPZwl48XyZC3w0w=; b=i74QZjRck3uYOb9wdunpJIgS4h5u75FeTIzBv45UvFMj6Jl+MLe/OZXQqi+sTVZIDa vJ4wKdVL2N1VJmSxOBIbTK0peBhownRfo/1CgsixNmHLvUxxYgbrlWgVssKhFRcMrL+k xNnj4lQIooExWAa6Q3yaaqJSDCsKv/OgyTv93u+arbgrMUmRmnCSzfDprhhW4MFYy13Q iB8ZmjysvHa1x/IbtJDX9IPRgwRACYo3Xgrt8juyhPa77jsdfT7ZGrHLZGgCCaiFqfn6 O6ikhk1ZvWvKKmOK30SPhZYcexszwkwpdeLvYl3GbS1C/tDFuCnedXVRJNmqxuvbGmsT ZMQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Ztm0YtFGSBlpSCMtFfVGVHh8UNZ3cPZwl48XyZC3w0w=; b=okhQqm7Eo/rtzmkIAoHwGb5Bqt4KBurEH+vW41WpYTc+L+rXMKCnWY4c8WYsNw8OAa Cd6iUYlx6bcRXoVevj87voxQeCZ5/kM0/Tuzi7TpEKmZJNCfwBgdpsn0xDeuME0CtkgM sb/z4Ft6mJC6xu5JBIH+CaV320aPH3RmUw18u6bWY/07HXiqKl8o7gld+frpkRMlckDP /7m7v0wk8MVO1kv9qb3NOF1DbqQgfshrSmEhlbRLcH5qFt+b981xmxFkRDIISDaFqRIj kdc7wGt9GkdvzAsmb2Qn9KvRhoR8GiCniGVhIPw8GF8e/oAhBOowwiFoHTq5DyqHV+RB 6zVQ== X-Gm-Message-State: AFeK/H0qZWzyeCp+IBurHGTlKPA/jaBswtM+yHYCwQvQ+cvWeH0LmRyzBJBaRbw3QhqI8g== X-Received: by 10.99.253.5 with SMTP id d5mr42010629pgh.47.1490169746216; Wed, 22 Mar 2017 01:02:26 -0700 (PDT) From: Prerna Saxena To: libvirt-list@redhat.com Date: Wed, 22 Mar 2017 01:02:17 -0700 Message-Id: <1490169739-17852-2-git-send-email-saxenap.ltc@gmail.com> In-Reply-To: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> References: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 22 Mar 2017 08:02:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 22 Mar 2017 08:02:28 +0000 (UTC) for IP:'74.125.83.66' DOMAIN:'mail-pg0-f66.google.com' HELO:'mail-pg0-f66.google.com' FROM:'saxenap.ltc@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.07 * (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 74.125.83.66 mail-pg0-f66.google.com 74.125.83.66 mail-pg0-f66.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/3] Debug: Add WARN'ing messages for when a client has opened/closed connection. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 22 Mar 2017 08:02:45 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" While tracing connections from a remote client, it helps to keep track of the connection lifecycle. Messages such as the following : error : virNetSocketReadWire:1574 : End of file while reading data: Input/o= utput error are rather unhelpful. They do not indicate if the client had earlier asked = for connection closure via libvirt API. This patch introduces messages to annotate when a client connected/disconne= cted. Signed-off-by: Prerna Saxena --- src/rpc/virnetserverclient.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c index 85857bc..a77feaa 100644 --- a/src/rpc/virnetserverclient.c +++ b/src/rpc/virnetserverclient.c @@ -678,14 +678,19 @@ int virNetServerClientGetTLSKeySize(virNetServerClien= tPtr client) return size; } #endif - +/* + * This mostly just needs to publish the client socket FD to logs. + * It does not necessarily need a lock, or will add lock contention proble= ms. + * Replace the lock with a reference counting mechanism, to prevent the cl= ient + * object from being deallocated while this is being run + */ int virNetServerClientGetFD(virNetServerClientPtr client) { int fd =3D -1; - virObjectLock(client); + virObjectRef(client); if (client->sock) fd =3D virNetSocketGetFD(client->sock); - virObjectUnlock(client); + virObjectUnref(client); return fd; } =20 @@ -965,7 +970,9 @@ void virNetServerClientClose(virNetServerClientPtr clie= nt) virKeepAlivePtr ka; =20 virObjectLock(client); - VIR_DEBUG("client=3D%p", client); + VIR_WARN("Free'ing up resources for client=3D%p sock=3D%d", client, + virNetServerClientGetFD(client)); + if (!client->sock) { virObjectUnlock(client); return; @@ -1039,6 +1046,8 @@ void virNetServerClientDelayedClose(virNetServerClien= tPtr client) virObjectLock(client); client->delayedClose =3D true; virObjectUnlock(client); + VIR_WARN("Client=3D%p sock=3D%d requested closure of connection.", + client, virNetServerClientGetFD(client)); } =20 void virNetServerClientImmediateClose(virNetServerClientPtr client) @@ -1151,6 +1160,7 @@ static void virNetServerClientDispatchRead(virNetServ= erClientPtr client) if (client->rx->nfds =3D=3D 0) { if (virNetServerClientRead(client) < 0) { client->wantClose =3D true; + VIR_WARN("Client=3D%p sock=3D%p closed connection", client, cl= ient->sock); return; /* Error */ } } --=20 1.8.1.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 11:13:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1490169761200960.2687755367946; Wed, 22 Mar 2017 01:02:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7B4CB61B8E; Wed, 22 Mar 2017 08:02:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 45FE618342; Wed, 22 Mar 2017 08:02:40 +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 E3C6418523C6; Wed, 22 Mar 2017 08:02:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2M82VSR006922 for ; Wed, 22 Mar 2017 04:02:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id AB4D2B9298; Wed, 22 Mar 2017 08:02:31 +0000 (UTC) Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A21CBB9295 for ; Wed, 22 Mar 2017 08:02:30 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 52A6413D15 for ; Wed, 22 Mar 2017 08:02:29 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id r137so21743544pfr.3 for ; Wed, 22 Mar 2017 01:02:28 -0700 (PDT) Received: from prerna-saxena.dev.eng.nutanix.com. (206-15-90-246.static.twtelecom.net. [206.15.90.246]) by smtp.gmail.com with ESMTPSA id a62sm1939099pgc.60.2017.03.22.01.02.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 01:02:26 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7B4CB61B8E Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7B4CB61B8E Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ez3X+wzw" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 52A6413D15 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=saxenap.ltc@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 52A6413D15 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=81aMLpErXocmiZMnIFhsdFf6JkqFSR2DNyo/5FcRjq4=; b=ez3X+wzw0Ww6DFpDGl9hm+PezwlQEnhWuzFCQb/6HT212/noICqn5wDzR4eUhOA6Yi v8U5wLoJBrx3oru4F9av9ga2rcjwXWajQlZk/eJm8APEWAYz837/5PJfB1esjmm+pyYF +fwDBNq+2Ysk70s2njVB6VsLHmzebPD9P2Zo6/FUXeXsVdXuo/T/f6R9JwHnOaEXzzQV LOd+tZoS946nRL6dyz0fn9qHv3IPGnC0M0tKGZ+1Fsm+fgrFSbyh5otZxRVzlhTy4r8U 604M1MAfZwJuXLQyDoCezK7TbXZOGfCnciB1u5ZO1rpE9L72Up5TEtRYaW73ikDK5u// 1J1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=81aMLpErXocmiZMnIFhsdFf6JkqFSR2DNyo/5FcRjq4=; b=HIoVxzk+FCtiJCAePlJktgHJIkrWy6rY/jF51EpqEgeY6301H/NRmJAqGRtQt06Kmd jxKbH7jeIr6sfYmUKs8owN0TbI6NE/jFYmGHwOLBUBTGy0ANy3lMT9HTVTy4wB/ZyGIz vC2bJvRtq3hZFr1afRruIuuyNoj6ZPCkog9cNziViPEu22c6lDCWQL0bHlDfgf3ig6Vx x332M3ZNqxtYvOw8cQw1yjzMmGkaLdkI2jJzUTOSfl0n8EWPWkOhEqRn/Zd0sdvg7qK6 dmz58AFN/rwUL6slsDRpaFfPK0YBUsO3/j2gWuAUPIzQ5cCPQFLAXBFPOnskXBgV524e fIpQ== X-Gm-Message-State: AFeK/H3gJBefj3ov9XsM+WvX0UHFmcFcvU/X+d6rQAtF3nGTXo7exg6bjxXciEDC1GS+0Q== X-Received: by 10.99.101.67 with SMTP id z64mr43323869pgb.78.1490169747464; Wed, 22 Mar 2017 01:02:27 -0700 (PDT) From: Prerna Saxena To: libvirt-list@redhat.com Date: Wed, 22 Mar 2017 01:02:18 -0700 Message-Id: <1490169739-17852-3-git-send-email-saxenap.ltc@gmail.com> In-Reply-To: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> References: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 22 Mar 2017 08:02:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 22 Mar 2017 08:02:29 +0000 (UTC) for IP:'209.85.192.193' DOMAIN:'mail-pf0-f193.google.com' HELO:'mail-pf0-f193.google.com' FROM:'saxenap.ltc@gmail.com' RCPT:'' X-RedHat-Spam-Score: -1.61 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.192.193 mail-pf0-f193.google.com 209.85.192.193 mail-pf0-f193.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/3] Debug: Remove unnecessary errors reported while parsing non-existent sysfs files. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 22 Mar 2017 08:02:41 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Sample from current logs: error : virFileReadAll:1290 : Failed to open file '/sys/class/net/tap3/oper= state': No such file or directory error : virNetDevGetLinkInfo:1895 : unable to read: /sys/class/net/tap3/ope= rstate: No such file or directory These have no useful data point and are redundant. Signed-off-by: Prerna Saxena --- src/util/virnetdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index d123248..3e2f962 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -1874,7 +1874,7 @@ virNetDevGetLinkInfo(const char *ifname, if (virNetDevSysfsFile(&path, ifname, "operstate") < 0) goto cleanup; =20 - if (virFileReadAll(path, 1024, &buf) < 0) { + if (virFileReadAllQuiet(path, 1024, &buf) < 0 && errno !=3D ENOENT) { virReportSystemError(errno, _("unable to read: %s"), path); --=20 1.8.1.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 11:13:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1490169768426114.72573411745668; Wed, 22 Mar 2017 01:02:48 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id CA36880F7B; Wed, 22 Mar 2017 08:02:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A1A2C78F0D; Wed, 22 Mar 2017 08:02:47 +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 532815EC66; Wed, 22 Mar 2017 08:02:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2M82a47006950 for ; Wed, 22 Mar 2017 04:02:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6AAB717AF6; Wed, 22 Mar 2017 08:02:36 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F5E04D73A for ; Wed, 22 Mar 2017 08:02:36 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 95D298553C for ; Wed, 22 Mar 2017 08:02:30 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 81so21094907pgh.3 for ; Wed, 22 Mar 2017 01:02:29 -0700 (PDT) Received: from prerna-saxena.dev.eng.nutanix.com. (206-15-90-246.static.twtelecom.net. [206.15.90.246]) by smtp.gmail.com with ESMTPSA id a62sm1939099pgc.60.2017.03.22.01.02.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 01:02:27 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CA36880F7B Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com CA36880F7B Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OECWa6KC" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 95D298553C Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=saxenap.ltc@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 95D298553C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=Sfo0CSQ7Ko2dDFVLMguX4y1vXicB7MsFRdaYvp8uFg0=; b=OECWa6KCFQ006U8LvmY6QrP0J407AWatm4061aewBKAkZ/vo31XTXAk7X3/x6/z6+C l7G52Fh5BnWJ24xt/F4zMpGd5J6LyAAAe+QxDuEP0Iv9pBVsoGg9CWjgSXY+KSEWD1m3 J72/HubQXJF7mpS0zTh4Ewor+KedVjqfVg7PlcnElLcP9e5h2TeyxGFkCNE6FZ1uesJg UgGGxzFf97U7Nh1QCdSKW7Ok8vKDZjE2d37u8AIY53fE2DIDJC1uInABhbGeYEkb1dQp 5MAEl74RCqE6Lvkg6VOlBCj1O2I7i/vldNAI9lltI022B5+Bo93W/c7XimEb/+aR3N45 uHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Sfo0CSQ7Ko2dDFVLMguX4y1vXicB7MsFRdaYvp8uFg0=; b=C2TOKhJ1jEJ3b4IeHfKkqvXyOY8Z9ZGYJdPx12fG07oH2eJoWDjpzzcZ6KI53ApYSc oKlBFdV7kA9N5MovCGYwQdpqUs22dd2oA6UEahyyV7jt07fXaEQwC4JGbgjjgBOgqhjD vCv8eku6OxhFZ6nGCbg2kpPB68Gg/qqvdaj2p8T+ktYxKwMwxiZcgJeXGUvdrMUEvKte m23QtidcyCfq37xUqaTk3ILi2qJ9P/oWO7bcrP6aFrFItkTZsQHyo899OaWglZ56qAxe hJOWwaxIY0GryKMlhLZcq34t1GVCsPovIYAaJvDd9eUD/hsvXQrsi4LYpZclGGXaviQv xAuA== X-Gm-Message-State: AFeK/H2jeihmy88Pvd5/34jnMhhyajMZdOs+tMQ203qYVwvXquowzopZLgVdf5/WRsz3uA== X-Received: by 10.99.43.139 with SMTP id r133mr42488024pgr.114.1490169748785; Wed, 22 Mar 2017 01:02:28 -0700 (PDT) From: Prerna Saxena To: libvirt-list@redhat.com Date: Wed, 22 Mar 2017 01:02:19 -0700 Message-Id: <1490169739-17852-4-git-send-email-saxenap.ltc@gmail.com> In-Reply-To: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> References: <1490169739-17852-1-git-send-email-saxenap.ltc@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 22 Mar 2017 08:02:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 22 Mar 2017 08:02:30 +0000 (UTC) for IP:'74.125.83.67' DOMAIN:'mail-pg0-f67.google.com' HELO:'mail-pg0-f67.google.com' FROM:'saxenap.ltc@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.07 * (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 74.125.83.67 mail-pg0-f67.google.com 74.125.83.67 mail-pg0-f67.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/3] Debug: Report VM errors more concisely. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 22 Mar 2017 08:02:48 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Current logs: error : qemuProcessFindDomainDiskByAlias:411 : internal error: no disk foun= d with alias ide0-0-0 There is no way to find which VM was seeing this error. Makes debugging very hard, and the message itself is no good. Signed-off-by: Prerna Saxena --- src/qemu/qemu_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index ec0e36d..9f5bc3a 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -366,8 +366,8 @@ qemuProcessFindDomainDiskByAlias(virDomainObjPtr vm, } =20 virReportError(VIR_ERR_INTERNAL_ERROR, - _("no disk found with alias %s"), - alias); + _("VM %s: no disk found with alias %s"), + vm->def->name, alias); return NULL; } =20 --=20 1.8.1.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list