Skip to content

ceph: 18.2.1 -> 18.2.4 - #330226

Merged
srhb merged 2 commits into
NixOS:masterfrom
nh2:ceph-18.2.4
Aug 9, 2024
Merged

srhb merged 2 commits into
NixOS:masterfrom
nh2:ceph-18.2.4

Conversation

@nh2

@nh2 nh2 commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor

Description of changes

Changelog looks good: https://docs.ceph.com/en/latest/releases/reef/#v18-2-4-reef

Also includes the race fix from this for now (without my requested comment improvement)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nh2

nh2 commented Jul 26, 2024

Copy link
Copy Markdown
Contributor Author

Currently building.

@nh2
nh2 marked this pull request as ready for review July 26, 2024 18:19
@nh2

nh2 commented Jul 26, 2024

Copy link
Copy Markdown
Contributor Author

VM tests pass on x86_64

@ofborg
ofborg Bot requested review from adevress, johanot and krav July 26, 2024 19:34
@ofborg ofborg Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jul 26, 2024
@NukaDuka

NukaDuka commented Aug 5, 2024 •

Copy link
Copy Markdown
Contributor

While building the bluestore test, I noticed that some ceph-mgr modules failed to load with this error:

monA # [  564.321835] ceph-mgr[1335]: ImportError: cannot import name 'packaging' from 'pkg_resources' (/nix/store/fm6kykmcz8c6542wzrn4rchdpkxxcidv-python3-3.11.9-env/lib/python3.11/site-packages/pkg_resources/__init__.py)
monA # [  564.326565] ceph-mgr[1335]: 2024-08-05T07:20:27.985+0000 7f5b8df829c0 -1 mgr[py] Class not found in module 'prometheus'
monA # [  564.329929] ceph-mgr[1335]: 2024-08-05T07:20:27.985+0000 7f5b8df829c0 -1 mgr[py] Error loading module 'prometheus': (2) No such file or directory
monA # [  568.813149] ceph-mgr[1335]: 2024-08-05T07:20:32.476+0000 7f5b8df829c0 -1 mgr[py] Module snap_schedule has missing NOTIFY_TYPES member
monA # [  583.173740] ceph-mgr[1335]: 2024-08-05T07:20:46.835+0000 7f5b8df829c0 -1 mgr[py] Module nfs has missing NOTIFY_TYPES member
monA # [  583.182422] ceph-mgr[1335]: 2024-08-05T07:20:46.841+0000 7f5b8df829c0 -1 log_channel(cluster) log [ERR] : Failed to load ceph-mgr modules: diskprediction_local, prometheus

This issue indicates that it's caused by setuptools 70.0.0 changing its package structure. While someone did start a PR backporting a fix to Ceph Reef here, it hasn't seen much traction in 3 weeks. We could either wait for it to get merged, or pin setuptools to the latest pre-70.0.0 version (69.5.1).

@nh2

nh2 commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

We could either wait for it to get merged, or pin setuptools to the latest pre-70.0.0 version (69.5.1).

We just include that patch.

I pushed a fix for that. It removes the above ImportError.

@nh2

nh2 commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

Independent of this PR:

I also suspect that this test step is wrong, and may always have been wrong:

#35299 (comment)

@srhb

srhb commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

I also suspect that this test step is wrong, and may always have been wrong:

I think there's a few oddnesses from back then, but the pool deletion really should fail unless mon_allow_pool_deletion is enabled. Perhaps it would be clearer if there was also a test step that must succeed for:

ceph tell mon.* injectargs '--mon-allow-pool-delete=true'
ceph osd pool delete aio-other-test aio-other-test --yes-i-really-really-mean-it

@lejonet

lejonet commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

I also suspect that this test step is wrong, and may always have been wrong:

I think there's a few oddnesses from back then, but the pool deletion really should fail unless mon_allow_pool_deletion is enabled. Perhaps it would be clearer if there was also a test step that must succeed for:

ceph tell mon.* injectargs '--mon-allow-pool-delete=true'
ceph osd pool delete aio-other-test aio-other-test --yes-i-really-really-mean-it

It would've made sense to add a successful deletion to the test too, that I agree with. But as I wrote in #35299 (comment), the mustFail steps was added for completeness. They can definitively be removed, or the step that @srhb suggested be added to make it actually complete.

@srhb
srhb self-requested a review August 9, 2024 08:21

@srhb srhb 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

@srhb
srhb merged commit 6c10105 into NixOS:master Aug 9, 2024
@github-actions

github-actions Bot commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-24.05:

@github-actions

github-actions Bot commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

Git push to origin failed for release-24.05 with exitcode 1

@nh2

nh2 commented Aug 13, 2024

Copy link
Copy Markdown
Contributor Author

I pushed a fix for that. It removes the above ImportError.

Bah, somehow my push didn't work, and this got merged without the fix... I'll make a new PR for that.

@nh2 nh2 mentioned this pull request Aug 13, 2024
3 of 13 tasks
nh2 added a commit to nh2/nixpkgs that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants