fix nessie url
This commit is contained in:
@@ -399,6 +399,30 @@ else
|
||||
bad "minio eksternal: minio-init masih ditempatkan → ${_qr}"
|
||||
fi
|
||||
|
||||
# ─── 0r. Nessie host-facing: port benar lewat sicabe_host_url ─────────────────
|
||||
# Regresi: verify-phase2/bootstrap membentuk `http://${NESSIE_HOST}:${NESSIE_PORT}` →
|
||||
# untuk Nessie EKSTERNAL (NESSIE_URL = http://<ip>:<NESSIE_INTERNAL_PORT>, mis. 19120)
|
||||
# port jadi SALAH (12120 = port TERBIT lokal) → gate FAIL walau layanan sehat.
|
||||
_nr=1
|
||||
grep -q 'sicabe_host_url()' "${DEPLOY_DIR}/lib/common.sh" || _nr=0
|
||||
grep -q 'sicabe_host_url NESSIE_URL NESSIE_HOST' "${DEPLOY_DIR}/scripts/verify-phase2-storage.sh" || _nr=0
|
||||
grep -q 'sicabe_host_url NESSIE_URL NESSIE_HOST' "${DEPLOY_DIR}/bootstrap.sh" || _nr=0
|
||||
grep -q 'NESSIE_HOST_API="http://${NESSIE_HOST}:${NESSIE_PORT}"' "${DEPLOY_DIR}/scripts/verify-phase2-storage.sh" && _nr=0
|
||||
_nr_beh="$(bash -c '
|
||||
# shellcheck disable=SC1091
|
||||
source "'"${DEPLOY_DIR}"'/lib/common.sh" >/dev/null 2>&1 || exit 9
|
||||
NESSIE_HOST=localhost NESSIE_PORT=12120
|
||||
NESSIE_URL=http://nessie:19120; a="$(sicabe_host_url NESSIE_URL NESSIE_HOST "$NESSIE_PORT")"
|
||||
NESSIE_URL=http://100.93.54.108:19120 NESSIE_HOST=100.93.54.108
|
||||
b="$(sicabe_host_url NESSIE_URL NESSIE_HOST "$NESSIE_PORT")"
|
||||
printf "%s|%s" "$a" "$b"' 2>/dev/null)"
|
||||
[[ "${_nr_beh}" == "http://localhost:12120|http://100.93.54.108:19120" ]] || _nr=0
|
||||
if [[ "${_nr}" == "1" ]]; then
|
||||
ok "Nessie host-facing: pakai sicabe_host_url (alamat → NESSIE_URL apa adanya; lokal → host:port terbit)"
|
||||
else
|
||||
bad "Nessie host-facing: port bisa salah untuk Nessie eksternal (beh='${_nr_beh}')"
|
||||
fi
|
||||
|
||||
# ─── 1. generate ────────────────────────────────────────────────────────────
|
||||
if ! python3 "${DEPLOY_DIR}/lib/cluster/generate.py" render \
|
||||
"${INVENTORY}" "${DEPLOY_DIR}/docker-compose.yml" "${DEPLOY_DIR}/.env" \
|
||||
|
||||
Reference in New Issue
Block a user