root/include/crm/common/scheduler_internal.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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_COMMON_SCHEDULER_INTERNAL__H
  11 #  define PCMK__CRM_COMMON_SCHEDULER_INTERNAL__H
  12 
  13 #include <crm/common/action_relation_internal.h>
  14 #include <crm/common/clone_internal.h>
  15 #include <crm/common/digests_internal.h>
  16 #include <crm/common/failcounts_internal.h>
  17 #include <crm/common/group_internal.h>
  18 #include <crm/common/roles_internal.h>
  19 
  20 #ifdef __cplusplus
  21 extern "C" {
  22 #endif
  23 
  24 /* Some warnings are too noisy when logged every time a give function is called
  25  * (for example, using a deprecated feature). As an alternative, we allow
  26  * warnings to be logged once per scheduler sequence (transition). Each of those
  27  * warnings needs a flag defined here.
  28  */
  29 enum pcmk__sched_warnings {
  30     pcmk__wo_blind          = (1 << 0),
  31     pcmk__wo_restart_type   = (1 << 1),
  32     pcmk__wo_role_after     = (1 << 2),
  33     pcmk__wo_poweroff       = (1 << 3),
  34     pcmk__wo_require_all    = (1 << 4),
  35     pcmk__wo_order_score    = (1 << 5),
  36     pcmk__wo_neg_threshold  = (1 << 6),
  37     pcmk__wo_remove_after   = (1 << 7),
  38     pcmk__wo_ping_node      = (1 << 8),
  39     pcmk__wo_order_inst     = (1 << 9),
  40     pcmk__wo_coloc_inst     = (1 << 10),
  41     pcmk__wo_group_order    = (1 << 11),
  42     pcmk__wo_group_coloc    = (1 << 12),
  43     pcmk__wo_upstart        = (1 << 13),
  44     pcmk__wo_nagios         = (1 << 14),
  45     pcmk__wo_set_ordering   = (1 << 15),
  46 };
  47 
  48 enum pcmk__check_parameters {
  49     /* Clear fail count if parameters changed for un-expired start or monitor
  50      * last_failure.
  51      */
  52     pcmk__check_last_failure,
  53 
  54     /* Clear fail count if parameters changed for start, monitor, promote, or
  55      * migrate_from actions for active resources.
  56      */
  57     pcmk__check_active,
  58 };
  59 
  60 // Group of enum pcmk__sched_warnings flags for warnings we want to log once
  61 extern uint32_t pcmk__warnings;
  62 
  63 #ifdef __cplusplus
  64 }
  65 #endif
  66 
  67 #endif // PCMK__CRM_COMMON_SCHEDULER_INTERNAL__H

/* [previous][next][first][last][top][bottom][index][help] */