fix: sync only running banking LXCs 5825-5828 on r630-03
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m21s
CI/CD Pipeline / Security Scanning (push) Successful in 2m31s
CI/CD Pipeline / Lint and Format (push) Failing after 46s
CI/CD Pipeline / Terraform Validation (push) Failing after 31s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 28s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 45s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 40s
Validation / validate-genesis (push) Successful in 31s
Validation / validate-terraform (push) Failing after 26s
Validation / validate-kubernetes (push) Failing after 10s
Validation / validate-smart-contracts (push) Failing after 13s
Validation / validate-security (push) Failing after 1m28s
Validation / validate-documentation (push) Failing after 25s
Verify Deployment / Verify Deployment (push) Failing after 1m3s
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m21s
CI/CD Pipeline / Security Scanning (push) Successful in 2m31s
CI/CD Pipeline / Lint and Format (push) Failing after 46s
CI/CD Pipeline / Terraform Validation (push) Failing after 31s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 28s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 45s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 40s
Validation / validate-genesis (push) Successful in 31s
Validation / validate-terraform (push) Failing after 26s
Validation / validate-kubernetes (push) Failing after 10s
Validation / validate-smart-contracts (push) Failing after 13s
Validation / validate-security (push) Failing after 1m28s
Validation / validate-documentation (push) Failing after 25s
Verify Deployment / Verify Deployment (push) Failing after 1m3s
Load CTIDs from config, ensure containers are running before pct push, and skip missing legacy IDs instead of failing the whole sync. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,3 +57,26 @@ omnl_pve_preflight() {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
omnl_pve_ensure_ct_running() {
|
||||
local ctid="$1"
|
||||
local status
|
||||
status="$(omnl_pve_ssh "pct status ${ctid} 2>/dev/null || true")"
|
||||
if [[ -z "$status" ]]; then
|
||||
echo "CT ${ctid} does not exist on ${OMNL_PVE_SSH_TARGET} — skip" >&2
|
||||
return 1
|
||||
fi
|
||||
if [[ "$status" == *"status: running"* ]]; then
|
||||
return 0
|
||||
fi
|
||||
if [[ "$status" == *"status: stopped"* ]]; then
|
||||
log_msg "Starting stopped CT ${ctid}..."
|
||||
omnl_pve_ssh "pct start ${ctid}"
|
||||
sleep 3
|
||||
return 0
|
||||
fi
|
||||
echo "CT ${ctid} is not runnable (${status})" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
log_msg() { echo "[$(date -Iseconds)] $*" >&2; }
|
||||
|
||||
Reference in New Issue
Block a user