René's URL Explorer Experiment


Title: Promote over an undeclared MariaDB source only when it refuses the controller (S-019-14) by shipmill-romamo[bot] · Pull Request #454 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Promote over an undeclared MariaDB source only when it refuses the controller (S-019-14) by shipmill-romamo[bot] · Pull Request #454 · cloudfall-dev/cloudfall

X Title: Promote over an undeclared MariaDB source only when it refuses the controller (S-019-14) by shipmill-romamo[bot] · Pull Request #454 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar (Q-1) Files: engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml, engine/ansible/roles/cloudfall_mariadb/defaults/main.yml, engine/tests/test_s019_mariadb_replication_role.py, sdk/src/cloudfall/mariadb_replication.py (docstring only), changelog.d/446-promotion-unreachable-source.md Order: first the failing tests in engine/tests/test_s019_mariadb_replication_role.py (a replica declared primary whose undeclared source times out, can't be resolved, or answers its link with an auth or TLS error is promoted today); then the plan reads the replica's Last_IO_Errno before anything else, the controller's probe classifies its outcome by the socket error (refused, timeout, no route, unresolved) in place of wait_for, which reports every failure as a timeout, and only a refusal promotes; then the host fallback's comments say what the code does (any server_id that matches no peer, not only 0); then the changelog fragment Proof: S-019-14 role stand-in runs for each outcome (refused promotes; timeout or no route, an unresolvable name, an auth error and a TLS error each stop with PRECONDITION service_mariadb_promotion_unsafe and change nothing), the plan's table for each probe outcome and IO error, the probe's classifier for each socket error, and link_peer matching by host and port when the reported server_id is no peer's Summary A replica declared primary whose link's source is no declared service was promoted whenever the controller's wait_for probe of the source's port failed. wait_for swallows every connect error and reports one Timeout when waiting for host:port (checked in ansible-core 2.22's wait_for.py), so a source alive but unreachable from the controller was promoted over and both servers took writes (S-019-14). The plan reads the replica's own Last_IO_Errno first: an error only a running source sends (1045 access denied, 1129/1130 host blocked or not allowed, 1251 auth method, 2026 TLS, 1236 the source's binlog error) refuses with PRECONDITION service_mariadb_promotion_unsafe wait_for is replaced by a filter, cloudfall_mariadb_source_probe, run on the controller, that classifies the socket error by type and errno: open, refused, timeout, no-route, unresolved, failed. Only refused promotes; the others refuse, naming what the controller couldn't read, with a way out (let the controller reach the port, or remove the stopped source's link with RESET SLAVE ALL) A promotion over a refused source now says its source refuses connections on host:port instead of its source can not be reached link_peer's host fallback already ran for any server_id that matches no peer, not only 0; I kept that behaviour (it reads the server at a peer's address rather than treat it as a source Cloudfall can't read, which is what #442 meant) and fixed the comments in the filter, replication_check.yml and the SDK docstring to match The declared-source path is unchanged Test plan uv run pytest engine/tests/test_s019_mariadb_replication_role.py: 50 passed. The new role stand-in test test_s019_14_an_undeclared_source_is_promoted_over_only_when_it_refuses failed on main in 5 of 5 cases (the four refusal cases promoted, and the refused case had the old reason) uv run pytest sdk/tests/test_s019_mariadb_replication.py: passed uv run ruff check ., uv run mypy, ANSIBLE_CONFIG=engine/ansible/ansible.cfg uv run ansible-lint engine/ansible: pass Full suite left to CI Not verified on live servers: the Last_IO_Errno values MariaDB reports for an auth or TLS failure (from MariaDB's error codes, not seen on a live replica), and the timeout case in the stand-in reaches a documentation address (203.0.113.11), which reads as a timeout or no route depending on the network Fixes #446 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar (Q-1) Files: engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml, engine/ansib...

X Description: Plan Serves: quality bar (Q-1) Files: engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml, engine/ansib...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/454

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:64265ae9-945c-a1f9-094d-1863e7544f13
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAFF8:5028D:19DA11C:21EFBF6:6B055800
html-safe-nonce6c0d973622c3ec43b840e04ad3bbf12e512a23ed46fd8e461c9131384ad4ccbd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkY4OjUwMjhEOjE5REExMUM6MjFFRkJGNjo2QjA1NTgwMCIsInZpc2l0b3JfaWQiOiI0ODI3NDY1NDY0OTM2NzQ5MDU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac534450b104fb0a85ada07f5cd1431b50a0e032c8197831f2bfd84778a8a6181d
hovercard-subject-tagpull_request:5345499676
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/454/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altPlan Serves: quality bar (Q-1) Files: engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py, engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml, engine/ansib...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/454/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F454%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F454%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/454/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/454/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/454/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
fix/446-promotion-unreachable-sourcehttps://github.com/cloudfall-dev/cloudfall/tree/fix/446-promotion-unreachable-source
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/454
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/454/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/454/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/454/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/454/files
Promote over an undeclared MariaDB source only when it refuses the controller (S-019-14) https://github.com/cloudfall-dev/cloudfall/pull/454/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/454/files
acfcdd1 Promote over an undeclared MariaDB source only when it refuses the co… shipmill-romamo[bot] Nov 16, 2026 https://github.com/cloudfall-dev/cloudfall/pull/454/commits/acfcdd1f22281527002bc2b7ed1b0814f0c3a555
c04855d Read a source's name as refused only when every address refuses shipmill-romamo[bot] Nov 16, 2026 https://github.com/cloudfall-dev/cloudfall/pull/454/commits/c04855d1be0f66638c3be842660dd2fe82d2b578
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/454/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/454/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/454/files
446-promotion-unreachable-source.md https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-7c310da630506c69b4bbc1dfe36105df45483ca17c931b2c2a198aec551deab2
main.yml https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
mariadb_replication.py https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
replication_check.yml https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
test_s019_mariadb_replication_role.py https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-621512c6040e4c36871b54bc4b37af5dfea96f527e5a357da7a9604cf7bc2035
mariadb_replication.py https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-9d55b972f5438f5660dab737684d047ff3c0c461fdb380166fb64cf0136d84c4
changelog.d/446-promotion-unreachable-source.mdhttps://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-7c310da630506c69b4bbc1dfe36105df45483ca17c931b2c2a198aec551deab2
View file https://github.com/cloudfall-dev/cloudfall/blob/c04855d1be0f66638c3be842660dd2fe82d2b578/changelog.d/446-promotion-unreachable-source.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/454/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_mariadb/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
View file https://github.com/cloudfall-dev/cloudfall/blob/c04855d1be0f66638c3be842660dd2fe82d2b578/engine/ansible/roles/cloudfall_mariadb/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/454/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.pyhttps://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
View file https://github.com/cloudfall-dev/cloudfall/blob/c04855d1be0f66638c3be842660dd2fe82d2b578/engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/454/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/454/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/454/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/454/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.