From patchwork Sun Jun 24 19:18:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 139780 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3198751lji; Sun, 24 Jun 2018 12:20:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLfiGfx3Nxow7dSVix7CHyJFOn0ZjQxteD4N0TtsVbSgFGhZvYnDu3dxe5jVsmD5kxpMqXa X-Received: by 2002:a17:902:2809:: with SMTP id e9-v6mr9527085plb.89.1529868048821; Sun, 24 Jun 2018 12:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529868048; cv=none; d=google.com; s=arc-20160816; b=xl/SKrpn+uLhosbvC6bVbelYuu/0XUhjF2Yz9OX3V038anaS1dRJtq30O0n/0Woiyr NbmrehMQB97uEKLzp+Nn+9Bt1aXOVmIRQ5prEQ6E18bG5UIo4woi78U94V4O5Bd4Rn8u XSuvVzk/BhvZa1yahVvVcrZmpdjs7kI/mIygaWiqgGY+bZxrkSV8cd+glPCQUXGnpskO cPRWFpO+u0+0VB8S6wdHIxm+x2UAgCMzRYx7UYonMfAtlAzoVmdCAsmGJ3FYHmTOdfAA Qf9cqIclYwaw/aCN8CrwE61DOfAoBV63O5WGm+mN+dTwl+7SoGduhhCF8PkjsFtyIzIa cOxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=HPD+aBvBtf7WrApWXixYF2D/o928P1MZEEwxzvzQy8o=; b=x+M+fyJ2LyXuqziCVeC236ZqLy3VXwWZEjz5KRYE7qzRXJd5afqisoNVgU0HzsIAH6 l+guI8rW0ahZJapwi4VJPmWMO8AdMErZ1mRiIYbRqHASHUFuXYbwIY1w6+YdZwcIamKN zuRuXd1OzH9+r9KCi16SC9Kbr3aSLTCltqEqdSJdfo/pRjZk+Osq/hg82JXe5cDYVXsb G6y5/nlDzlctmtplVVbPFYV2oLQgeivp1w2brLS1ZQ5RUNQ8DjzRbA5CJDQFwaLrBXhR xPDCTY6WsTBW65dxa08paiZu5+hIbpccGWBKY1W66M/8Gvf5hpaRqLmv24HFG+yKWidk iLlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="bWSyfL/X"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a7-v6si513387plz.510.2018.06.24.12.20.48; Sun, 24 Jun 2018 12:20:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="bWSyfL/X"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DD42D75185; Sun, 24 Jun 2018 19:20:02 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by mail.openembedded.org (Postfix) with ESMTP id 8D69274EB2 for ; Sun, 24 Jun 2018 19:19:37 +0000 (UTC) Received: by mail-pf0-f180.google.com with SMTP id u16-v6so1657586pfh.3 for ; Sun, 24 Jun 2018 12:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i2SBWAFNc2JMJRRX0m4naYebXnX14Cf8i65weh/cZKs=; b=bWSyfL/XNruWD8B/UJ49nQJQcih9yCFuUB8u7L8LZgjF99B8gD2D854QTK8M6hrbE4 kTiX1GkI9jsc2bvITjOPr2MljI/U6OihCCGkBRtP7bUQdG04Czf0lnSBsz7ZCvPSKMfS KWc3VtcaLW5n8ddJhsjgpKn0sGMqhIBpNFIY8pcrADz6VpoP7niLr/apjpU8c/TETI1O GTrrYT0U2x+UV1kM44NMGaysILBDAcn7Aw6kVWaB4oMzB/eMTssWS9JwkjjzMgf98CZg hUSVAKs4E9pT8+Vb3cKuVuoGyULkYhKzd+sdRfT+kx8nOiJVdLl38TND6Cum8R31vAdd U5yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=i2SBWAFNc2JMJRRX0m4naYebXnX14Cf8i65weh/cZKs=; b=IvzpPGJ5uK9UvRmT5sT+AY9lhaU6rwNCfgsiG1/1h6kVz8tZRqROj2Ofryjumn5bxl mWAGkODgo6+Cq4j7ZHCImt6XQQFGJbGz0xwDdzGeBBA5yIrWSFCm4dPfHbc2uT+5gqnp 2ydDefps16ad4DSJD1iwc3qGcZUUS7hyhOjKUKrrVzX0eIyOViqj37mf6o7GfI5AK+my FdLxH9+ArZ/aEPRq04f30yphyCKSfJf5j3ELwz6tGWNdxDQX+ogOlXFATic/kg/UCt/H NSlfLJMa9eusPUIIlgo62TkSiS436rf9kp6fAABr1THd+yg6PftTpI9CTABW2zYAN8Hk 7VJQ== X-Gm-Message-State: APt69E0J7/MgkoHsdaDI+WytTZYFQQdbf2r4H80A8QJCGBo1iUdSkUBx vVv0U21A3+l9IFc6gp5Tc3gA1Q== X-Received: by 2002:a65:52c3:: with SMTP id z3-v6mr8382630pgp.69.1529867978442; Sun, 24 Jun 2018 12:19:38 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::91a0]) by smtp.gmail.com with ESMTPSA id m11-v6sm36700461pfj.25.2018.06.24.12.19.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 12:19:37 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 24 Jun 2018 12:18:34 -0700 Message-Id: <20180624191845.31082-9-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624191845.31082-1-raj.khem@gmail.com> References: <20180624191845.31082-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 09/20] corosync: add corosync.conf.example X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Mingli Yu * Add corosync.conf.example as the template for /etc/corosync/corosync.conf to make the cluster works as the previous default config doesn't work as below output: root@host1:/# crm status Stack: unknown Current DC: NONE Last updated: Mon Dec 25 05:30:59 2017 Last change: Mon Dec 25 05:30:32 2017 by root via cibadmin on host1 0 nodes configured 1 resource configured Full list of resources: WebSite (ocf::heartbeat:apache): Stopped Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- .../corosync/corosync/corosync.conf | 58 +++++++++++++++++++ .../corosync/corosync_2.4.4.bb | 5 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-extended/corosync/corosync/corosync.conf -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-extended/corosync/corosync/corosync.conf b/meta-networking/recipes-extended/corosync/corosync/corosync.conf new file mode 100644 index 0000000000..6aef9de950 --- /dev/null +++ b/meta-networking/recipes-extended/corosync/corosync/corosync.conf @@ -0,0 +1,58 @@ +# Starting point for cluster with pacemaker/openais +compatibility: none + +corosync { + user: root + group: root +} + +aisexec { + with Pacemaker + user: root + group: root +} + +service { + name: pacemaker + ver: 1 +} + +totem { + version: 2 + secauth: off + threads: 0 + interface { + ringnumber: 0 + # Cluster network address + bindnetaddr: 192.168.10.0 + # Should be fine in most cases, don't forget to allow + # packets for this address/port in netfilter if there + # is restrictive policy set for cluster network + mcastaddr: 226.94.1.1 + mcastport: 5405 + } +} + +logging { + fileline: off + to_stderr: no + to_logfile: yes + to_syslog: yes + logfile: /var/log/cluster/corosync.log + debug: off + timestamp: on + logger_subsys { + subsys: AMF + debug: off + } +} + +amf { + mode: disabled +} + +quorum { + # Quorum for the Pacemaker Cluster Resource Manager + provider: corosync_votequorum + expected_votes: 1 +} diff --git a/meta-networking/recipes-extended/corosync/corosync_2.4.4.bb b/meta-networking/recipes-extended/corosync/corosync_2.4.4.bb index b760c117cf..5ebec08b99 100644 --- a/meta-networking/recipes-extended/corosync/corosync_2.4.4.bb +++ b/meta-networking/recipes-extended/corosync/corosync_2.4.4.bb @@ -7,7 +7,9 @@ SECTION = "base" inherit autotools pkgconfig systemd useradd -SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz" +SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \ + file://corosync.conf \ + " SRC_URI[md5sum] = "69db29ff4bc035936946be44fc8be5cd" SRC_URI[sha256sum] = "9bd4707bb271df16f8d543ec782eb4c35ec0330b7be696b797da4bd8f058a25d" @@ -47,6 +49,7 @@ do_configure_prepend() { } do_install_append() { + install -D -m 0644 ${WORKDIR}/corosync.conf ${D}/${sysconfdir}/corosync/corosync.conf.example install -d ${D}${sysconfdir}/sysconfig/ install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd