Bug Report
What did you do?
Use cryptography in ppc64le and s290x images based on ansible-operator. Minimal example:
RUN pip3 install python-cryptography-fernet-wrapper
What did you expect to see?
Package cryptography can be used (python-cryptography-fernet-wrapper installs successfully like it did in <= 1.26.0)
What did you see instead? Under which circumstances?
Package 'cryptography' is missing in ppc64le and s390x images (didn't check arm64), causing an installation failure because cryptography is no longer preinstalled and the rust toolchain required to build cryptography from source is missing:
v1.26.1: Pulling from operator-framework/ansible-operator
Status: Downloaded newer image for quay.io/operator-framework/ansible-operator:v1.26.1
---> 3b5e14e0cb90
Step 3/14 : RUN pip3 install python-cryptography-fernet-wrapper
---> Running in 99ac64582c30
Defaulting to user installation because normal site-packages is not writeable
Collecting python-cryptography-fernet-wrapper
Downloading python_cryptography_fernet_wrapper-1.0.4-py3-none-any.whl (14 kB)
Collecting cryptography
Downloading cryptography-39.0.1.tar.gz (603 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: cffi>=1.12 in /usr/local/lib64/python3.8/site-packages (from cryptography->python-cryptography-fernet-wrapper) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/site-packages (from cffi>=1.12->cryptography->python-cryptography-fernet-wrapper) (2.21)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517): started
Building wheel for cryptography (PEP 517): finished with status 'error'
Failed to build cryptography
ERROR: Command errored out with exit status 1:
:
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.8.13
platform: Linux-5.4.0-135-generic-ppc64le-with-glibc2.17
pip: n/a
setuptools: 67.2.0
setuptools_rust: 1.5.2
rustc: n/a
=============================DEBUG ASSISTANCE=============================
error: can't find Rust compiler
Environment
Operator type:
/language ansible
Kubernetes cluster type:
OpenShift
$ operator-sdk version
$ go version (if language is Go)
$ kubectl version
Possible Solution
Additional context
Seemingly a regression caused by #6269
Bug Report
What did you do?
Use
cryptographyin ppc64le and s290x images based on ansible-operator. Minimal example:What did you expect to see?
Package
cryptographycan be used (python-cryptography-fernet-wrapperinstalls successfully like it did in <= 1.26.0)What did you see instead? Under which circumstances?
Package 'cryptography' is missing in ppc64le and s390x images (didn't check arm64), causing an installation failure because
cryptographyis no longer preinstalled and the rust toolchain required to buildcryptographyfrom source is missing:Environment
Operator type:
/language ansible
Kubernetes cluster type:
OpenShift
$ operator-sdk version$ go version(if language is Go)$ kubectl versionPossible Solution
Additional context
Seemingly a regression caused by #6269