Title: observe counts a snapshot left by an earlier run as observed · Issue #470 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: observe counts a snapshot left by an earlier run as observed · Issue #470 · cloudfall-dev/cloudfall
X Title: observe counts a snapshot left by an earlier run as observed · Issue #470 · cloudfall-dev/cloudfall
Description: collect_observations in sdk/src/cloudfall/observe.py (lines 244-248) counts a server as observed when
Open Graph Description: collect_observations in sdk/src/cloudfall/observe.py (lines 244-248) counts a server as observed when
X Description: collect_observations in sdk/src/cloudfall/observe.py (lines 244-248) counts a server as observed when <server>.json exists in the output directory after the inspect run. Nothing removes or da...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/470
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"observe counts a snapshot left by an earlier run as observed","articleBody":"`collect_observations` in `sdk/src/cloudfall/observe.py` (lines 244-248) counts a server as observed when `\u003cserver>.json` exists in the output directory after the inspect run. Nothing removes or dates the snapshots before the run, so a snapshot left by an earlier run counts as fresh.\n\n## Reproduce\n\n- Observe a fleet once, so `db1.json` and `db2.json` exist\n- Make `db1` fail inspect (unreachable, or anything that fails the host; `playbooks/inspect.yml` runs `serial: 1` with `any_errors_fatal: true`, so `db2` is then not inspected either) and observe again\n- The result lists both servers as `observed`, `missing` is empty, and `cloudfall audit` reads both old snapshots as the current state; only the exit code says the run failed\n\n## Expected\n\nQuality bar Q-1: a server whose snapshot this run did not write is not observed. Either the snapshots of the requested servers are removed (or moved aside) before the run, or a snapshot counts only when it was written by this run (a run id or a time it carries, checked against the run's start), and audit reports a server with no fresh snapshot as unknown.\n\n## Touches\n\n- `sdk/src/cloudfall/observe.py` (`collect_observations`)\n- the observe tests under `sdk/tests/`\n- possibly `engine/ansible/roles/cloudfall_inspect` if the snapshot gains a run id\n\nFound in the review of #469.\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-17T02:55:27Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/470"}
| 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:1a0e05a4-b5ed-1138-8687-38857975f9ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A676:3B27CE:19A47BC:21A5C80:6B05567D |
| html-safe-nonce | 81f7651e6928f63bce8421b6113ba484736bccbe4a7a2517c5f8153e471d93d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjc2OjNCMjdDRToxOUE0N0JDOjIxQTVDODA6NkIwNTU2N0QiLCJ2aXNpdG9yX2lkIjoiMjYyNzc4MDY2NzQzNjc4NTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 38e6d7d07a941960db3ed4660082a247af002017e44c034920f6905324b983c0 |
| hovercard-subject-tag | issue:6436049513 |
| 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/470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eec30180e87d8b6eb846a7bdbc4ac29d9e574e8308facd535fb12c038164d3eb/cloudfall-dev/cloudfall/issues/470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eec30180e87d8b6eb846a7bdbc4ac29d9e574e8308facd535fb12c038164d3eb/cloudfall-dev/cloudfall/issues/470 |
| og:image:alt | collect_observations in sdk/src/cloudfall/observe.py (lines 244-248) counts a server as observed when |
| 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