From patchwork Sat Dec 3 07:38:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guoshuai Li X-Patchwork-Id: 702264 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tW2vp5JHKz9t1B for ; Sat, 3 Dec 2016 18:39:02 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 189E2B73; Sat, 3 Dec 2016 07:38:58 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 0122BB68 for ; Sat, 3 Dec 2016 07:38:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2203-239.mail.aliyun.com (smtp2203-239.mail.aliyun.com [121.197.203.239]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 6D09FAA for ; Sat, 3 Dec 2016 07:38:52 +0000 (UTC) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1689124|-1; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03292; MF=ligs@dtdream.com; NM=1; PH=DS; RN=2; RT=2; SR=0; TI=SMTPD_---.7Fewl4Y_1480750702; Received: from localhost.localdomain(mailfrom:ligs@dtdream.com ip:111.198.29.132) by smtp.aliyun-inc.com(10.147.42.22); Sat, 03 Dec 2016 15:38:23 +0800 From: Guoshuai Li To: ovs-dev@openvswitch.org Date: Sat, 3 Dec 2016 15:38:12 +0800 Message-Id: <20161203073812.21996-1-ligs@dtdream.com> X-Mailer: git-send-email 2.10.1.windows.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Guoshuai Li Subject: [ovs-dev] [PATCH V2] Fix ovndb_servers master and VirtualIP are not on the same node. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org PCS man page says role=Stopped/Started/Master/Slave. A role can be master or slave (if no role is specified, it defaults to 'started'). Command line "$pcs constraint colocation add ovndb_servers-master with master VirtualIP" means that the Started role node of ovsdb follows the master node of VirtualIP. But we actually want the ovsdb master node to follow the VirtualIP's Started node. --- IntegrationGuide.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntegrationGuide.rst b/IntegrationGuide.rst index 8c3cca7..1a8e82c 100644 --- a/IntegrationGuide.rst +++ b/IntegrationGuide.rst @@ -259,5 +259,5 @@ with the active server. pcs constraint order VirtualIP then ovndb_servers-master - pcs constraint colocation add ovndb_servers-master with master VirtualIP \ + pcs constraint colocation add master ovndb_servers-master with VirtualIP \ score=INFINITY