Skip to content

handle degraded cloud-init as long as it set up necessary components - #181

Merged
bjsvedin merged 1 commit into
version-5.3from
version-5.3-singleEc2-cloud-init-check
Sep 1, 2026
Merged

handle degraded cloud-init as long as it set up necessary components#181
bjsvedin merged 1 commit into
version-5.3from
version-5.3-singleEc2-cloud-init-check

Conversation

@WesleyEdwards

Copy link
Copy Markdown
Contributor

Handle degraded cloud-init completion during redeploy

Updates the Terraform redeploy wait step to handle cases where cloud-init status --wait returns exit code 2 even though provisioning has completed sufficiently for deployment.

Instead of treating any non-zero exit code as a failure, the redeploy script now:

  • Continues normally when cloud-init exits 0.

  • Accepts exit 2 when both required deployment scripts are present and executable:

    • /usr/local/bin/lightning-server-redeploy
    • /usr/local/bin/lightning-server-predeploy
  • Fails when cloud-init returns another error or the required scripts are missing.

This makes the redeploy process resilient to cloud-init completing in a degraded state while still verifying that the deployment prerequisites were successfully installed.

@bjsvedin
bjsvedin merged commit a5c4200 into version-5.3 Sep 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants