mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-18 17:50:35 +00:00
fix(genesis): keep logging non-fatal
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ functions_file=${XCAT_GENESIS_FUNCTIONS:-/usr/libexec/xcat/genesis-functions}
|
||||
source "$functions_file"
|
||||
|
||||
log() {
|
||||
logger -t xcat-genesis-network-state -- "$*"
|
||||
logger -t xcat-genesis-network-state -- "$*" || true
|
||||
}
|
||||
|
||||
status_command=${XCAT_STATUS_COMMAND:-/usr/libexec/xcat/genesis-status}
|
||||
|
||||
+1
-1
@@ -117,4 +117,4 @@ status_fields=(
|
||||
publish_status ACTION_RECEIVED "Action $selected_action received" \
|
||||
"${status_fields[@]}"
|
||||
logger -t xcat-genesis-register -- \
|
||||
"received action from $XCATDEST: $selected_action"
|
||||
"received action from $XCATDEST: $selected_action" || true
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ S = "${UNPACKDIR}"
|
||||
|
||||
inherit systemd
|
||||
|
||||
RDEPENDS:${PN} = "bash coreutils ipmitool iproute2 networkmanager-nmcli xcat-genesis-discovery xcat-genesis-protocol"
|
||||
RDEPENDS:${PN} = "bash coreutils ipmitool iproute2 networkmanager-nmcli util-linux-logger xcat-genesis-discovery xcat-genesis-protocol"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "xcat-genesis-action.service \
|
||||
xcat-genesis-metrics.service \
|
||||
|
||||
+1
-1
@@ -302,7 +302,7 @@ for ((attempt = 1; attempt <= maximum_attempts; attempt++)); do
|
||||
publish_status READY 'xCAT accepted the discovered node' \
|
||||
'PROGRESS_PERCENT=100'
|
||||
logger -t xcat-genesis-discover -- \
|
||||
'xCAT accepted the discovery inventory'
|
||||
'xCAT accepted the discovery inventory' || true
|
||||
exit 0
|
||||
;;
|
||||
processed)
|
||||
|
||||
+1
-1
@@ -142,4 +142,4 @@ mv -f -- "$certificate_file" "$key_dir/cert.pem"
|
||||
publish_status READY 'xCAT client certificate installed' \
|
||||
"NODE_NAME=$node_name" 'PROGRESS_PERCENT=100'
|
||||
logger -t xcat-genesis-getcert -- \
|
||||
"installed an xCAT client certificate for $node_name"
|
||||
"installed an xCAT client certificate for $node_name" || true
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ do_compile() {
|
||||
-o genesis-udp-send
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "bash coreutils gzip iproute2 openssl-bin util-linux-lsblk"
|
||||
RDEPENDS:${PN} = "bash coreutils gzip iproute2 openssl-bin util-linux-logger util-linux-lsblk"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "xcat-genesis-discovery.socket \
|
||||
xcat-genesis-credential.socket \
|
||||
|
||||
Reference in New Issue
Block a user