Title: A promotion reads an unreachable undeclared source as stopped (S-019-14) · Issue #446 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A promotion reads an unreachable undeclared source as stopped (S-019-14) · Issue #446 · cloudfall-dev/cloudfall
X Title: A promotion reads an unreachable undeclared source as stopped (S-019-14) · Issue #446 · cloudfall-dev/cloudfall
Description: Found in the review of #442 (fix for #440, S-019-14), which landed with this open. The gap When a replica declared primary has a link whose source matches no declared service (by server id or by host and port), engine/ansible/roles/cloud...
Open Graph Description: Found in the review of #442 (fix for #440, S-019-14), which landed with this open. The gap When a replica declared primary has a link whose source matches no declared service (by server id or by ho...
X Description: Found in the review of #442 (fix for #440, S-019-14), which landed with this open. The gap When a replica declared primary has a link whose source matches no declared service (by server id or by ho...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/446
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A promotion reads an unreachable undeclared source as stopped (S-019-14)","articleBody":"Found in the review of #442 (fix for #440, S-019-14), which landed with this open.\n\n## The gap\n\nWhen a replica declared `primary` has a link whose source matches no declared service (by server id or by host and port), `engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml` (around lines 79-93) probes the source's port from the controller with `wait_for`, and any failure counts as \"source stopped\": a refused connection, a timeout, a DNS name only the replica resolves, or a private network the controller has no route to all end in a promotion. A source that is alive but unreachable from the controller is promoted over, and both servers take writes (S-019-14 forbids that).\n\n## Expected\n\nThe promotion reads \"stopped\" only on evidence: the replica's own `Last_IO_Errno` / `Last_IO_Error` tells an auth or TLS error (the source is alive) from a connection refused; a probe that can't tell (timeout, no route, DNS failure on the controller) is unknown, and an unknown source refuses the promotion with `PRECONDITION`, naming what couldn't be read (Q-1).\n\nAlso: the host fallback in `mariadb_replication.py` (around lines 321-337) runs whenever the server id matches no peer, while its comments say only for id 0; align one with the other.\n\n## Touches\n\n- `engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml`\n- `engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py`\n- `engine/tests/test_s019_mariadb_replication_role.py`\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-16T19:40:41Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/446"}
| 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:44d57776-929f-0bf7-b91d-450916ccfd26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C86E:3272B6:D7EC55:128CFCD:6B0554DD |
| html-safe-nonce | 69bc2176b001c78928d6e8124f3800f61abd3b12e4ff59d5cb4f8312b3d931c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODZFOjMyNzJCNjpEN0VDNTU6MTI4Q0ZDRDo2QjA1NTRERCIsInZpc2l0b3JfaWQiOiI3NTM3OTMwOTQ2ODgwMDMyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 085d58813b10392d4f07ab234ec04f14349aed24d6b4db60dd27aa885656f64a |
| hovercard-subject-tag | issue:6429231368 |
| 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/446/issue_layout |
| twitter:image | https://opengraph.githubassets.com/313b83c77bb25d9d0defc78bb156c1e2b6c930aa6b9b7f30c269e9969ff7041e/cloudfall-dev/cloudfall/issues/446 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/313b83c77bb25d9d0defc78bb156c1e2b6c930aa6b9b7f30c269e9969ff7041e/cloudfall-dev/cloudfall/issues/446 |
| og:image:alt | Found in the review of #442 (fix for #440, S-019-14), which landed with this open. The gap When a replica declared primary has a link whose source matches no declared service (by server id or by ho... |
| 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