Title: inventory render --output sorts the hosts by name, so a primary or a cluster's home no longer runs first · Issue #465 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: inventory render --output sorts the hosts by name, so a primary or a cluster's home no longer runs first · Issue #465 · cloudfall-dev/cloudfall
X Title: inventory render --output sorts the hosts by name, so a primary or a cluster's home no longer runs first · Issue #465 · cloudfall-dev/cloudfall
Description: _rollout_order in engine/src/cloudfall_engine/ansible_inventory.py (line 237) puts each Elasticsearch cluster's home node and each MariaDB primary's server before the other servers, so a serial: 1 play runs them first (S-012, S-019). clo...
Open Graph Description: _rollout_order in engine/src/cloudfall_engine/ansible_inventory.py (line 237) puts each Elasticsearch cluster's home node and each MariaDB primary's server before the other servers, so a serial: 1 ...
X Description: _rollout_order in engine/src/cloudfall_engine/ansible_inventory.py (line 237) puts each Elasticsearch cluster's home node and each MariaDB primary's server before the other servers, so a se...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/465
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inventory render --output sorts the hosts by name, so a primary or a cluster's home no longer runs first","articleBody":"`_rollout_order` in `engine/src/cloudfall_engine/ansible_inventory.py` (line 237) puts each Elasticsearch cluster's home node and each MariaDB primary's server before the other servers, so a `serial: 1` play runs them first (S-012, S-019). `cloudfall-engine inventory render --output` then writes the inventory with `json.dumps(rendered, sort_keys=True)` (`engine/src/cloudfall_engine/cli.py:277`), which sorts the hosts by name and throws that order away. The converges run from that file (`sdk/src/cloudfall/project.py:651`), so hosts run alphabetically.\n\n## Reproduce\n\n- Declare a MariaDB primary on a server named `db2` and its replica on `db1`\n- `cloudfall-engine inventory render --output tmp/inv.json`: `db1` comes before `db2` in `cloudfall_servers`, and a whole services converge runs the replica first\n\nThis is likely why the #441 proving run converged the former primary db1 before db2 (#451). #451's fix makes a converge survive either order, but the home-first order of an Elasticsearch cluster has no such fallback.\n\n## Expected\n\nThe written file keeps the hosts in `_rollout_order`'s order (`sort_keys=False` for the host mapping, or a list the play reads in order), and a test renders a project whose primary sorts after its replica by name and checks the order in the written file.\n\n## Touches\n\n- `engine/src/cloudfall_engine/cli.py` (`render`)\n- the render tests under `engine/tests/`\n\nFound by the implementer of #451.\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-17T00:17:42Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/465"}
| 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:fddcba3f-777e-88ac-6c98-5a168b8932a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87E4:36E50:2728813:337DB24:6B055968 |
| html-safe-nonce | 955b8c174eddd3ce4ef0b0eee2ef37bb34edd4f345bad9af4dfcebf6fe16cc68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0U0OjM2RTUwOjI3Mjg4MTM6MzM3REIyNDo2QjA1NTk2OCIsInZpc2l0b3JfaWQiOiIzNTQyNzAyNzIzNjM0MTI1MTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 128e2995d9b9dc191c3d4a5ea756ea8ce540e8f8dc5c85cbd8b467eb0dc49151 |
| hovercard-subject-tag | issue:6433844151 |
| 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/465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ea5fc63234db8abd9b5ae0a5f3fbd07155bc1ce4fa6ccdddeca2c5d1c3779cc/cloudfall-dev/cloudfall/issues/465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ea5fc63234db8abd9b5ae0a5f3fbd07155bc1ce4fa6ccdddeca2c5d1c3779cc/cloudfall-dev/cloudfall/issues/465 |
| og:image:alt | _rollout_order in engine/src/cloudfall_engine/ansible_inventory.py (line 237) puts each Elasticsearch cluster's home node and each MariaDB primary's server before the other servers, so a serial: 1 ... |
| 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