Skip to content

Build failure: ceph (on staging) #359723

Closed

Description

@emilazy

Ceph pins an old cryptography for arcane reasons; the rest of the ecosystem has moved beyond it which is causing this failure on staging after the latest batch of Python updates:

┃             ┌─ ⚠ python3.11-trustme-1.2.0 failed with exit code 1 after ⏱ 9s in pytestCheckPhase
┃          ┌─ ⏸ python3.11-requests-toolbelt-1.0.0
┃       ┌─ ⏸ python3.11-cheroot-10.0.1
┃    ┌─ ⏸ python3.11-cherrypy-18.10.0
┃ ┌─ ⏸ python3-3.11.10-env
┃ ⏸ ceph-19.2.0

A trustme test fails because it is calling cryptography methods that are not present in the version Ceph pins. It looks like it’s a convenience library for writing tests, so it’s possible that the fix will be as simple as turning off tests in requests-toolbelt.

cc @nh2

Activity

  1. added
    0.kind: build failure
    on Nov 28, 2024
  2. nh2 commented on Nov 28, 2024

    @nh2
    Contributor

    Linking related previous PR here that introduces the pinning of cryptography:

  3. emilazy commented on Nov 28, 2024

    @emilazy
    MemberAuthor

    Going to maybe look into this tomorrow, but @nh2 do you think it might be a good idea to ping https://tracker.ceph.com/issues/64213 again as it’s been a few months?

  4. shymega commented on Dec 25, 2024

    @shymega
    Member

    This is present in 24.11 - and unstable, which seems to hit cryptography as described in the OP.

  5. jfly commented on Dec 31, 2024

    @jfly
    Contributor

    I took a stab at this, and quickly got out of my depth. I put together a draft PR here: #369622. Perhaps it's a useful starting point for someone.

  6. shymega commented on Dec 31, 2024

    @shymega
    Member

    This is present in 24.11 - and unstable, which seems to hit cryptography as described in the OP.

    Interestingly, it doesn't seem present in 24.11 now - can others confirm? In unstable, I'm still hitting the cryptography build error.

  7. jfly commented on Dec 31, 2024

    @jfly
    Contributor

    Interestingly, it doesn't seem present in 24.11 now - can others confirm?

    Yeah, I'm able to substitute ceph directly from cache.nixos.org when I run nix build nixpkgs/nixos-24.11#ceph.


    For the record, once we get past the Python issue described here (which will be addressed by #369622), we're going to hit a C++ compilation issue. I've filed #369777 to track that.

  8. self-assigned this
    on Dec 31, 2024
  9. jkotran commented on Jan 1, 2025

    @jkotran

    I bumped into this today. I'm new to NixOS. I attempted to evaluate unstable after successfully using 24.11 with the same config. In my case samba4Full is adding ceph to my system. I have no use for ceph per se. I'm using samba4Full because I've been led to believe that it's required to join my machine to an Active Directory domain.

  10. jfly commented on Jan 1, 2025

    @jfly
    Contributor

    @jkotran, I ran into this in the exact same way as you ;)

    One workaround is to disable ceph. From https://github.com/jfly/snow/blob/b72ef014fede1634b5ba0da04685ff1f845e7b29/hosts/kent/printer.nix#L58:

    pkgs.sambaFull.override {
      # Workaround for https://github.com/NixOS/nixpkgs/issues/359723
      enableCephFS = false;
    };
  11. Nairou commented on Jan 1, 2025

    @Nairou
    ┃             ┌─ ⚠ python3.11-trustme-1.2.0 failed with exit code 1 after ⏱ 9s in pytestCheckPhase
    ┃          ┌─ ⏸ python3.11-requests-toolbelt-1.0.0
    ┃       ┌─ ⏸ python3.11-cheroot-10.0.1
    ┃    ┌─ ⏸ python3.11-cherrypy-18.10.0
    ┃ ┌─ ⏸ python3-3.11.10-env
    ┃ ⏸ ceph-19.2.0
    

    Apologies for the noise, but what tool generates this nested dependency list?

  12. SamLukeYes commented on Jan 1, 2025

    @SamLukeYes
    Member

    what tool generates this nested dependency list?

    I think it is nix-output-monitor

  13. jkotran commented on Jan 1, 2025

    @jkotran

    @jkotran, I ran into this in the exact same way as you ;)

    One workaround is to disable ceph. From https://github.com/jfly/snow/blob/b72ef014fede1634b5ba0da04685ff1f845e7b29/hosts/kent/printer.nix#L58:

    pkgs.sambaFull.override {
      # Workaround for https://github.com/NixOS/nixpkgs/issues/359723
      enableCephFS = false;
    };

    @jfly Thank you, that's a dynamite tip!

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

Metadata

Metadata

Assignees

Labels

0.kind: build failure

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions