forked from pool/drbd-utils
bsc#1176065, fail to get master id from cib xml in fence handler OBS-URL: https://build.opensuse.org/request/show/832639 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd-utils?expand=0&rev=96
31 lines
1.7 KiB
Diff
31 lines
1.7 KiB
Diff
error msg when using fence-handler:
|
|
sed: -e expression #1, char 28: unknown command: `\'
|
|
WARNING drbd-fencing could not determine the master id of drbd resource xxx
|
|
|
|
Either replace the '\\' to '\' or change back to the original "xxx"'
|
|
quotation could fix the error.
|
|
diff -Naur drbd-utils-9.13.0.orig/scripts/crm-fence-peer.9.sh drbd-utils-9.13.0/scripts/crm-fence-peer.9.sh
|
|
--- drbd-utils-9.13.0.orig/scripts/crm-fence-peer.9.sh 2020-09-04 15:47:07.865987423 +0800
|
|
+++ drbd-utils-9.13.0/scripts/crm-fence-peer.9.sh 2020-09-04 15:47:25.086005572 +0800
|
|
@@ -214,7 +214,7 @@
|
|
# or double check that it is in fact a promotable="true" clone...
|
|
# But in the real world, this is good enough.
|
|
: ${master_id=$(set +x; echo "$cib_xml" |
|
|
- sed -ne '/<\(clone\|master\) /,/<\\/\(clone\|master\)>/ {
|
|
+ sed -ne '/<\(clone\|master\) /,/<\/\(clone\|master\)>/ {
|
|
/<\(clone\|master\) / h;
|
|
/<primitive/,/<\/primitive/ {
|
|
/<instance_attributes/,/<\/instance_attributes/ {
|
|
diff -Naur drbd-utils-9.13.0.orig/scripts/crm-fence-peer.sh drbd-utils-9.13.0/scripts/crm-fence-peer.sh
|
|
--- drbd-utils-9.13.0.orig/scripts/crm-fence-peer.sh 2020-09-04 15:47:07.865987423 +0800
|
|
+++ drbd-utils-9.13.0/scripts/crm-fence-peer.sh 2020-09-04 15:47:37.046018153 +0800
|
|
@@ -87,7 +87,7 @@
|
|
# or double check that it is in fact a promotable="true" clone...
|
|
# But in the real world, this is good enough.
|
|
: ${master_id=$(set +x; echo "$cib_xml" |
|
|
- sed -ne '/<\(clone\|master\) /,/<\\/\(clone\|master\)>/ {
|
|
+ sed -ne '/<\(clone\|master\) /,/<\/\(clone\|master\)>/ {
|
|
/<\(clone\|master\) / h;
|
|
/<primitive/,/<\/primitive/ {
|
|
/<instance_attributes/,/<\/instance_attributes/ {
|