-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: libcrmcommon: Add PCMK_SCHEDULER_INPUT_DIR defined constant.
- Loading branch information
Showing
12 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# Originally based on hb_report | ||
# Copyright 2007 Dejan Muhamedagic <[email protected]> | ||
# Later changes copyright 2010-2018 the Pacemaker project contributors | ||
# Later changes copyright 2010-2024 the Pacemaker project contributors | ||
# | ||
# The version control history for this file may have further details. | ||
# | ||
|
@@ -400,13 +400,13 @@ getbacktraces() { | |
} | ||
|
||
getpeinputs() { | ||
if [ -n "$PE_STATE_DIR" ]; then | ||
if [ -n "$PCMK_SCHEDULER_INPUT_DIR" ]; then | ||
flist=$( | ||
find_files "$PE_STATE_DIR" "$1" "$2" | sed "s,`dirname $PE_STATE_DIR`/,,g" | ||
find_files "$PCMK_SCHEDULER_INPUT_DIR" "$1" "$2" | sed "s,`dirname $PCMK_SCHEDULER_INPUT_DIR`/,,g" | ||
) | ||
if [ "$flist" ]; then | ||
(cd $(dirname "$PE_STATE_DIR") && tar cf - $flist) | (cd "$3" && tar xf -) | ||
debug "found `echo $flist | wc -w` scheduler input files in $PE_STATE_DIR" | ||
(cd $(dirname "$PCMK_SCHEDULER_INPUT_DIR") && tar cf - $flist) | (cd "$3" && tar xf -) | ||
debug "found `echo $flist | wc -w` scheduler input files in $PCMK_SCHEDULER_INPUT_DIR" | ||
fi | ||
fi | ||
} | ||
|
@@ -662,7 +662,7 @@ get_logfiles() { | |
|
||
essential_files() { | ||
cat<<EOF | ||
d $PE_STATE_DIR 0750 hacluster haclient | ||
d $PCMK_SCHEDULER_INPUT_DIR 0750 hacluster haclient | ||
d $CRM_CONFIG_DIR 0750 hacluster haclient | ||
d $CRM_STATE_DIR 0750 hacluster haclient | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# Originally based on hb_report | ||
# Copyright 2007 Dejan Muhamedagic <[email protected]> | ||
# Later changes copyright 2010-2022 the Pacemaker project contributors | ||
# Later changes copyright 2010-2024 the Pacemaker project contributors | ||
# | ||
# The version control history for this file may have further details. | ||
# | ||
|
@@ -279,7 +279,7 @@ detect_host() { | |
BLACKBOX_DIR=$config_root/blackbox | ||
debug "Pacemaker blackboxes (if any) located in: $BLACKBOX_DIR" | ||
|
||
PE_STATE_DIR=$(detect_pe_dir "$config_root") | ||
PCMK_SCHEDULER_INPUT_DIR=$(detect_pe_dir "$config_root") | ||
|
||
CRM_CORE_DIRS="" | ||
for d in $config_root/cores $local_state_dir/lib/corosync; do | ||
|