Hello Monasca team,
Please have a look at the job error below.
Indeed your publish-monasca-agent-docker-images fail with a cryptography error [1].
Indeed cryptography has been recently upgraded from version 3.4.8 to the version 35.0.0 [2]. This could explain the reason why this job fails to build rust.
We think that your used docker image needs some updating to solve this issue.
For more details about the experienced issue please have a look at the jobs links below (the forwarded email).
You should also note that the same problem appears with monasca-notification.
Thank you for reading.
[1] ```
2021-10-06 11:22:30.035239 | ubuntu-focal | writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
|
|
2021-10-06 11:22:30.035260 | ubuntu-focal | copying src/cryptography/py.typed -> build/lib.linux-x86_64-3.6/cryptography
|
|
2021-10-06 11:22:30.035282 | ubuntu-focal | creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/_rust
|
|
2021-10-06 11:22:30.035303 | ubuntu-focal | copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/_rust
|
|
2021-10-06 11:22:30.035325 | ubuntu-focal | copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/_rust
|
|
2021-10-06 11:22:30.035358 | ubuntu-focal | copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/_rust
|
|
2021-10-06 11:22:30.035381 | ubuntu-focal | copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/_rust
|
|
2021-10-06 11:22:30.035422 | ubuntu-focal | running build_ext
|
|
2021-10-06 11:22:30.035446 | ubuntu-focal | generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
|
|
2021-10-06 11:22:30.035467 | ubuntu-focal | creating build/temp.linux-x86_64-3.6
|
|
2021-10-06 11:22:30.035489 | ubuntu-focal | running build_rust
|
|
2021-10-06 11:22:30.035510 | ubuntu-focal |
|
|
2021-10-06 11:22:30.035532 | ubuntu-focal | =============================DEBUG ASSISTANCE=============================
|
|
2021-10-06 11:22:30.035553 | ubuntu-focal | If you are seeing a compilation error please try the following steps to
|
|
2021-10-06 11:22:30.035575 | ubuntu-focal | successfully install cryptography:
|
|
2021-10-06 11:22:30.035596 | ubuntu-focal | 1) Upgrade to the latest pip and try again. This will fix errors for most
|
|
2021-10-06 11:22:30.035660 | ubuntu-focal | instructions for your platform.
|
|
2021-10-06 11:22:30.035682 | ubuntu-focal | 3) Check our frequently asked questions for more information:
|
|
2021-10-06 11:22:30.035724 | ubuntu-focal | 4) Ensure you have a recent Rust toolchain installed:
|
|
2021-10-06 11:22:30.035786 | ubuntu-focal |
|
|
2021-10-06 11:22:30.035807 | ubuntu-focal | Python: 3.6.8
|
|
2021-10-06 11:22:30.035828 | ubuntu-focal | platform: Linux-5.4.0-88-generic-x86_64-with
|
|
2021-10-06 11:22:30.035850 | ubuntu-focal | pip: n/a
|
|
2021-10-06 11:22:30.035871 | ubuntu-focal | setuptools: 58.2.0
|
|
2021-10-06 11:22:30.035893 | ubuntu-focal | setuptools_rust: 0.12.1
|
|
2021-10-06 11:22:30.035914 | ubuntu-focal | =============================DEBUG ASSISTANCE=============================
|
|
2021-10-06 11:22:30.035936 | ubuntu-focal |
|
|
2021-10-06 11:22:30.035959 | ubuntu-focal | error: can't find Rust compiler
|
|
2021-10-06 11:22:30.035981 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036009 | ubuntu-focal | If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
|
|
2021-10-06 11:22:30.036040 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036061 | ubuntu-focal | To update pip, run:
|
|
2021-10-06 11:22:30.036082 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036103 | ubuntu-focal | pip install --upgrade pip
|
|
2021-10-06 11:22:30.036124 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036145 | ubuntu-focal | and then retry package installation.
|
|
2021-10-06 11:22:30.036166 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036206 | ubuntu-focal | If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
|
|
2021-10-06 11:22:30.036237 | ubuntu-focal |
|
|
2021-10-06 11:22:30.036259 | ubuntu-focal | This package requires Rust >=1.41.0.
|
|
2021-10-06 11:22:30.036280 | ubuntu-focal | ----------------------------------------
|
|
2021-10-06 11:22:30.036305 | ubuntu-focal | [0m [91m ERROR: Failed building wheel for cryptography
```
--
Hervé Beraud
Senior Software Engineer at Red Hat
irc: hberaud