blob: 901b81d74df37b24bc750d21acf7fe1fee7821ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
|
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<ref name="element-crm-resource"/>
</start>
<define name="element-crm-resource">
<choice>
<ref name="agents-list" />
<ref name="alternatives-list" />
<ref name="constraints-list" />
<externalRef href="generic-list-2.4.rng"/>
<element name="metadata"> <text/> </element>
<ref name="locate-list" />
<ref name="operations-list" />
<ref name="providers-list" />
<ref name="reasons-list" />
<ref name="resource-check" />
<ref name="resource-config" />
<ref name="resources-list" />
<ref name="resource-agent-action" />
</choice>
</define>
<define name="agents-list">
<element name="agents">
<attribute name="standard"> <text/> </attribute>
<optional>
<attribute name="provider"> <text/> </attribute>
</optional>
<zeroOrMore>
<element name="agent"> <text/> </element>
</zeroOrMore>
</element>
</define>
<define name="alternatives-list">
<element name="providers">
<attribute name="for"> <text/> </attribute>
<zeroOrMore>
<element name="provider"> <text/> </element>
</zeroOrMore>
</element>
</define>
<define name="constraints-list">
<element name="constraints">
<interleave>
<zeroOrMore>
<ref name="rsc-location" />
</zeroOrMore>
<zeroOrMore>
<ref name="rsc-colocation" />
</zeroOrMore>
</interleave>
</element>
</define>
<define name="locate-list">
<element name="nodes">
<attribute name="resource"> <text/> </attribute>
<zeroOrMore>
<element name="node">
<optional>
<attribute name="state"><value>promoted</value></attribute>
</optional>
<text/>
</element>
</zeroOrMore>
</element>
</define>
<define name="rsc-location">
<element name="rsc_location">
<attribute name="node"> <text/> </attribute>
<attribute name="rsc"> <text/> </attribute>
<attribute name="id"> <text/> </attribute>
<externalRef href="../score.rng"/>
</element>
</define>
<define name="operations-list">
<element name="operations">
<oneOrMore>
<ref name="element-operation-list" />
</oneOrMore>
</element>
</define>
<define name="providers-list">
<element name="providers">
<attribute name="standard"> <value>ocf</value> </attribute>
<optional>
<attribute name="agent"> <text/> </attribute>
</optional>
<zeroOrMore>
<element name="provider"> <text/> </element>
</zeroOrMore>
</element>
</define>
<define name="reasons-list">
<element name="reason">
<!-- set only when resource and node are both specified -->
<optional>
<attribute name="running_on"> <text/> </attribute>
</optional>
<!-- set only when only a resource is specified -->
<optional>
<attribute name="running"> <data type="boolean"/> </attribute>
</optional>
<choice>
<ref name="reasons-with-no-resource"/>
<ref name="resource-check"/>
</choice>
</element>
</define>
<define name="reasons-with-no-resource">
<element name="resources">
<zeroOrMore>
<element name="resource">
<attribute name="id"> <text/> </attribute>
<attribute name="running"> <data type="boolean"/> </attribute>
<optional>
<attribute name="host"> <text/> </attribute>
</optional>
<ref name="resource-check"/>
</element>
</zeroOrMore>
</element>
</define>
<define name="resource-config">
<element name="resource_config">
<externalRef href="resources-2.28.rng" />
<element name="xml"> <text/> </element>
</element>
</define>
<define name="resource-check">
<element name="check">
<attribute name="id"> <text/> </attribute>
<optional>
<choice>
<attribute name="remain_stopped"><value>true</value></attribute>
<attribute name="promotable"><value>false</value></attribute>
</choice>
</optional>
<optional>
<attribute name="unmanaged"><value>true</value></attribute>
</optional>
<optional>
<attribute name="locked-to"> <text/> </attribute>
</optional>
<optional>
<attribute name="unhealthy"><value>true</value></attribute>
</optional>
</element>
</define>
<define name="resources-list">
<element name="resources">
<zeroOrMore>
<externalRef href="resources-2.28.rng" />
</zeroOrMore>
</element>
</define>
<define name="rsc-colocation">
<element name="rsc_colocation">
<attribute name="id"> <text/> </attribute>
<attribute name="rsc"> <text/> </attribute>
<attribute name="with-rsc"> <text/> </attribute>
<externalRef href="../score.rng"/>
<optional>
<attribute name="node-attribute"> <text/> </attribute>
</optional>
<optional>
<attribute name="rsc-role">
<ref name="attribute-roles"/>
</attribute>
</optional>
<optional>
<attribute name="with-rsc-role">
<ref name="attribute-roles"/>
</attribute>
</optional>
</element>
</define>
<define name="element-operation-list">
<element name="operation">
<optional>
<group>
<attribute name="rsc"> <text/> </attribute>
<attribute name="agent"> <text/> </attribute>
</group>
</optional>
<attribute name="op"> <text/> </attribute>
<attribute name="node"> <text/> </attribute>
<attribute name="call"> <data type="integer" /> </attribute>
<attribute name="rc"> <data type="nonNegativeInteger" /> </attribute>
<optional>
<attribute name="last-rc-change"> <text/> </attribute>
<attribute name="exec-time"> <data type="nonNegativeInteger" /> </attribute>
</optional>
<attribute name="status"> <text/> </attribute>
</element>
</define>
<define name="resource-agent-action">
<element name="resource-agent-action">
<attribute name="action"> <text/> </attribute>
<optional>
<attribute name="rsc"> <text/> </attribute>
</optional>
<attribute name="class"> <text/> </attribute>
<attribute name="type"> <text/> </attribute>
<optional>
<attribute name="provider"> <text/> </attribute>
</optional>
<optional>
<ref name="overrides-list"/>
</optional>
<ref name="agent-status"/>
<optional>
<element name="command">
<choice>
<text />
<externalRef href="subprocess-output-2.23.rng"/>
</choice>
</element>
</optional>
</element>
</define>
<define name="overrides-list">
<element name="overrides">
<zeroOrMore>
<element name="override">
<optional>
<attribute name="rsc"> <text/> </attribute>
</optional>
<attribute name="name"> <text/> </attribute>
<attribute name="value"> <text/> </attribute>
</element>
</zeroOrMore>
</element>
</define>
<define name="agent-status">
<element name="agent-status">
<attribute name="code"> <data type="integer" /> </attribute>
<optional>
<attribute name="message"> <text/> </attribute>
</optional>
<optional>
<attribute name="execution_code"> <data type="integer" /> </attribute>
</optional>
<optional>
<attribute name="execution_message"> <text/> </attribute>
</optional>
<optional>
<attribute name="reason"> <text/> </attribute>
</optional>
</element>
</define>
<define name="attribute-roles">
<choice>
<value>Stopped</value>
<value>Started</value>
<value>Promoted</value>
<value>Unpromoted</value>
<!-- These synonyms for Promoted/Unpromoted are allowed for
backward compatibility with output from older Pacemaker
versions that used them -->
<value>Master</value>
<value>Slave</value>
</choice>
</define>
</grammar>
|