From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 8E0DF4205D7 for ; Mon, 29 Jul 2024 15:34:33 +0200 (CEST) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ef2fccca2cso43117981fa.1 for ; Mon, 29 Jul 2024 06:34:33 -0700 (PDT) From: Su Yue To: drbd-dev@lists.linbit.com Subject: [RFC PATCH 3/3] drbd.ocf: update for OCF 1.1 Date: Mon, 29 Jul 2024 21:34:10 +0800 Message-ID: <20240729133410.8332-4-glass.su@suse.com> In-Reply-To: <20240729133410.8332-1-glass.su@suse.com> References: <20240729133410.8332-1-glass.su@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: lars.ellenberg@linbit.com List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , According to [1], the commit 1. bumps drbd ocf version to 1.5 2. updates the element to 1.1 for declare support OCF 1.1. 3. uses unique-group attribute but keeps deprecated unique attribute. 4. advertises new role names 'Unpromoted' and 'Unpromoted' instead of 'Master' and 'Slave'. Because of change[4], the drbd ocf RA won't be able to support old names so we need to bump version of the RA. Links: https://projects.clusterlabs.org/w/development/update_resource_agent_for_ocf_1.1/ Signed-off-by: Su Yue --- scripts/drbd.ocf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/drbd.ocf b/scripts/drbd.ocf index bbe25f38edda..5b213640ec38 100755 --- a/scripts/drbd.ocf +++ b/scripts/drbd.ocf @@ -233,13 +233,13 @@ meta_data() { - + -1.0 +1.1 -This resource agent manages a DRBD resource as a master/slave resource. +This resource agent manages a DRBD resource as a promotable resource. DRBD is a shared-nothing replicated storage device. NOTE: @@ -253,10 +253,10 @@ See the DRBD User's Guide for more information. https://docs.linbit.com/ -Manages a DRBD device as a Master/Slave resource +Manages a DRBD device as a promotable resource - + The name of the drbd resource from the drbd.conf file. @@ -483,8 +483,8 @@ to be generated after the failover of a "healthy" DRBD. - - + + @@ -974,7 +974,7 @@ drbd_monitor() { fi case $status in - (0) : "OCF_SUCCESS aka 'running/slave'" ;; + (0) : "OCF_SUCCESS aka 'running/unpromotable'" ;; (1) : "OCF_ERR_GENERIC" ;; (2) : "OCF_ERR_ARGS" ;; (3) : "OCF_ERR_UNIMPLEMENTED" ;; -- 2.45.2