pacemaker 2.1.6-6fdc9deea29
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pe_types.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2023 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef PCMK__CRM_PENGINE_PE_TYPES__H
11# define PCMK__CRM_PENGINE_PE_TYPES__H
12
13
14# include <stdbool.h> // bool
15# include <sys/types.h> // time_t
16# include <libxml/tree.h> // xmlNode
17# include <glib.h> // gboolean, guint, GList, GHashTable
18# include <crm/common/iso8601.h>
19# include <crm/pengine/common.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31typedef struct pe_node_s pe_node_t;
32typedef struct pe_action_s pe_action_t;
35
43
46 pe_resource_t *(*find_rsc) (pe_resource_t *parent, const char *search,
47 const pe_node_t *node, int flags);
48 /* parameter result must be free'd */
49 char *(*parameter) (pe_resource_t*, pe_node_t*, gboolean, const char*,
52 void (*print) (pe_resource_t*, const char*, long, void*);
53 gboolean (*active) (pe_resource_t*, gboolean);
54 enum rsc_role_e (*state) (const pe_resource_t*, gboolean);
55 pe_node_t *(*location) (const pe_resource_t*, GList**, int);
56 void (*free) (pe_resource_t*);
57 void (*count) (pe_resource_t*);
58 gboolean (*is_filtered) (const pe_resource_t*, GList *, gboolean);
59
73 pe_node_t *(*active_node)(const pe_resource_t *rsc, unsigned int *count_all,
74 unsigned int *count_clean);
76
78
86
92
98
108
109// @TODO Make these an enum
110
111# define pe_flag_have_quorum 0x00000001ULL
112# define pe_flag_symmetric_cluster 0x00000002ULL
113# define pe_flag_maintenance_mode 0x00000008ULL
114
115# define pe_flag_stonith_enabled 0x00000010ULL
116# define pe_flag_have_stonith_resource 0x00000020ULL
117# define pe_flag_enable_unfencing 0x00000040ULL
118# define pe_flag_concurrent_fencing 0x00000080ULL
119
120# define pe_flag_stop_rsc_orphans 0x00000100ULL
121# define pe_flag_stop_action_orphans 0x00000200ULL
122# define pe_flag_stop_everything 0x00000400ULL
123
124# define pe_flag_start_failure_fatal 0x00001000ULL
125
127# define pe_flag_remove_after_stop 0x00002000ULL
128
129# define pe_flag_startup_fencing 0x00004000ULL
130# define pe_flag_shutdown_lock 0x00008000ULL
131
132# define pe_flag_startup_probes 0x00010000ULL
133# define pe_flag_have_status 0x00020000ULL
134# define pe_flag_have_remote_nodes 0x00040000ULL
135
136# define pe_flag_quick_location 0x00100000ULL
137# define pe_flag_sanitized 0x00200000ULL
138
140# define pe_flag_stdout 0x00400000ULL
141
143# define pe_flag_no_counts 0x00800000ULL
144
148# define pe_flag_no_compat 0x01000000ULL
149
150# define pe_flag_show_scores 0x02000000ULL
151# define pe_flag_show_utilization 0x04000000ULL
152
157# define pe_flag_check_config 0x08000000ULL
158
160 xmlNode *input;
162
163 /* options extracted from the input */
164 char *dc_uuid;
166 const char *stonith_action;
168
169 unsigned long long flags;
170
173
174 GHashTable *config_hash;
175 GHashTable *tickets;
176
177 // Actions for which there can be only one (e.g. fence nodeX)
178 GHashTable *singletons;
179
180 GList *nodes;
181 GList *resources;
186
187 GList *actions;
188 xmlNode *failed;
189 xmlNode *op_defaults;
190 xmlNode *rsc_defaults;
191
192 /* stats */
197
198 /* final output */
199 xmlNode *graph;
200
201 GHashTable *template_rsc_sets;
202 const char *localhost;
203 GHashTable *tags;
204
207
208 GList *param_check; // History entries that need to be checked
209 GList *stop_needed; // Containers that need stop actions
210 time_t recheck_by; // Hint to controller to re-run scheduler by this time
211 int ninstances; // Total number of resource instances
212 guint shutdown_lock;// How long (seconds) to lock resources to shutdown node
213 int priority_fencing_delay; // Priority fencing delay
214
215 void *priv;
216};
217
219 /* Clear fail count if parameters changed for un-expired start or monitor
220 * last_failure.
221 */
223
224 /* Clear fail count if parameters changed for start, monitor, promote, or
225 * migrate_from actions for active resources.
226 */
228};
229
231 const char *id;
232 const char *uname;
234
235 /* @TODO convert these flags into a bitfield */
236 gboolean online;
237 gboolean standby;
239 gboolean pending;
240 gboolean unclean;
241 gboolean unseen;
242 gboolean shutdown;
243 gboolean expected_up;
244 gboolean is_dc;
245 gboolean maintenance;
249 gboolean remote_maintenance; /* what the remote-rsc is thinking */
250 gboolean unpacked;
251
254 GList *running_rsc; /* pe_resource_t* */
255 GList *allocated_rsc; /* pe_resource_t* */
256
257 GHashTable *attrs; /* char* => char* */
258 GHashTable *utilization;
259 GHashTable *digest_cache;
260 int priority; // calculated based on the priority of resources running on the node
262};
263
271
272# define pe_rsc_orphan 0x00000001ULL
273# define pe_rsc_managed 0x00000002ULL
274# define pe_rsc_block 0x00000004ULL
275# define pe_rsc_orphan_container_filler 0x00000008ULL
276
277# define pe_rsc_notify 0x00000010ULL
278# define pe_rsc_unique 0x00000020ULL
279# define pe_rsc_fence_device 0x00000040ULL
280# define pe_rsc_promotable 0x00000080ULL
281
282# define pe_rsc_provisional 0x00000100ULL
283# define pe_rsc_allocating 0x00000200ULL
284# define pe_rsc_merging 0x00000400ULL
285# define pe_rsc_restarting 0x00000800ULL
286
287# define pe_rsc_stop 0x00001000ULL
288# define pe_rsc_reload 0x00002000ULL
289# define pe_rsc_allow_remote_remotes 0x00004000ULL
290# define pe_rsc_critical 0x00008000ULL
291
292# define pe_rsc_failed 0x00010000ULL
293# define pe_rsc_detect_loop 0x00020000ULL
294# define pe_rsc_runnable 0x00040000ULL
295# define pe_rsc_start_pending 0x00080000ULL
296
298# define pe_rsc_starting 0x00100000ULL
299
301# define pe_rsc_stopping 0x00200000ULL
302
303# define pe_rsc_stop_unexpected 0x00400000ULL
304# define pe_rsc_allow_migrate 0x00800000ULL
305
306# define pe_rsc_failure_ignored 0x01000000ULL
307# define pe_rsc_replica_container 0x02000000ULL
308# define pe_rsc_maintenance 0x04000000ULL
309# define pe_rsc_is_container 0x08000000ULL
310
311# define pe_rsc_needs_quorum 0x10000000ULL
312# define pe_rsc_needs_fencing 0x20000000ULL
313# define pe_rsc_needs_unfencing 0x40000000ULL
314
315/* *INDENT-OFF* */
321
325
328#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
329 pe_action_clear = 0x00400,
330#endif
332
333 /* This action requires one or more of its dependencies to be runnable.
334 * We use this to clear the runnable flag before checking dependencies.
335 */
337
340 pe_action_dedup = 0x08000,
341
342 pe_action_dc = 0x10000,
343};
344/* *INDENT-ON* */
345
347 char *id;
349 xmlNode *xml;
350 xmlNode *orig_xml;
351 xmlNode *ops_xml;
352
355
360
362
364
372
373 unsigned long long flags;
374
375 // @TODO merge these into flags
378
379 /* Pay special attention to whether you want to use rsc_cons_lhs and
380 * rsc_cons directly, which include only colocations explicitly involving
381 * this resource, or call libpacemaker's pcmk__with_this_colocations() and
382 * pcmk__this_with_colocations() functions, which may return relevant
383 * colocations involving the resource's ancestors as well.
384 */
385
388 GList *rsc_cons_lhs; // List of pcmk__colocation_t*
389 GList *rsc_cons; // List of pcmk__colocation_t*
390 GList *rsc_location; // List of pe__location_t*
391 GList *actions; // List of pe_action_t*
392 GList *rsc_tickets; // List of rsc_ticket*
394
398 GList *running_on; /* pe_node_t* */
399 GHashTable *known_on; /* pe_node_t* */
400 GHashTable *allowed_nodes; /* pe_node_t* */
401
404
405 GHashTable *meta;
406 GHashTable *parameters;
407 GHashTable *utilization;
408
409 GList *children; /* pe_resource_t* */
410 GList *dangling_migrations; /* pe_node_t* */
411
413 GList *fillers;
414
415 // @COMPAT These should be made const at next API compatibility break
416 pe_node_t *pending_node; // Node on which pending_task is happening
417 pe_node_t *lock_node; // Resource is shutdown-locked to this node
418
419 time_t lock_time; // When shutdown lock started
420
421 /* Resource parameters may have node-attribute-based rules, which means the
422 * values can vary by node. This table is a cache of parameter name/value
423 * tables for each node (as needed). Use pe_rsc_params() to get the table
424 * for a given node.
425 */
426 GHashTable *parameter_cache; // Key = node name, value = parameters table
427};
428
430 int id;
432
435 xmlNode *op_entry;
436
437 char *task;
438 char *uuid;
440 char *reason;
441
446
447 GHashTable *meta;
448 GHashTable *extra;
449
450 /*
451 * These two varables are associated with the constraint logic
452 * that involves first having one or more actions runnable before
453 * then allowing this action to execute.
454 *
455 * These varables are used with features such as 'clone-min' which
456 * requires at minimum X number of cloned instances to be running
457 * before an order dependency can run. Another option that uses
458 * this is 'require-all=false' in ordering constrants. This option
459 * says "only require one instance of a resource to start before
460 * allowing dependencies to start" -- basically, require-all=false is
461 * the same as clone-min=1.
462 */
463
464 /* current number of known runnable actions in the before list. */
466 /* the number of "before" runnable actions required for this action
467 * to be considered runnable */
469
470 GList *actions_before; /* pe_action_wrapper_t* */
471 GList *actions_after; /* pe_action_wrapper_t* */
472
473 /* Some of the above fields could be moved to the details,
474 * except for API backward compatibility.
475 */
476 void *action_details; // varies by type of action
477};
478
479typedef struct pe_ticket_s {
480 char *id;
481 gboolean granted;
483 gboolean standby;
484 GHashTable *state;
486
487typedef struct pe_tag_s {
488 char *id;
489 GList *refs;
491
498
504
505/* *INDENT-OFF* */
507 pe_order_none = 0x0, /* deleted */
508 pe_order_optional = 0x1, /* pure ordering, nothing implied */
509 pe_order_apply_first_non_migratable = 0x2, /* Only apply this constraint's ordering if first is not migratable. */
510
511 pe_order_implies_first = 0x10, /* If 'then' is required, ensure 'first' is too */
512 pe_order_implies_then = 0x20, /* If 'first' is required, ensure 'then' is too */
513 pe_order_promoted_implies_first = 0x40, /* If 'then' is required and then's rsc is promoted, ensure 'first' becomes required too */
514
515 /* first requires then to be both runnable and migrate runnable. */
517
518 pe_order_runnable_left = 0x100, /* 'then' requires 'first' to be runnable */
519
520 pe_order_pseudo_left = 0x200, /* 'then' can only be pseudo if 'first' is runnable */
521 pe_order_implies_then_on_node = 0x400, /* If 'first' is required on 'nodeX',
522 * ensure instances of 'then' on 'nodeX' are too.
523 * Only really useful if 'then' is a clone and 'first' is not
524 */
525 pe_order_probe = 0x800, /* If 'first->rsc' is
526 * - running but about to stop, ignore the constraint
527 * - otherwise, behave as runnable_left
528 */
529
530 pe_order_restart = 0x1000, /* 'then' is runnable if 'first' is optional or runnable */
531 pe_order_stonith_stop = 0x2000, //<! \deprecated Will be removed in future release
532 pe_order_serialize_only = 0x4000, /* serialize */
533 pe_order_same_node = 0x8000, /* applies only if 'first' and 'then' are on same node */
534
535 pe_order_implies_first_printed = 0x10000, /* Like ..implies_first but only ensures 'first' is printed, not mandatory */
536 pe_order_implies_then_printed = 0x20000, /* Like ..implies_then but only ensures 'then' is printed, not mandatory */
537
538 pe_order_asymmetrical = 0x100000, /* Indicates asymmetrical one way ordering constraint. */
539 pe_order_load = 0x200000, /* Only relevant if... */
540 pe_order_one_or_more = 0x400000, /* 'then' is runnable only if one or more of its dependencies are too */
542
543 pe_order_preserve = 0x1000000, /* Hack for breaking user ordering constraints with container resources */
544 pe_order_then_cancels_first = 0x2000000, // if 'then' becomes required, 'first' becomes optional
545 pe_order_trace = 0x4000000, /* test marker */
546
547#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
548 // \deprecated Use pe_order_promoted_implies_first instead
550#endif
551};
552/* *INDENT-ON* */
553
559
560#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
562#endif
563
564#ifdef __cplusplus
565}
566#endif
567
568#endif // PCMK__CRM_PENGINE_PE_TYPES__H
const char * parent
Definition cib.c:25
uint64_t flags
Definition remote.c:3
rsc_start_requirement
Definition common.h:85
action_fail_response
Definition common.h:33
rsc_recovery_type
Definition common.h:78
rsc_role_e
Possible roles that a resource can be in.
Definition common.h:92
ISO_8601 Date handling.
struct crm_time_s crm_time_t
Definition iso8601.h:32
pe_quorum_policy
Definition pe_types.h:79
@ no_quorum_suicide
Definition pe_types.h:83
@ no_quorum_demote
Definition pe_types.h:84
@ no_quorum_freeze
Definition pe_types.h:80
@ no_quorum_ignore
Definition pe_types.h:82
@ no_quorum_stop
Definition pe_types.h:81
struct pe_tag_s pe_tag_t
pe_check_parameters
Definition pe_types.h:218
@ pe_check_active
Definition pe_types.h:227
@ pe_check_last_failure
Definition pe_types.h:222
pe_ordering
Definition pe_types.h:506
@ pe_order_implies_first_printed
Definition pe_types.h:535
@ pe_order_implies_first_master
Definition pe_types.h:549
@ pe_order_trace
Definition pe_types.h:545
@ pe_order_pseudo_left
Definition pe_types.h:520
@ pe_order_restart
Definition pe_types.h:530
@ pe_order_anti_colocation
Definition pe_types.h:541
@ pe_order_implies_then
Definition pe_types.h:512
@ pe_order_same_node
Definition pe_types.h:533
@ pe_order_one_or_more
Definition pe_types.h:540
@ pe_order_none
Definition pe_types.h:507
@ pe_order_then_cancels_first
Definition pe_types.h:544
@ pe_order_serialize_only
Definition pe_types.h:532
@ pe_order_implies_then_on_node
Definition pe_types.h:521
@ pe_order_stonith_stop
Definition pe_types.h:531
@ pe_order_asymmetrical
Definition pe_types.h:538
@ pe_order_implies_first_migratable
Definition pe_types.h:516
@ pe_order_preserve
Definition pe_types.h:543
@ pe_order_implies_then_printed
Definition pe_types.h:536
@ pe_order_optional
Definition pe_types.h:508
@ pe_order_implies_first
Definition pe_types.h:511
@ pe_order_runnable_left
Definition pe_types.h:518
@ pe_order_probe
Definition pe_types.h:525
@ pe_order_promoted_implies_first
Definition pe_types.h:513
@ pe_order_load
Definition pe_types.h:539
@ pe_order_apply_first_non_migratable
Definition pe_types.h:509
pe_link_state
Internal tracking for transition graph creation.
Definition pe_types.h:493
@ pe_link_not_dumped
Definition pe_types.h:494
@ pe_link_dumped
Internal tracking for transition graph creation.
Definition pe_types.h:495
@ pe_link_dup
Internal tracking for transition graph creation.
Definition pe_types.h:496
node_type
Definition pe_types.h:87
@ node_ping
Definition pe_types.h:88
@ node_remote
Definition pe_types.h:90
@ node_member
Definition pe_types.h:89
pe_discover_e
Definition pe_types.h:499
@ pe_discover_exclusive
Definition pe_types.h:502
@ pe_discover_always
Definition pe_types.h:500
@ pe_discover_never
Definition pe_types.h:501
pe_action_flags
Definition pe_types.h:316
@ pe_action_optional
Definition pe_types.h:319
@ pe_action_clear
Definition pe_types.h:329
@ pe_action_tracking
Definition pe_types.h:339
@ pe_action_processed
Definition pe_types.h:327
@ pe_action_runnable
Definition pe_types.h:318
@ pe_action_implied_by_stonith
Definition pe_types.h:323
@ pe_action_dumped
Definition pe_types.h:326
@ pe_action_dedup
Definition pe_types.h:340
@ pe_action_dangle
Definition pe_types.h:331
@ pe_action_pseudo
Definition pe_types.h:317
@ pe_action_have_node_attrs
Definition pe_types.h:322
@ pe_action_print_always
Definition pe_types.h:320
@ pe_action_reschedule
Definition pe_types.h:338
@ pe_action_requires_any
Definition pe_types.h:336
@ pe_action_dc
Internal state tracking when creating graph.
Definition pe_types.h:342
@ pe_action_migrate_runnable
Definition pe_types.h:324
pe_find
Determine behavior of pe_find_resource_with_flags()
Definition pe_types.h:100
@ pe_find_inactive
match resource not running anywhere
Definition pe_types.h:105
@ pe_find_any
match base name of any clone instance
Definition pe_types.h:106
@ pe_find_clone
match only clone instances
Definition pe_types.h:103
@ pe_find_renamed
match resource ID or LRM history ID
Definition pe_types.h:101
@ pe_find_current
match resource active on specified node
Definition pe_types.h:104
@ pe_find_anon
match base name of anonymous clone instances
Definition pe_types.h:102
pe_obj_types
Definition pe_types.h:36
@ pe_group
Definition pe_types.h:39
@ pe_container
Definition pe_types.h:41
@ pe_unknown
Definition pe_types.h:37
@ pe_native
Definition pe_types.h:38
@ pe_clone
Definition pe_types.h:40
struct pe_ticket_s pe_ticket_t
struct resource_object_functions_s resource_object_functions_t
struct pe_action_wrapper_s pe_action_wrapper_t
pe_restart
Definition pe_types.h:94
@ pe_restart_ignore
Definition pe_types.h:96
@ pe_restart_restart
Definition pe_types.h:95
Deprecated Pacemaker scheduler API.
char * reason
Definition pe_types.h:440
int runnable_before
Definition pe_types.h:465
pe_resource_t * rsc
Definition pe_types.h:433
char * uuid
Definition pe_types.h:438
char * task
Definition pe_types.h:437
pe_node_t * node
Definition pe_types.h:434
void * action_details
Definition pe_types.h:476
enum rsc_role_e fail_role
Definition pe_types.h:445
enum rsc_start_requirement needs
Definition pe_types.h:443
GList * actions_after
Definition pe_types.h:471
GHashTable * meta
Definition pe_types.h:447
enum action_fail_response on_fail
Definition pe_types.h:444
char * cancel_task
Definition pe_types.h:439
enum pe_action_flags flags
Definition pe_types.h:442
int required_runnable_before
Definition pe_types.h:468
xmlNode * op_entry
Definition pe_types.h:435
GHashTable * extra
Definition pe_types.h:448
GList * actions_before
Definition pe_types.h:470
enum pe_ordering type
Definition pe_types.h:555
enum pe_link_state state
Definition pe_types.h:556
pe_action_t * action
Definition pe_types.h:557
int weight
Definition pe_types.h:265
int rsc_discover_mode
Definition pe_types.h:269
gboolean fixed
Definition pe_types.h:266
int count
Definition pe_types.h:267
struct pe_node_shared_s * details
Definition pe_types.h:268
GHashTable * attrs
Definition pe_types.h:257
gboolean shutdown
Definition pe_types.h:242
GHashTable * digest_cache
cache of calculated resource digests
Definition pe_types.h:259
gboolean expected_up
Definition pe_types.h:243
const char * id
Definition pe_types.h:231
gboolean online
Definition pe_types.h:236
gboolean standby_onfail
Definition pe_types.h:238
const char * uname
Definition pe_types.h:232
pe_working_set_t * data_set
Cluster that this node is part of.
Definition pe_types.h:261
gboolean standby
Definition pe_types.h:237
GHashTable * utilization
Definition pe_types.h:258
gboolean unpacked
Definition pe_types.h:250
pe_resource_t * remote_rsc
Definition pe_types.h:253
gboolean remote_maintenance
Definition pe_types.h:249
GList * allocated_rsc
Definition pe_types.h:255
gboolean is_dc
Definition pe_types.h:244
gboolean unclean
Definition pe_types.h:240
gboolean remote_requires_reset
Definition pe_types.h:247
gboolean maintenance
Definition pe_types.h:245
gboolean rsc_discovery_enabled
Definition pe_types.h:246
enum node_type type
Definition pe_types.h:233
gboolean pending
Definition pe_types.h:239
gboolean remote_was_fenced
Definition pe_types.h:248
GList * running_rsc
Definition pe_types.h:254
gboolean unseen
Definition pe_types.h:241
GList * running_on
Definition pe_types.h:398
GList * actions
Definition pe_types.h:391
GList * rsc_location
Definition pe_types.h:390
int failure_timeout
Definition pe_types.h:368
enum pe_obj_types variant
Definition pe_types.h:356
GHashTable * meta
Definition pe_types.h:405
GList * rsc_cons
Definition pe_types.h:389
GList * rsc_cons_lhs
Definition pe_types.h:388
GList * children
Definition pe_types.h:409
int migration_threshold
Definition pe_types.h:369
gboolean exclusive_discover
Definition pe_types.h:377
enum pe_restart restart_type
Definition pe_types.h:363
GHashTable * known_on
Definition pe_types.h:399
pe_working_set_t * cluster
Definition pe_types.h:353
pe_resource_t * container
Definition pe_types.h:412
char * clone_name
Definition pe_types.h:348
GHashTable * parameters
Definition pe_types.h:406
gboolean is_remote_node
Definition pe_types.h:376
xmlNode * xml
Definition pe_types.h:349
GHashTable * utilization
Definition pe_types.h:407
GHashTable * allowed_nodes
Definition pe_types.h:400
GList * dangling_migrations
Definition pe_types.h:410
pe_node_t * pending_node
Definition pe_types.h:416
GHashTable * parameter_cache
Definition pe_types.h:426
pe_node_t * partial_migration_source
Definition pe_types.h:397
GList * rsc_tickets
Definition pe_types.h:392
pe_node_t * allocated_to
Definition pe_types.h:395
void * variant_opaque
Definition pe_types.h:357
unsigned long long flags
Definition pe_types.h:373
char * pending_task
Definition pe_types.h:371
guint remote_reconnect_ms
Definition pe_types.h:370
enum rsc_recovery_type recovery_type
Definition pe_types.h:361
pe_resource_t * parent
Definition pe_types.h:354
pe_node_t * partial_migration_target
Definition pe_types.h:396
GList * fillers
Definition pe_types.h:413
resource_alloc_functions_t * cmds
Definition pe_types.h:359
xmlNode * orig_xml
Definition pe_types.h:350
enum rsc_role_e next_role
Definition pe_types.h:403
enum rsc_role_e role
Definition pe_types.h:402
resource_object_functions_t * fns
Definition pe_types.h:358
xmlNode * ops_xml
Definition pe_types.h:351
time_t lock_time
Definition pe_types.h:419
pe_node_t * lock_node
Definition pe_types.h:417
char * id
Definition pe_types.h:488
GList * refs
Definition pe_types.h:489
GHashTable * state
Definition pe_types.h:484
char * id
Definition pe_types.h:480
gboolean standby
Definition pe_types.h:483
gboolean granted
Definition pe_types.h:481
time_t last_granted
Definition pe_types.h:482
GHashTable * singletons
Definition pe_types.h:178
GList * colocation_constraints
Definition pe_types.h:184
GList * ticket_constraints
Definition pe_types.h:185
const char * stonith_action
Definition pe_types.h:166
GHashTable * tags
Definition pe_types.h:203
const char * placement_strategy
Definition pe_types.h:167
guint shutdown_lock
Definition pe_types.h:212
GHashTable * config_hash
Definition pe_types.h:174
GList * param_check
Definition pe_types.h:208
GList * actions
Definition pe_types.h:187
GHashTable * template_rsc_sets
Definition pe_types.h:201
xmlNode * input
Definition pe_types.h:160
GList * resources
Definition pe_types.h:181
pe_node_t * dc_node
Definition pe_types.h:165
xmlNode * failed
Definition pe_types.h:188
xmlNode * graph
Definition pe_types.h:199
unsigned long long flags
Definition pe_types.h:169
xmlNode * rsc_defaults
Definition pe_types.h:190
xmlNode * op_defaults
Definition pe_types.h:189
enum pe_quorum_policy no_quorum_policy
Definition pe_types.h:172
GList * stop_needed
Definition pe_types.h:209
GHashTable * tickets
Definition pe_types.h:175
GList * placement_constraints
Definition pe_types.h:182
GList * ordering_constraints
Definition pe_types.h:183
time_t recheck_by
Definition pe_types.h:210
int priority_fencing_delay
Definition pe_types.h:213
crm_time_t * now
Definition pe_types.h:161
int order_id
Deprecated (will be removed in a future release)
Definition pe_types.h:195
const char * localhost
Definition pe_types.h:202
gboolean(* active)(pe_resource_t *, gboolean)
Definition pe_types.h:53
gboolean(* is_filtered)(const pe_resource_t *, GList *, gboolean)
Definition pe_types.h:58
enum rsc_role_e(* state)(const pe_resource_t *, gboolean)
Definition pe_types.h:54
void(* free)(pe_resource_t *)
Definition pe_types.h:56
gboolean(* unpack)(pe_resource_t *, pe_working_set_t *)
Definition pe_types.h:45
void(* print)(pe_resource_t *, const char *, long, void *)
Definition pe_types.h:52
void(* count)(pe_resource_t *)
Definition pe_types.h:57