Skip to content

el: run the MySQL/MariaDB data upgrade on every hop, with EL9's tool installed - #88

Merged
TusanHomichi merged 1 commit into
mainfrom
claude/project-thread-qturuz
Oct 14, 2026
Merged

TusanHomichi merged 1 commit into
mainfrom
claude/project-thread-qturuz

Conversation

@TusanHomichi

Copy link
Copy Markdown
Member

What this adds

Route: routes/el/centos5-to-alma10.toml on box el/centos5-web; routes/el/centos7-to-alma10.toml on el/centos7-lamp and el/centos7-pyapp
New fixes:

  • el6-mysql-upgrade-data (centos6): runs mysql_upgrade on MySQL 5.1, so the 5.0 system tables get upgraded
  • el7-mariadb-upgrade-data (centos7): the same on MariaDB 5.5. Its when is mysql-server, because when is read before the hop, on EL6.

Changed fixes: el9-mariadb-config and el10-mariadb-upgrade now install mariadb-server-utils before mysql.upgrade-data.
Claims issue: follow-up to #75 / #79 (found by remi's CentOS 7 VM run)

Before: EL9's mariadb-upgrade lives in mariadb-server-utils, which the server only weakly requires. With weak deps off it was never installed, so mysql.upgrade-data found the stale EL7 5.5 mysql_upgrade. The | tail hid its failure, and the data files were never upgraded on any EL route.

After: the real tool runs. That exposed a second gap. No hop had ever upgraded el/centos5-web's data, so MariaDB 10.5 met MySQL 5.0 system tables. Its mariadb-upgrade hung for 30 minutes in ALTER TABLE tables_priv ("Rename result table"). Now every hop upgrades one major version: 5.0 → 5.1 → 5.5 → 10.5 → 10.11.

Two follow-up PRs come next:

  • a spec PR making mysql.upgrade-data fail unless the data comes out stamped with the server's version;
  • a fix PR keeping polkit where tuned needs it.

Model

none: hand-written from the chroot replays and remi's VM run

Evidence

route box result reached fixes fired minutes
routes/el/centos5-to-alma10.toml el/centos5-dns pass AlmaLinux release 10.2 (Lavender Lion) 16 8
routes/el/centos5-to-alma10.toml el/centos5-web pass AlmaLinux release 10.2 (Lavender Lion) 34 15
routes/el/centos7-to-alma10.toml el/centos7-lamp pass AlmaLinux release 10.2 (Lavender Lion) 24 7
routes/el/centos7-to-alma10.toml el/centos7-pyapp pass AlmaLinux release 10.2 (Lavender Lion) 11 8

Decoy check: passed

A --steps replay of centos5-web shows each upgrade tool exiting 0:

  • 5.1: mysql_fix_privilege_tables ... OK
  • 10.5: Phase 7/7 ... OK
  • 10.11: Phase 8/8 ... OK

Self-review (AGENTS.md step 5)

  • Every precondition is as narrow as I can make it, and ./wend verify found no decoy hits
  • Every fix fixes the real problem, not the symptom a check inspects
  • One problem per fix; load-bearing steps (like repair) kept
  • No edits to tools/, adapters/, SPEC.md, .github/, other boxes' roles, or other people's fixes (except fires_on). Two existing fixes get an install step: they are wend's own, curated here.
  • Commits are signed off (git commit -s)

🤖 Generated with Claude Code

https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc


Generated by Claude Code

…l installed

EL9's mariadb-upgrade ships in mariadb-server-utils, which the server only
weakly requires. With weak deps off it was never installed, so
mysql.upgrade-data found the stale EL7 mysql_upgrade and the data files were
never upgraded on any EL route. Both data-upgrade fixes now install it first.

With the upgrade really running, el/centos5-web hung on EL9: no hop had ever
upgraded its data, so MariaDB 10.5 met MySQL 5.0 system tables and stalled
converting mysql.tables_priv. el6-mysql-upgrade-data and
el7-mariadb-upgrade-data upgrade on the centos6 and centos7 hops, so each step
is one major version (5.0 -> 5.1 -> 5.5 -> 10.5 -> 10.11).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Signed-off-by: Claude <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T03:05:41.962583Z eda7755 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

Independent Claude review: SIGN-OFF on eda7755.

What the review checked:

  • tools/check.py passes, and the new ids are pinned in hop order. el7-mariadb-upgrade-data runs before mariadb55-rehash-app-password, so the user table is upgraded before it is rewritten.
  • Both new fixes gate on installed = "mysql-server". That's right because when is evaluated before the hop: on EL5 and EL6 the server package is still mysql-server.
  • No decoy hits: centos5-dns has no mysql-server, and all four replays pass.
  • mysql.upgrade-data works on 5.1 and 5.5. DB_DAEMON finds /usr/libexec/mysqld, and root has no password on the box.

Non-blocking findings, all already present on main:

  1. tools/backends.py:519: the pipe through tail drops the tool's exit code. Taken up in the next spec PR: mysql.upgrade-data will fail unless the data comes out stamped with the running server's version.
  2. The upgrade tool has no timeout of its own, though the harness's per-step timeout still fails the hop. The spec PR adds one.
  3. The fix fires on a box where mysql-server is installed but was never initialised. Left as is: the file predicate only takes /etc paths, and main already fails the same way at alma9.

Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eda7755db8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread fixes/el/alma9/el9-mariadb-config.toml Resolved
Comment thread routes/el/centos7-to-alma10.toml Resolved
@github-actions github-actions Bot added the needs-claude-review Waiting on the Claude review layer label Oct 14, 2026
@TusanHomichi
TusanHomichi merged commit b893218 into main Oct 14, 2026
10 checks passed
@TusanHomichi
TusanHomichi deleted the claude/project-thread-qturuz branch October 14, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-claude-review Waiting on the Claude review layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants