René's URL Explorer Experiment


Title: Change a RabbitMQ service's version one node at a time (S-023-12, S-023-13) by shipmill-romamo[bot] · Pull Request #583 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Change a RabbitMQ service's version one node at a time (S-023-12, S-023-13) by shipmill-romamo[bot] · Pull Request #583 · cloudfall-dev/cloudfall

X Title: Change a RabbitMQ service's version one node at a time (S-023-12, S-023-13) by shipmill-romamo[bot] · Pull Request #583 · cloudfall-dev/cloudfall

Description: Plan Serves: G-1, G-3 Files: engine/ansible/roles/cloudfall_rabbitmq/tasks/main.yml, a new tasks/version.yml and tasks/version_node.yml, a new filter_plugins/rabbitmq_version.py, defaults/main.yml, engine/tests/rabbitmq_node.py, a new engine/tests/test_s023_rabbitmq_version_role.py, engine/tests/test_s023_rabbitmq_role.py, changelog.d/509-rabbitmq-rolling-version.md Order: the version refusals first (a downgrade, a series before the installed one or past the next accepted one, on the home's package and on every running member), before any task that changes the host; then the rolling change on the service's home, which runs first in services.yml: each other node in declared order and the home last, each through delegation; before each stop the cluster must be healthy, every stable feature flag is enabled before the first stop, rabbitmq-upgrade await_online_quorum_plus_one and drain run on a node of a cluster of more than one member; the package is unheld, installed at the new version and held again; the node starts, is revived and the cluster is healthy before the next one; after the home, every stable feature flag is enabled and every member must report the new version Proof: S-023-12 and S-023-13 by engine/tests/test_s023_rabbitmq_version_role.py: the order of the nodes with the home last, the refusals of a downgrade and of a skipped series evaluated on the role's own tasks and run for real against the stand-in tools, the steps of a node's turn and their guards, the feature flag and version checks after the home run against the stand-in; a second converge with nothing to change runs no task of the change Tests changed: engine/tests/test_s023_rabbitmq_role.py: it asserted that a version change is refused, which #509 turns into a rolling change (that test now keeps only its renamed-host half, the version refusals moved to the new file because they need the role's filters, which only ansible-playbook loads), and its list of refusals that come before any change gains the refusal of a version change a running member can't make Summary A change of version of a RabbitMQ service used to stop the converge ("this release does not change the version of a node"). It is now the rolling change of S-023, Supported versions. Where it runs. services.yml stays one serial play with the service's home first, because new nodes join a running home. A rolling change needs the home last, so the home runs the whole change on its turn: tasks/version.yml loops over the declared nodes without the home, then the home, and tasks/version_node.yml delegates each node's turn to it. The other nodes find their package already at the declared version on their own turn and change nothing. A node other than the home refuses a version change of its own (for a run with --limit that leaves the home out), naming the home. A node's turn, only when its dpkg-query shows another package version: wait until the cluster is healthy (the cloudfall_rabbitmq_health module of #508: every member running, no alarm, no partition, every quorum queue with a leader and its members online) before the first node stops, rabbitmqctl enable_feature_flag all with other members: rabbitmq-upgrade await_online_quorum_plus_one (stopping the node leaves every quorum queue its majority), then rabbitmq-upgrade drain (its clients disconnect and reconnect to another node; its leaders move) stop, release the hold, apt install rabbitmq-server=X.Y.Z-1 (no start during the install), hold again, start wait for check_running, rabbitmq-upgrade revive with other members, and wait until the cluster is healthy again After the home, enable_feature_flag all again (the flags the new version brings), then list_feature_flags must show no stable flag disabled and cluster_status must show every member at the declared version. A node alone (one declared node, or a cluster whose home has no other member yet) skips the quorum wait, the drain and the revive, so there is no deadlock: its change is a short stop. Refusals, before any task that changes a host, in main.yml's refusal block: the home's installed package and every running member's version (from the cluster_status the majority check already reads) must each allow the declared version: not older (RabbitMQ has no downgrade, which also covers a series before the installed one), and of the installed series or the next accepted series (the lowest series of the role's table above it). The new filter rabbitmq_version.py holds that rule and the readers of cluster_status's versions and list_feature_flags. Second converge. The change is due only on the home and only when the home's package or a running member's version is not the declared one, so a converge with nothing to change includes no task of it (changed=0 as before). Dry run. The node's turn previews the stop, the hold changes and the install (allow_change_held_packages so apt's simulation passes the hold); main.yml's own install of the pinned package is skipped in a dry run of a pending change, since the package is still held at the old version there. Test notes uv run pytest engine/tests/test_s023_rabbitmq_version_role.py: 22 passed. test_s023_rabbitmq_role.py, test_s023_rabbitmq_cluster_role.py, test_s023_rabbitmq_client_access_role.py and test_s023_rabbitmq_backup.py: 76 passed uv run ruff check ., uv run mypy, ANSIBLE_CONFIG=engine/ansible/ansible.cfg uv run ansible-lint engine/ansible: clean The full suite and the Debian converge harness are left to CI; the harness has no RabbitMQ scenario and no multi-node one specs.py coverage --spec 023 lists tests for S-023-12 and S-023-13 Proven offline, as #508 proved S-023-8 to S-023-11: the order (others, home last), each step of a node's turn and its guard, the refusals (run for real by ansible-playbook with the role's filters, including that no later task is reached), feature flags enabled once before the first stop and again after the home (against the stand-in rabbitmqctl), the version check after the home failing when a member reports another version, and the change being due only on the home and only when something differs. Unverified (needs three live Debian 13 hosts with two RabbitMQ releases): the package actually going from one release to the next under the hold; a publisher with confirms that reconnects after drain and loses no message; every node reporting the new version on a real cluster; the exact JSON of RabbitMQ 4.3/4.4's cluster_status versions map ({"rabbit@h1": {"rabbitmq_version": "4.4.1", ...}}) and of list_feature_flags name state stability, which the new filter reads and refuses fail-fast when it doesn't recognise them; whether drain leaves a node in maintenance after its restart (the role runs revive either way). Fixes #509 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: G-1, G-3 Files: engine/ansible/roles/cloudfall_rabbitmq/tasks/main.yml, a new tasks/version.yml and tasks/version_node.yml, a new filter_plugins/rabbitmq_version.py, defaults/main.yml...

X Description: Plan Serves: G-1, G-3 Files: engine/ansible/roles/cloudfall_rabbitmq/tasks/main.yml, a new tasks/version.yml and tasks/version_node.yml, a new filter_plugins/rabbitmq_version.py, defaults/main.yml...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:464a772a-c8f6-19a3-6b7b-b77ecedc53f0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id974C:288D73:1DADF62:28137D4:6B055AA7
html-safe-nonce616653f5549656066909017301d55172664b1ab0eb8e5066482f1a4d6a658580
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzRDOjI4OEQ3MzoxREFERjYyOjI4MTM3RDQ6NkIwNTVBQTciLCJ2aXNpdG9yX2lkIjoiNDIxNTE3NzUyOTk2OTE3MTExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac01b3af422a2bf86e5529c26863178e4805e35a57ae0daaa8954b11d3ed0333d8
hovercard-subject-tagpull_request:5419133936
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/583/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: G-1, G-3 Files: engine/ansible/roles/cloudfall_rabbitmq/tasks/main.yml, a new tasks/version.yml and tasks/version_node.yml, a new filter_plugins/rabbitmq_version.py, defaults/main.yml...
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/583/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F583%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%2F583%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/583/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/583/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/583/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
feat/509-rabbitmq-rolling-versionhttps://github.com/cloudfall-dev/cloudfall/tree/feat/509-rabbitmq-rolling-version
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/583
Commits 4 https://github.com/cloudfall-dev/cloudfall/pull/583/commits
Checks 3 https://github.com/cloudfall-dev/cloudfall/pull/583/checks
Files changed 10 https://github.com/cloudfall-dev/cloudfall/pull/583/files
Change a RabbitMQ service's version one node at a time (S-023-12, S-023-13) https://github.com/cloudfall-dev/cloudfall/pull/583/files#top
Show all changes 4 commits https://github.com/cloudfall-dev/cloudfall/pull/583/files
d4c3ffb Change a RabbitMQ service's version one node at a time (S-023-12, S-0… shipmill-romamo[bot] Nov 20, 2026 https://github.com/cloudfall-dev/cloudfall/pull/583/commits/d4c3ffba18b2376540aee7d501db70a2366e804d
21e7b26 Refuse cluster_status without versions and a feature flag without its… shipmill-romamo[bot] Nov 21, 2026 https://github.com/cloudfall-dev/cloudfall/pull/583/commits/21e7b26e0ae6a1257907a625415f92f7858fb36a
30987b0 Hold the RabbitMQ server package again when its install fails shipmill-romamo[bot] Nov 21, 2026 https://github.com/cloudfall-dev/cloudfall/pull/583/commits/30987b06bcd7730968356c18b918bce24c8fdd78
a51eaf7 Preview a RabbitMQ version change on every node in a dry run shipmill-romamo[bot] Nov 21, 2026 https://github.com/cloudfall-dev/cloudfall/pull/583/commits/a51eaf7705f7ad9459955104120b2b79cefe8666
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/583/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/583/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/583/files
509-rabbitmq-rolling-version.md https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-7ad5efa7c7a84cc9fd2b2e9cde8d00340b32c28111ee6e4e6b566a22c5a00243
main.yml https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-616108c9c5532fe00ddb3b53afc1aa479e19a0d879573e500fdae299dffd71fc
rabbitmq_version.py https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-ef8b00533314bc7c65fcdc14efe1dbaba5fbbab6b1825681e72353a7f04d28f7
main.yml https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
version.yml https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-69429af8c230e65ef57a5ac86913e0ed3b01a67f591df56a78638ee842ecda85
version_node.yml https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-c1c0472c119edf51c854b690b7787f9deba14e7ad7e27661e1cc48f65b99823e
rabbitmq_node.py https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-a228e425078bb891e5aee8683fe120e807427e2d3618d56983ed8959e8c75cae
test_s023_rabbitmq_cluster_role.py https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-05e05287c45f3a2b6cf6255f0ccad9d6929aa79781f892b46122327bb2c6b20f
test_s023_rabbitmq_role.py https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-69d41442406be76de224be4e1b039f1e2acbce24cf7d290fb9b8cc242ac7ef8f
test_s023_rabbitmq_version_role.py https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-395a1c6a1c2574187eb43ec198005c829d4f2311c67364d8a38ca26de8947bf4
changelog.d/509-rabbitmq-rolling-version.mdhttps://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-7ad5efa7c7a84cc9fd2b2e9cde8d00340b32c28111ee6e4e6b566a22c5a00243
View file https://github.com/cloudfall-dev/cloudfall/blob/a51eaf7705f7ad9459955104120b2b79cefe8666/changelog.d/509-rabbitmq-rolling-version.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/583/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_rabbitmq/defaults/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-616108c9c5532fe00ddb3b53afc1aa479e19a0d879573e500fdae299dffd71fc
View file https://github.com/cloudfall-dev/cloudfall/blob/a51eaf7705f7ad9459955104120b2b79cefe8666/engine/ansible/roles/cloudfall_rabbitmq/defaults/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/583/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-616108c9c5532fe00ddb3b53afc1aa479e19a0d879573e500fdae299dffd71fc
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-616108c9c5532fe00ddb3b53afc1aa479e19a0d879573e500fdae299dffd71fc
engine/ansible/roles/cloudfall_rabbitmq/filter_plugins/rabbitmq_version.pyhttps://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-ef8b00533314bc7c65fcdc14efe1dbaba5fbbab6b1825681e72353a7f04d28f7
View file https://github.com/cloudfall-dev/cloudfall/blob/a51eaf7705f7ad9459955104120b2b79cefe8666/engine/ansible/roles/cloudfall_rabbitmq/filter_plugins/rabbitmq_version.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/583/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_rabbitmq/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
View file https://github.com/cloudfall-dev/cloudfall/blob/a51eaf7705f7ad9459955104120b2b79cefe8666/engine/ansible/roles/cloudfall_rabbitmq/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/583/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
https://github.com/cloudfall-dev/cloudfall/pull/583/files#diff-6bf78cba008bee23e42a13e2f886baed2637dba4c8b2d03f740da67a883a249b
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/583/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.