Title: A failed deploy and rollback keep the new environment file, so the previous release can't come back healthy · Issue #353 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A failed deploy and rollback keep the new environment file, so the previous release can't come back healthy · Issue #353 · cloudfall-dev/cloudfall
X Title: A failed deploy and rollback keep the new environment file, so the previous release can't come back healthy · Issue #353 · cloudfall-dev/cloudfall
Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Related to #223, which covered the unit file; the environment file is the same gap. Problem engine/ansible/roles/cloudfall_deploy/tasks/main.yml ("Install the component environment ...
Open Graph Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Related to #223, which covered the unit file; the environment file is the same gap. Problem engine/ansible/roles/cloudfall_deploy/tasks/main....
X Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Related to #223, which covered the unit file; the environment file is the same gap. Problem engine/ansible/roles/cloudfall_deploy/tasks/main....
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/353
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A failed deploy and rollback keep the new environment file, so the previous release can't come back healthy","articleBody":"Found in a whole-project review at 03e2faa (0.8.0rc45).\n\nRelated to cloudfall-dev/cloudfall#223, which covered the unit file; the environment file is the same gap.\n\n## Problem\n\n`engine/ansible/roles/cloudfall_deploy/tasks/main.yml` (\"Install the component environment file\", about line 189) overwrites `shared/env/\u003ccomponent>.env` before the release command and the health gate. Nothing keeps the previous content:\n\n- The rescue in `main.yml` restores the `current` symlink and the unit file, not the environment file\n- `tasks/rollback.yml` switches the symlink and restarts; it restores neither\n\nA deploy whose new environment is wrong (a bad or rotated value) fails its gate, the previous release restarts on the new environment and fails the same way. The automatic rollback leaves no healthy release. If the release command fails before the switch, the old release keeps running but picks up the new environment on its next restart.\n\n## Proposal\n\n- Keep the environment file per release (for example `releases/\u003cid>/.env` or `shared/env/\u003ccomponent>.\u003crelease>.env`) and point the unit at the one of the current release, so a symlink switch moves code and environment together\n- Restore it in the rescue and in `rollback`\n- A converge step in CI: a deploy that fails only because of its environment ends with the previous release healthy\n- Say in ARCHITECTURE.md what a rollback restores\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-15T16:02:24Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/353"}
| 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:abce5904-fa9a-bf05-99bf-c33a0432ea20 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB08:1248F8:1154DB:17809A:6B0596A7 |
| html-safe-nonce | e99be43ee8edd793df4b8d80d7a789868a47b24be37b7f69b01ed917c2f07e4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjA4OjEyNDhGODoxMTU0REI6MTc4MDlBOjZCMDU5NkE3IiwidmlzaXRvcl9pZCI6IjUxMjQyNjgwMzMxNzA1NzcwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aecee561befcda2c49b45fd57fa44665476eb920e57b81f4a629f725ac0da681 |
| hovercard-subject-tag | issue:6406204652 |
| 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/353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa6e0dec3482c0e426f5e699ccba6864dc92ef7af6f67b5cccb9ece0e96de1d6/cloudfall-dev/cloudfall/issues/353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa6e0dec3482c0e426f5e699ccba6864dc92ef7af6f67b5cccb9ece0e96de1d6/cloudfall-dev/cloudfall/issues/353 |
| og:image:alt | Found in a whole-project review at 03e2faa (0.8.0rc45). Related to #223, which covered the unit file; the environment file is the same gap. Problem engine/ansible/roles/cloudfall_deploy/tasks/main.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| 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 | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| 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