From patchwork Mon Apr 5 15:34:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 1462463 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=jAqCRTw3; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FDZVM6N0Kz9sWD for ; Tue, 6 Apr 2021 01:35:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id EC0E641E47; Mon, 5 Apr 2021 15:35:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f9VoCMlisxfh; Mon, 5 Apr 2021 15:35:21 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTP id 1C78541C79; Mon, 5 Apr 2021 15:35:20 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DF123C000B; Mon, 5 Apr 2021 15:35:19 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id A60DAC000A for ; Mon, 5 Apr 2021 15:34:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A1C7D4025B for ; Mon, 5 Apr 2021 15:34:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gw2-yIGrv4xY for ; Mon, 5 Apr 2021 15:34:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 91E4940258 for ; Mon, 5 Apr 2021 15:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617636863; h=from:from: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; bh=QxthCzwWM4CVKgPHGgr3xYZ4LzCGV/LfO+cspSEnnNE=; b=jAqCRTw3Gl4JPoX5p+iU2+Sderjce5Aai/ynad5k/gDTyqTL4bU7mzLxgs/+UoyQYNeEWJ 3J3vm+LQu53AIng2R2YI4tK+wBOZXxcAQsH5LUipoTSbZTI+gUpTNdc3m4Pf4/c8MtGCVC V25v0V6CBPtdSwjSdTNOHYLTNVU3464= 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-456-fLCFYvBOOvCOSYvFaOgL6A-1; Mon, 05 Apr 2021 11:34:22 -0400 X-MC-Unique: fLCFYvBOOvCOSYvFaOgL6A-1 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 3A93C1009E38 for ; Mon, 5 Apr 2021 15:34:21 +0000 (UTC) Received: from [10.10.110.26] (unknown [10.10.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE0CB60CCF for ; Mon, 5 Apr 2021 15:34:20 +0000 (UTC) Message-ID: <25a1d68328ec8d87af4758913f6a81d3e191f907.camel@redhat.com> From: Dan Williams To: ovs-dev@openvswitch.org Date: Mon, 05 Apr 2021 10:34:19 -0500 User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dcbw@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Mailman-Approved-At: Mon, 05 Apr 2021 15:35:18 +0000 Subject: [ovs-dev] raft: print local server ID when opening RAFT database X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Dan Williams --- ovsdb/raft.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovsdb/raft.c b/ovsdb/raft.c index d2ff643b27379..7f3ee733dbcc0 100644 --- a/ovsdb/raft.c +++ b/ovsdb/raft.c @@ -1026,6 +1026,8 @@ raft_open(struct ovsdb_log *log, struct raft **raftp) raft_reset_ping_timer(raft); raft_reset_election_timer(raft); + VLOG_INFO("local server ID is "SID_FMT, SID_ARGS(&raft->sid)); + *raftp = raft; hmap_insert(&all_rafts, &raft->hmap_node, hash_string(raft->name, 0)); return NULL;