Title: A role change never converges in one of the host orders: serial services.yml and a replica that refuses first (S-019-15) · Issue #451 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A role change never converges in one of the host orders: serial services.yml and a replica that refuses first (S-019-15) · Issue #451 · cloudfall-dev/cloudfall
X Title: A role change never converges in one of the host orders: serial services.yml and a replica that refuses first (S-019-15) · Issue #451 · cloudfall-dev/cloudfall
Description: Found by the real-host proving run of #441 (main at c32ec5e, two hosts db1 and db2, services mariadb-main on db1 and mariadb-replica on db2). services.yml runs with serial: 1 in inventory order, and a failed host ends the play. In both h...
Open Graph Description: Found by the real-host proving run of #441 (main at c32ec5e, two hosts db1 and db2, services mariadb-main on db1 and mariadb-replica on db2). services.yml runs with serial: 1 in inventory order, an...
X Description: Found by the real-host proving run of #441 (main at c32ec5e, two hosts db1 and db2, services mariadb-main on db1 and mariadb-replica on db2). services.yml runs with serial: 1 in inventory order, an...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/451
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A role change never converges in one of the host orders: serial services.yml and a replica that refuses first (S-019-15)","articleBody":"Found by the real-host proving run of #441 (`main` at c32ec5e, two hosts `db1` and `db2`, services `mariadb-main` on db1 and `mariadb-replica` on db2).\n\n`services.yml` runs with `serial: 1` in inventory order, and a failed host ends the play. In both host orders, that keeps a change of roles from converging:\n\n**1. The former primary sorts first.** db1's primary was stopped and db2 promoted (S-019-14). Then db1 was declared the replica of db2 and the whole project was converged. db1 converged first and could not attach: `Host '...' is not allowed to connect`. db2 only creates `cloudfall_repl@\u003cdb1>` in its own converge, and db2's turn never came because db1 had failed. A second and a third whole converge failed the same way. Only `converge_services(limit=db2)` and then a whole converge attached db1, with no seed.\n\n**2. A planned swap, the new primary sorts first (S-019-15).** db1 was a replica of db2. In one change, db1 was declared primary and db2 the replica of db1, with no writer running, and the whole project was converged three times. Each time:\n\n- db1 answered `wait-promotion` (\"mariadb-replica is still writable; it turns read-only as the replica of mariadb-main when its server converges\")\n- db2 then refused before turning itself read-only: `PRECONDITION service_mariadb_replica_unattachable: the primary mariadb-main of service mariadb-replica is itself a replica of 168.119.55.115; promote it first. Nothing changed`\n\nEach server waits for the other, so S-019-15's \"ends after at most two converges with the roles swapped\" does not hold. Even with db2 made read-only by hand, db1 still waits, because of the `ON`/`1` comparison filed separately. The run finished the swap by stopping db2's server, so that db1 took the \"source can not be reached\" branch.\n\nPossible fixes: a replica whose declared primary still replicates from it should turn itself read-only (and stop) before refusing, rather than refusing first. A whole converge could run the primaries of a pair before their replicas, or run the pair's account step on the primary before any replica links.\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-16T21:26:43Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/451"}
| 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:b2ba5f57-4909-5424-6d47-dd1931369f1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCA6:64B1C:1CC539:26C9F7:6B0550D5 |
| html-safe-nonce | cc66f0b8593616d5521987e652d62b338c6e4a42b161d99ad9abc9393747e058 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0E2OjY0QjFDOjFDQzUzOToyNkM5Rjc6NkIwNTUwRDUiLCJ2aXNpdG9yX2lkIjoiMTQ2NTk4NjEzMDc4Mzg1MDcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40cb82a8be08f36d93e5c5afda95bc388e211b4aeceb7640e1c65e99c679b9ab |
| hovercard-subject-tag | issue:6431158310 |
| 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/451/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a6ad9e197adffaff2cddd67f278a5e3fa5f3520b8329adff36bcc5f19f8c7a1/cloudfall-dev/cloudfall/issues/451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a6ad9e197adffaff2cddd67f278a5e3fa5f3520b8329adff36bcc5f19f8c7a1/cloudfall-dev/cloudfall/issues/451 |
| og:image:alt | Found by the real-host proving run of #441 (main at c32ec5e, two hosts db1 and db2, services mariadb-main on db1 and mariadb-replica on db2). services.yml runs with serial: 1 in inventory order, an... |
| 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 | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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