2
0
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:
Vinícius Ferrão
2026-08-21 02:12:22 -03:00
parent a47c7f8e7c
commit c20ce284eb
6 changed files with 6 additions and 6 deletions
@@ -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}
@@ -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
@@ -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 \
@@ -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)
@@ -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
@@ -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 \