Skip to content

[DNM] fix: build squid from noble-proposed - #901

Draft
johnramsden wants to merge 4 commits into
canonical:squidfrom
johnramsden:build/squid-proposed
Draft

johnramsden wants to merge 4 commits into
canonical:squidfrom
johnramsden:build/squid-proposed

Conversation

@johnramsden

@johnramsden johnramsden commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Description

Bump squid to Ceph 19.2.6 by building from noble-proposed, and fix the regressions 19.2.6 exposes in the snap and the test harness.

Fixes #900

Changes

Commit Change Relation to main
fix: build squid from noble-proposed Add noble-proposed as a package repository (archive and ports), assert ceph version 19.2.6 after bootstrap, and replace 0002-Adds-list-command-to-cephfs-mirroring.patch with a decorator-only patch. Squid-specific. Main pulls Tentacle from a PPA (ppa:lmlogiudice/ceph-lp2166817-updates) and dropped the mirroring patch with the Tentacle rebase in #706. 19.2.6 already ships fs snapshot mirror ls but registers it as a write command, so the new patch only switches it to CLIReadCommand to keep MicroCeph's read-only permissions.
test: keep client mounts off the runner's GA kernel Mount CephFS for the replication job from a noble VM on the HWE kernel using the raw client.admin secret, and test the single-node NFS export directly instead of mounting through the host's ceph-common. Same problem as main, different fix. 19.2.6 mints aes256k cephx keys that the 6.8 GA kernel and older ceph-common can't parse. Main solved this in #807 by running the mount client in a Resolute (26.04) VM with ceph-common from the same PPA as the snap. Squid stays on noble runners and has no matching PPA client, so it uses the noble HWE kernel instead.
test: ignore insecure cephx key warnings in the upgrade tests verify_health takes health-check patterns to ignore; the quincy and reef upgrade jobs pass AUTH_INSECURE. Same intent as main, different harness. Main accepts only AUTH_INSECURE_* checks after upgrade in the Robot harness (_legacy_cephx_health_is_compatible, #807). Squid's upgrade tests still live in actionutils.sh, so the same rule is applied there; any other warning or error still fails the gate.
fix: create the initial monmap with msgr2 addresses genMonmap passes --feature-set nautilus --persistent to monmaptool, plus a unit test. Taken from main unchanged: ba55f6f (from #807). Only the genMonmap hunk and TestGenMonmapSetsPersistentNautilusFeature are backported. The test sets up the mock runner inline because squid has no withMockRunner helper.

MON_MSGR2_NOT_ENABLED

On 19.2.6 a freshly bootstrapped cluster raises MON_MSGR2_NOT_ENABLED at mon mkfs, because the initial monmap is v1-only and is only upgraded later by ceph mon enable-msgr2. That warning failed the HEALTH_OK gates in five jobs of https://github.com/canonical/microceph/actions/runs/36945762817 (single node with encryption, NFS, CephFS replication, maintenance mode, AZ crush rules). Main hit the same thing on Ceph 20 and fixed it at the source, so this backports that fix rather than muting the check in the tests. With the persistent Nautilus feature, monmaptool --add writes the first monitor as a v2/v1 address vector, and the check never fires.

Testing

  • make check-unit passes.
  • Comparison in noble LXD containers: the 19.2.6 snap from the run above vs the same snap with only microcephd rebuilt from this branch.
    • Stock: Health check failed: 1 monitors have not enabled msgr2 (MON_MSGR2_NOT_ENABLED) at mkfs, monmap epoch 2.
    • Patched: the check is never raised, and monmap epoch 1 is already [v2:<ip>:3300/0,v1:<ip>:6789/0].
  • Full system tests: this CI run.

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Contributor checklist

Please check that you have:

  • self-reviewed the code in this PR
  • added code comments, particularly in less straightforward areas
  • checked and added or updated relevant documentation
  • added or updated HTML meta descriptions for any new or modified documentation pages (see #643)
  • verified that page title and headings accurately represent page content for new or modified documentation pages
  • checked and added or updated relevant release notes
  • added tests to verify effectiveness of this change

@johnramsden
johnramsden force-pushed the build/squid-proposed branch from 76b907d to 6093274 Compare October 2, 2026 22:14
@johnramsden
johnramsden marked this pull request as ready for review October 3, 2026 00:12
Ceph 19.2.6 already implements fs snapshot mirror ls, so the old
addition patch can reverse list_dirs and duplicate the command handler.
Replace it with a decorator-only patch to preserve read-only command
permissions; keep the MicroCeph orchestrator patch unchanged.

Assisted-by: omp:gpt-6-astra
Signed-off-by: John Ramsden <john.ramsden@canonical.com>
Ceph 19.2.6 mints aes256k cephx keys that the 6.8 GA kernel cannot
parse ("libceph: secret too big 32") and that pre-19.2.6 userspace
cannot read from keyrings, so host-side cephfs mounts fail against a
fresh cluster. The HWE 24.04 kernel (7.0) understands the new keys.

Mount cephfs for the CephFS replication and single-node NFS jobs inside
a noble VM running the HWE kernel, passing the raw client.admin secret
to the kernel so no legacy keyring parser is involved.

Assisted-By: omp:gpt-6-astra
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: John Ramsden <john.ramsden@canonical.com>
Ceph 19.2.6 (the CVE-2025-30156 cephx rework) raises the
AUTH_INSECURE_* health checks against the legacy cephx keys a cluster
carries across an upgrade from an older release, so verify_health
times out waiting for HEALTH_OK right after the quincy and reef
upgrade jobs refresh to the local build.

Teach verify_health to take health-check patterns to ignore and have
the upgrade jobs pass AUTH_INSECURE: the cluster state is left as it
is (keys are rotated and the cluster cut over to aes256k-only
separately, per the upgrade quickref), the gate still fails on any
other warning or error.

Assisted-By: omp:gpt-6-astra
Signed-off-by: John Ramsden <john.ramsden@canonical.com>
Ceph 19.2.6 raises MON_MSGR2_NOT_ENABLED against a v1-only initial monmap.

Upstream commit: canonical@ba55f6f

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: John Ramsden <john.ramsden@canonical.com>
@johnramsden
johnramsden force-pushed the build/squid-proposed branch from 25a11fd to bda3af6 Compare October 3, 2026 00:32

@lmlg lmlg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, cheers!

@johnramsden
johnramsden marked this pull request as draft October 5, 2026 17:52
@johnramsden johnramsden changed the title fix: build squid from noble-proposed [DNM] fix: build squid from noble-proposed Oct 5, 2026
@johnramsden

Copy link
Copy Markdown
Member Author

This work is ready but marking it as [DNM] draft until we have #897 and bootstrap keys ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants