fix: improve sensor proxy install script reliability

Fixes two issues with the sensor proxy installation:
1. Local node IP detection now uses exact matching instead of substring matching to avoid false negatives
2. Removes duplicate output filtering in the setup script wrapper

These changes ensure that the proxy SSH key is correctly configured on the local node during cluster installations.
This commit is contained in:
rcourtman 2025-10-17 19:09:54 +00:00
parent 123e0f04ca
commit 5886b920ba
2 changed files with 7 additions and 7 deletions

View file

@ -3732,10 +3732,6 @@ if [ "$PULSE_IS_CONTAINERIZED" = true ] && [ -n "$PULSE_CTID" ]; then
echo "$INSTALL_OUTPUT" | grep -E "✓|⚠️|ERROR" || true
fi
if [ -n "$INSTALL_OUTPUT" ]; then
echo "$INSTALL_OUTPUT" | grep -E "✓|⚠️|ERROR" || true
fi
if [ $INSTALL_STATUS -eq 0 ]; then
# Verify proxy health
PROXY_HEALTHY=false

View file

@ -351,9 +351,13 @@ if command -v pvecm >/dev/null 2>&1; then
print_info "Authorizing proxy key on node $node_ip..."
IS_LOCAL=false
if [[ " $LOCAL_IPS " == *" $node_ip "* ]]; then
IS_LOCAL=true
fi
# Check if node_ip matches any of the local IPs (exact match with word boundaries)
for local_ip in $LOCAL_IPS; do
if [[ "$node_ip" == "$local_ip" ]]; then
IS_LOCAL=true
break
fi
done
if [[ " $LOCAL_HOSTNAMES " == *" $node_ip "* ]]; then
IS_LOCAL=true
fi