@@ -28,10 +28,10 @@ Integration Guide for Centralized Control
28
28
This document describes how to integrate Open vSwitch onto a new platform to
29
29
expose the state of the switch and attached devices for centralized control.
30
30
(If you are looking to port the switching components of Open vSwitch to a new
31
- platform, please see the PORTING document. ) The focus of this guide is on
32
- hypervisors, but many of the interfaces are useful for hardware switches, as
33
- well. The XenServer integration is the most mature implementation, so most of
34
- the examples are drawn from it.
31
+ platform, refer to :doc: ` porting ` ) The focus of this guide is on hypervisors,
32
+ but many of the interfaces are useful for hardware switches, as well. The
33
+ XenServer integration is the most mature implementation, so most of the
34
+ examples are drawn from it.
35
35
36
36
The externally visible interface to this integration is platform-agnostic. We
37
37
encourage anyone who integrates Open vSwitch to use the same interface, because
@@ -204,11 +204,11 @@ contents. At all times, the data can be transacted only from the active server.
204
204
When the active server dies for some reason, entire OVN operations will be
205
205
stalled.
206
206
207
- `Pacemaker <http://clusterlabs.org/pacemaker.html >`_ is a cluster resource
207
+ `Pacemaker <http://clusterlabs.org/pacemaker.html >`__ is a cluster resource
208
208
manager which can manage a defined set of resource across a set of clustered
209
209
nodes. Pacemaker manages the resource with the help of the resource agents.
210
- One among the resource agent is
211
- ` OCF <http://www.linux-ha.org/wiki/OCF_Resource_Agents >`_
210
+ One among the resource agent is ` OCF
211
+ <http://www.linux-ha.org/wiki/OCF_Resource_Agents> `__
212
212
213
213
OCF is nothing but a shell script which accepts a set of actions and returns an
214
214
appropriate status code.
@@ -217,48 +217,41 @@ With the help of the OCF resource agent ovn/utilities/ovndb-servers.ocf, one
217
217
can defined a resource for the pacemaker such that pacemaker will always
218
218
maintain one running active server at any time.
219
219
220
- After creating a pacemaker cluster, use the following commands to create
221
- one active and multiple backup servers for OVN databases.
220
+ After creating a pacemaker cluster, use the following commands to create one
221
+ active and multiple backup servers for OVN databases::
222
222
223
- ::
224
-
225
- pcs resource create ovndb_servers ocf:ovn:ovndb-servers \
223
+ $ pcs resource create ovndb_servers ocf:ovn:ovndb-servers \
226
224
master_ip=x.x.x.x \
227
225
ovn_ctl=<path of the ovn-ctl script> \
228
226
op monitor interval="10s" \
229
227
op monitor role=Master interval="15s"
230
-
231
- pcs resource master ovndb_servers-master ovndb_servers \
228
+ $ pcs resource master ovndb_servers-master ovndb_servers \
232
229
meta notify="true"
233
230
234
- The `master_ip ` and `ovn_ctl ` are the parameters that will be used by the
235
- OCF script. `ovn_ctl ` is optional, if not given, it assumes a default value of
231
+ The `master_ip ` and `ovn_ctl ` are the parameters that will be used by the OCF
232
+ script. `ovn_ctl ` is optional, if not given, it assumes a default value of
236
233
/usr/share/openvswitch/scripts/ovn-ctl. `master_ip ` is the IP address on which
237
234
the active database server is expected to be listening.
238
235
239
- Whenever the active server dies, pacemaker is responsible to promote one of
240
- the backup servers to be active. Both ovn-controller and ovn-northd needs the
236
+ Whenever the active server dies, pacemaker is responsible to promote one of the
237
+ backup servers to be active. Both ovn-controller and ovn-northd needs the
241
238
ip-address at which the active server is listening. With pacemaker changing the
242
239
node at which the active server is run, it is not efficient to instruct all the
243
240
ovn-controllers and the ovn-northd to listen to the latest active server's
244
241
ip-address.
245
242
246
243
This problem can be solved by using a native ocf resource agent
247
- `ocf:heartbeat:IPaddr2 `. The IPAddr2 resource agent is just a resource with an
248
- ip-address. When we colocate this resource with the active server, pacemaker
244
+ `` ocf:heartbeat:IPaddr2 `` . The IPAddr2 resource agent is just a resource with
245
+ an ip-address. When we colocate this resource with the active server, pacemaker
249
246
will enable the active server to be connected with a single ip-address all the
250
247
time. This is the ip-address that needs to be given as the parameter while
251
248
creating the `ovndb_servers ` resource.
252
249
253
250
Use the following command to create the IPAddr2 resource and colocate it
254
- with the active server.
251
+ with the active server::
255
252
256
- ::
257
-
258
- pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=x.x.x.x \
253
+ $ pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=x.x.x.x \
259
254
op monitor interval=30s
260
-
261
- pcs constraint order VirtualIP then ovndb_servers-master
262
-
263
- pcs constraint colocation add master ovndb_servers-master with VirtualIP \
255
+ $ pcs constraint order VirtualIP then ovndb_servers-master
256
+ $ pcs constraint colocation add master ovndb_servers-master with VirtualIP \
264
257
score=INFINITY
0 commit comments