RESULT=STOP_P27FW1_VM121_DOMAIN_V2_FAST_WAKEUP STEP_RESULT=STOP_P27FW1_R01_VM121_DOMAIN_V2_FAST_WAKEUP REVISION=R01 CLASS=B RUNTIME_IMPACT=true BUSINESS_DATABASE_MUTATED=false VM100_CHANGED=false VM101_CHANGED=false VM103_CHANGED=false VM121_CHANGED=false STOP_PHASE=preflight STOP_LINE=135 STOP_RC=1 CORE_CHANGE_COMPLETE=false ROLLBACK_STATUS=not_needed NEXT=INSPECT_STEP_EVIDENCE_AND_USE_CONTINUATION_IF_CORE_WAS_ACCEPTED STOP_COMMAND=$'ssh vm121 "bash -s -- \'$EXPECTED_COMMIT\' \'$EXPECTED_TREE\' \'$EXPECTED_FILE_COUNT\' \'$EXPECTED_PROFILE_SHA\' \'$EXPECTED_CURRENT_API_SHA\' \'$EXPECTED_CURRENT_SVC_SHA\'" > "$PREFLIGHT_LOG" <<\'REMOTE\'\nset -Eeuo pipefail\nEXPECTED_COMMIT="$1"; EXPECTED_TREE="$2"; EXPECTED_FILES="$3"; EXPECTED_PROFILE="$4"; EXPECTED_API="$5"; EXPECTED_SVC="$6"\nPROFILE=/etc/router-machine-git-source.conf\nAPI=/opt/wg-access/backend/app/api/auth_v2.py\nSVC=/opt/wg-access/backend/app/services/auth_v2.py\n[[ "$(sha256sum "$PROFILE" | awk \'{print $1}\')" == "$EXPECTED_PROFILE" ]]\n[[ "$(git --git-dir=/root/.vm121-source.git rev-parse HEAD)" == "$EXPECTED_COMMIT" ]]\n[[ "$(git --git-dir=/root/.vm121-source.git show -s --format=\'%T\' HEAD)" == "$EXPECTED_TREE" ]]\n[[ "$(git --git-dir=/root/.vm121-source.git ls-tree -r --name-only HEAD | wc -l | tr -d \' \')" == "$EXPECTED_FILES" ]]\n[[ "$(sha256sum "$API" | awk \'{print $1}\')" == "$EXPECTED_API" ]]\n[[ "$(sha256sum "$SVC" | awk \'{print $1}\')" == "$EXPECTED_SVC" ]]\npython3 - "$API" "$SVC" <<\'PY\'\nfrom pathlib import Path\nimport sys\nfor name in sys.argv[1:]:\n p=Path(name); compile(p.read_bytes(),str(p),\'exec\')\nPY\nDB_REV="$(docker exec wgaccess-postgres psql -U wg_access -d wg_access -Atqc \'select version_num from alembic_version\')"\n[[ "$DB_REV" == \'0006_admin_user_deletion\' ]]\nHEALTH="$(curl -sS -o /dev/null -w \'%{http_code}\' http://127.0.0.1:18080/health)"\nDB_HEALTH="$(curl -sS -o /dev/null -w \'%{http_code}\' http://127.0.0.1:18080/health/db)"\n[[ "$HEALTH" == 200 && "$DB_HEALTH" == 200 ]]\n[[ "$(systemctl is-enabled wg-access-trigger-watch.service)" == enabled ]]\n[[ "$(systemctl is-active wg-access-trigger-watch.service)" == active ]]\n[[ "$(systemctl is-enabled wg-access-reconcile.timer)" == enabled ]]\n[[ "$(systemctl is-active wg-access-reconcile.timer)" == active ]]\n[[ "$(systemctl is-enabled wg-access-agent.path || true)" == disabled ]]\n[[ "$(systemctl is-active wg-access-agent.path || true)" == inactive ]]\n[[ "$(systemctl is-enabled wg-access-agent.timer || true)" == disabled ]]\n[[ "$(systemctl is-active wg-access-agent.timer || true)" == inactive ]]\nPENDING="$(docker exec wgaccess-postgres psql -U wg_access -d wg_access -Atqc "select count(*) from provisioning_jobs where status in (\'pending\',\'running\')")"\n[[ "$PENDING" == 0 ]]\nUSERS="$(docker exec wgaccess-postgres psql -U wg_access -d wg_access -Atqc \'select count(*) from users\')"\nPROFILES="$(docker exec wgaccess-postgres psql -U wg_access -d wg_access -Atqc \'select count(*) from connection_profiles\')"\nprintf \'RESULT=PASS_P27FW1_VM121_PREFLIGHT\\nDB_REVISION=%s\\nUSER_COUNT_BEFORE=%s\\nPROFILE_COUNT_BEFORE=%s\\nPENDING_RUNTIME_JOBS=%s\\nTRIGGER_WATCH=enabled_active\\nRECONCILE_TIMER=enabled_active\\nAGENT_PATH=disabled_inactive\\nAGENT_TIMER=disabled_inactive\\nBACKEND_HEALTH_HTTP=%s\\nDB_HEALTH_HTTP=%s\\n\' "$DB_REV" "$USERS" "$PROFILES" "$PENDING" "$HEALTH" "$DB_HEALTH"\nREMOTE\n'