René's URL Explorer Experiment


Title: Find a MariaDB link's source by host and port before a promotion (#440) by shipmill-romamo[bot] · Pull Request #442 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Find a MariaDB link's source by host and port before a promotion (#440) by shipmill-romamo[bot] · Pull Request #442 · cloudfall-dev/cloudfall

X Title: Find a MariaDB link's source by host and port before a promotion (#440) by shipmill-romamo[bot] · Pull Request #442 · cloudfall-dev/cloudfall

Description: Summary A replica declared primary (or standalone) found its current source only by the Master_Server_Id of SHOW SLAVE STATUS. A link whose IO thread has not connected reports 0, so no declared service matched, and _promotion promoted it over a running, writable primary, which S-019-14 forbids. The rendered pair's peers now carry each service's addresses (the names of its server's MariaDB certificate: hostname, IPv4, an IP address of another family, the remoteAccess and replication listen addresses) and its port A new filter, cloudfall_mariadb_link_peer, finds the source by Master_Server_Id, and when that matches nothing, by Master_Host among a peer's addresses and Master_Port equal to its port. Hosts compare in one form: an IP address canonical (2001:DB8:0::11 is 2001:db8::11), a name lowercase without its trailing dot; a name is never resolved The matched server is read as before, so a promotion over it refuses with PRECONDITION while it is writable and names both positions A link to no declared service whose IO thread isn't Yes is now refused too, unless the controller can't reach Master_Host:Master_Port (wait_for, cloudfall_mariadb_source_probe_seconds, default 10); before, it was promoted The stand-in in engine/tests/mariadb_pair.py reports Master_Server_Id: 0 while its IO thread isn't connected Why addresses rather than only the listen address: after a role swap the old primary is declared a replica and has no listenAddress, while the new primary's link still names the address it connected to; a replica verifies its primary's certificate against that host, so it is one of the certificate's names. Plan Serves: quality bar Files: sdk/src/cloudfall/mariadb_replication.py, 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/mariadb_pair.py, engine/tests/test_s019_mariadb_replication_role.py, changelog.d/440-promote-unconnected-link.md Order: make the stand-in report Master_Server_Id: 0 while its IO thread is not connected, and add the failing S-019-14 test (a replica that can't reach its running, writable primary, declared primary, is promoted today); render each peer's addresses and port; find the source by Master_Host and Master_Port when the server id matches no peer; refuse an unmatched source whose IO thread isn't Yes unless the controller can't reach it Proof: test_s019_14_* (the new one fails on main), S-019-15 and S-019-16 unchanged and passing, the filter's table test, S-019-2's byte-identical render Test plan New: test_s019_14_an_unconnected_link_is_not_promoted_over_a_writable_primary (the role replayed on the two stand-ins: h2 cut off from h1, Connecting, server id 0, declared primary: refused with both positions, still a read-only replica that follows once it connects). It failed on main (h2 was promoted) New: test_s019_14_a_link_is_matched_to_its_source_by_server_id_or_host_and_port (id first, listen address, IPv6 forms, hostname case and root dot, a former primary by its server's address, another port, an unknown name) and test_s019_14_a_link_reporting_server_id_0_is_not_promoted_over_its_source (the issue's repro in the filter) The promotion table gained the reachable/unreachable cases for an undeclared source uv run pytest engine/tests/test_s019_mariadb_replication_role.py (27 passed, S-019-14's stopped-primary path, S-019-15 both orders and S-019-16 included), engine/tests/test_s019_mariadb_render.py (S-019-2 byte-identical), sdk/tests/test_s019_mariadb_replication.py, engine/tests/test_s019_mariadb_role.py, engine/tests/test_s019_mariadb_engine.py uv run ruff check ., uv run mypy, uv run ansible-lint engine/ansible (with ANSIBLE_CONFIG=engine/ansible/ansible.cfg, as CI) pass The full suite is left to CI Unverified: whether a live replica reports Master_Server_Id: 0 while its IO thread connects; the proving run #441 checks it Fixes #440 🤖 Generated with Claude Code

Open Graph Description: Summary A replica declared primary (or standalone) found its current source only by the Master_Server_Id of SHOW SLAVE STATUS. A link whose IO thread has not connected reports 0, so no declared ser...

X Description: Summary A replica declared primary (or standalone) found its current source only by the Master_Server_Id of SHOW SLAVE STATUS. A link whose IO thread has not connected reports 0, so no declared ser...

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

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:b6ea0e47-13f1-78fd-23d1-bd1309a1f632
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD790:21890A:19BA1AC:21C63A0:6B05594A
html-safe-noncea10151ddc7ab0c058db7b2580e52173840da7ade10e2ab08382f9d86dc0c4328
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzkwOjIxODkwQToxOUJBMUFDOjIxQzYzQTA6NkIwNTU5NEEiLCJ2aXNpdG9yX2lkIjoiNDkzMzI0MDY4NTgyNjc2ODEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace30bacb3480b76dacdadd94a3c331e2bb48b0871889382ecfed2279346939655
hovercard-subject-tagpull_request:5342926546
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/442/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:altSummary A replica declared primary (or standalone) found its current source only by the Master_Server_Id of SHOW SLAVE STATUS. A link whose IO thread has not connected reports 0, so no declared ser...
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/442/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F442%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%2F442%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/442/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/442/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/442/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/440-promote-unconnected-linkhttps://github.com/cloudfall-dev/cloudfall/tree/fix/440-promote-unconnected-link
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/442
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/442/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/442/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/442/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/442/files
Find a MariaDB link's source by host and port before a promotion (#440) https://github.com/cloudfall-dev/cloudfall/pull/442/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/442/files
2ffc9e0 Find a MariaDB link's source by host and port before a promotion shipmill-romamo[bot] Nov 16, 2026 https://github.com/cloudfall-dev/cloudfall/pull/442/commits/2ffc9e07a50c41308d2379b4bf7a91741a64050b
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/442/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/442/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/442/files
440-promote-unconnected-link.md https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-9ddaf2f7a5894c3a2b2e73f738866712a5ef4843d4ca4f484f6e81859aa5e218
main.yml https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
mariadb_replication.py https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
replication_check.yml https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
mariadb_pair.py https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
test_s019_mariadb_replication_role.py https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-621512c6040e4c36871b54bc4b37af5dfea96f527e5a357da7a9604cf7bc2035
mariadb_replication.py https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-9d55b972f5438f5660dab737684d047ff3c0c461fdb380166fb64cf0136d84c4
changelog.d/440-promote-unconnected-link.mdhttps://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-9ddaf2f7a5894c3a2b2e73f738866712a5ef4843d4ca4f484f6e81859aa5e218
View file https://github.com/cloudfall-dev/cloudfall/blob/2ffc9e07a50c41308d2379b4bf7a91741a64050b/changelog.d/440-promote-unconnected-link.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/442/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_mariadb/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
View file https://github.com/cloudfall-dev/cloudfall/blob/2ffc9e07a50c41308d2379b4bf7a91741a64050b/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/442/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-764f34a84d335abcb5144a47020ce06f244b3c04b24202d309ab1ec0a17f56d0
engine/ansible/roles/cloudfall_mariadb/filter_plugins/mariadb_replication.pyhttps://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
View file https://github.com/cloudfall-dev/cloudfall/blob/2ffc9e07a50c41308d2379b4bf7a91741a64050b/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/442/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-d04789b94d8f273ad6dc4ac974542c7861c2f8a020f94172914b03550aa32de3
engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
View file https://github.com/cloudfall-dev/cloudfall/blob/2ffc9e07a50c41308d2379b4bf7a91741a64050b/engine/ansible/roles/cloudfall_mariadb/tasks/replication_check.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/442/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-6c41f14c0cf5b380989d74d9a5f0cd4c9f1a87303c76e8e3f5b7fd795a41f5eb
engine/tests/mariadb_pair.pyhttps://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
View file https://github.com/cloudfall-dev/cloudfall/blob/2ffc9e07a50c41308d2379b4bf7a91741a64050b/engine/tests/mariadb_pair.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/442/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
https://github.com/cloudfall-dev/cloudfall/pull/442/files#diff-e0df4fbcc4b259f257f6027ffd8329b8b8a778914d5268314cb91bdca6be8205
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/442/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/442/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.