Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
pacemaker.34782
pacemaker#3409-0004-Low-scheduler-deprecate-sup...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3409-0004-Low-scheduler-deprecate-support-for-default-instance.patch of Package pacemaker.34782
From 68d86f7b56075e0e051551709127995ed2eb13db Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Thu, 14 Mar 2024 16:34:47 -0500 Subject: [PATCH 4/7] Low: scheduler: deprecate support for default instance attributes The schema already prevents them, but the code currently processes them if validation is disabled --- include/crm/common/scheduler_internal.h | 1 + lib/pengine/complex.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) Index: pacemaker-2.0.5+20201202.ba59be712/lib/pengine/complex.c =================================================================== --- pacemaker-2.0.5+20201202.ba59be712.orig/lib/pengine/complex.c +++ pacemaker-2.0.5+20201202.ba59be712/lib/pengine/complex.c @@ -168,6 +168,19 @@ get_rsc_attributes(GHashTable * meta_has get_rsc_attributes(meta_hash, rsc->parent, node, data_set); } else { + if (first_named_child(data_set->rsc_defaults, + XML_TAG_ATTR_SETS) != NULL) { + /* Not possible with schema validation enabled + * + * @COMPAT Drop support when we can break behavioral + * backward compatibility + */ + pe_warn_once(pe_wo_instance_defaults, + "Support for " XML_TAG_ATTR_SETS " in " + XML_CIB_TAG_RSCCONFIG " is deprecated and will be " + "removed in a future release"); + } + /* and finally check the defaults */ pe__unpack_dataset_nvpairs(data_set->rsc_defaults, XML_TAG_ATTR_SETS, &rule_data, meta_hash, NULL, FALSE, data_set); Index: pacemaker-2.0.5+20201202.ba59be712/include/crm/pengine/internal.h =================================================================== --- pacemaker-2.0.5+20201202.ba59be712.orig/include/crm/pengine/internal.h +++ pacemaker-2.0.5+20201202.ba59be712/include/crm/pengine/internal.h @@ -146,6 +146,7 @@ enum pe_warn_once_e { pe_wo_require_all = 0x0010, pe_wo_order_score = 0x0020, pe_wo_neg_threshold = 0x0040, + pe_wo_instance_defaults = (1 << 20), }; extern uint32_t pe_wo;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor