Title: lock clear can delete a lock retaken while it runs, and says noop when servers were unread · Issue #271 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: lock clear can delete a lock retaken while it runs, and says noop when servers were unread · Issue #271 · cloudfall-dev/cloudfall
X Title: lock clear can delete a lock retaken while it runs, and says noop when servers were unread · Issue #271 · cloudfall-dev/cloudfall
Description: Found in review of #269 (#221). Problem cloudfall lock clear
Open Graph Description: Found in review of #269 (#221). Problem cloudfall lock clear
X Description: Found in review of #269 (#221). Problem cloudfall lock clear <component> now reads and clears the component's lock on each of its servers. Three gaps in it: engine/ansible/playbooks/lock....
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/271
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lock clear can delete a lock retaken while it runs, and says noop when servers were unread","articleBody":"Found in review of #269 (#221).\n\n## Problem\n\n`cloudfall lock clear \u003ccomponent>` now reads and clears the component's lock on each of its servers. Three gaps in it:\n\n1. `engine/ansible/playbooks/lock.yml`: clearing reads the server's lock and deletes it in two separate tasks. A run that takes the lock again in that gap (about one SSH round trip) has its lock deleted while it runs.\n2. `sdk/src/cloudfall/app.py` (`lock clear`): when some servers can't be reached and no lock was found on the others, it answers `noop` (\"no run held it\"). `unreadServers` lists them, but the answer says nothing held the lock when it can't know that (quality bar Q-1).\n3. `sdk/src/cloudfall/app.py` (`lock clear`): the servers are contacted with become before the terminal check, so a run without a terminal reads every server and only then exits `PERSON_REQUIRED`.\n\n## Proposal\n\n- Delete a server's lock only if it still holds the token `lock clear` showed, in one step on the host (compare and remove in one command), with a test that a lock retaken after it was shown is kept and reported as `CONFLICT`\n- With unread servers and no lock found, answer that the state is unknown for those servers, not `noop`\n- Check for a terminal before contacting any server\n\nDepends on cloudfall-dev/cloudfall#284\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-13T13:39:45Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/271"}
| 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:9f76cc8b-7919-f3f0-a7d7-ca2e9592d09c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B33C:1E782F:194E6D7:213323C:6B055666 |
| html-safe-nonce | 818062ebe65ec489fb635631796bb207842b3baee9dd7fb4e49be38b814dcf84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzNDOjFFNzgyRjoxOTRFNkQ3OjIxMzMyM0M6NkIwNTU2NjYiLCJ2aXNpdG9yX2lkIjoiMzM5NzI4NzcwOTkzMDUxMjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bf45c724d00cbf90291ab2202c7bd37e76aa03037add168b6e66cf77675f1a61 |
| hovercard-subject-tag | issue:6372424480 |
| 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/271/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7fd0e96e15b7eb6830c083d0e5190147414618bf6db42518ca493493d40e1603/cloudfall-dev/cloudfall/issues/271 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fd0e96e15b7eb6830c083d0e5190147414618bf6db42518ca493493d40e1603/cloudfall-dev/cloudfall/issues/271 |
| og:image:alt | Found in review of #269 (#221). Problem cloudfall lock clear |
| 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 | 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