Title: The deploy rollback can restore the wrong thing: same-release redeploys and the unit file are not covered · Issue #223 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: The deploy rollback can restore the wrong thing: same-release redeploys and the unit file are not covered · Issue #223 · cloudfall-dev/cloudfall
X Title: The deploy rollback can restore the wrong thing: same-release redeploys and the unit file are not covered · Issue #223 · cloudfall-dev/cloudfall
Description: Problem Two paths in roles/cloudfall_deploy/tasks/main.yml make the automatic rollback restore something other than the previous release: Deploying a release id that is already current unpacks into the live release directory and runs uv ...
Open Graph Description: Problem Two paths in roles/cloudfall_deploy/tasks/main.yml make the automatic rollback restore something other than the previous release: Deploying a release id that is already current unpacks into...
X Description: Problem Two paths in roles/cloudfall_deploy/tasks/main.yml make the automatic rollback restore something other than the previous release: Deploying a release id that is already current unpacks into...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/223
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The deploy rollback can restore the wrong thing: same-release redeploys and the unit file are not covered","articleBody":"## Problem\n\nTwo paths in `roles/cloudfall_deploy/tasks/main.yml` make the automatic rollback restore something other than the previous release:\n\n- Deploying a release id that is already `current` unpacks into the live release directory and runs `uv sync` there. If the health gate then fails, the \"previous\" directory is that same directory, so the rescue restores nothing and the run still reads as rolled back\n- The managed unit file is templated before the gated block, and the rescue restores only the symlink. After a failed gate the previous release runs under the new release's `ExecStart` and unit settings. The restored release is restarted but not health-gated, so a rollback that does not come up is not reported\n\nAlso, `deploy.yml --check` cannot pass: the staged archive is not copied in check mode, so `stat.checksum` is undefined at the digest assertion.\n\n## Proposal\n\n- Refuse to deploy a release id that is already current on a server, or unpack it into a fresh directory; never write into the directory `current` points at\n- Keep the previous unit file and restore it in the rescue, as is already done for a hand-made unit\n- Gate the restored release, and report a rollback that fails its gate as its own failure\n- Make the digest check and the uv bootstrap skip cleanly in check mode, and run `deploy.yml --check` in the engine tests\n","author":{"url":"https://github.com/romamo","@type":"Person","name":"romamo"},"datePublished":"2026-11-13T08:19:31Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/223"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0bdbf197-0e66-99d4-de7b-03c34dde7c2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4CA:6FB4F:EC25B5:1436016:6B0558A8 |
| html-safe-nonce | 2d0a6314a4c4613a0ae3fd0debda446cf234fc6c53577bab511f9525892b237b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNENBOjZGQjRGOkVDMjVCNToxNDM2MDE2OjZCMDU1OEE4IiwidmlzaXRvcl9pZCI6IjM0OTMwNTUwODc4MzA3MTg2MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c063c7022f255ea1718aa40054d7997a76ee2bddfeb15e1d491249828239a8d4 |
| hovercard-subject-tag | issue:6367604987 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/223/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33e42d4f18630f75167dc1658659c2748470a4f1681f0e5c201cc327d76022a7/cloudfall-dev/cloudfall/issues/223 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33e42d4f18630f75167dc1658659c2748470a4f1681f0e5c201cc327d76022a7/cloudfall-dev/cloudfall/issues/223 |
| og:image:alt | Problem Two paths in roles/cloudfall_deploy/tasks/main.yml make the automatic rollback restore something other than the previous release: Deploying a release id that is already current unpacks into... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | romamo |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width