test-vars: Always build cryptography from source

cryptography may bundle openssl in the wheel and that causes symbol
conflicts if a different openssl is provided by the distribution.
As such, it's probably safer to re-build cryptography ourselves just
to be sure that the correct distro libraries are used. We may want to
revert that once we start building wheel packages for openSUSE and
distribute them in the OpenStack mirrors since every distribution
well then get a proper wheel file for its needs. See related review
https://review.openstack.org/#/c/486305/

Closes-Bug: 1705521
Link: https://github.com/pyca/cryptography/issues/3804
Change-Id: I7e88935acda580d8522a1e6927ea498431d78bda
This commit is contained in:
Markos Chandras 2017-07-24 12:33:55 +01:00
parent f30fe0b07f
commit 321123b018

View File

@ -462,7 +462,15 @@ swift_proxy_server_workers: 2
# This ensures that libvirt-python is built from source. A pre-built # This ensures that libvirt-python is built from source. A pre-built
# wheel can be missing libvirt capabilities from the installed version # wheel can be missing libvirt capabilities from the installed version
# of libvirt-bin, leading to nova-compute failing to start. # of libvirt-bin, leading to nova-compute failing to start.
pip_install_options: "--no-binary libvirt-python" #
# NOTE(hwoarang) cryptography may bundle openssl in the wheel and that
# causes symbol conflicts if a different openssl is provided by the
# distribution. As such, it's probably safer to re-build cryptography
# ourselves just to be sure that the correct distro libraries are used
# see https://github.com/pyca/cryptography/issues/3804
# This keeps poping up every now and then so it might worth keeping this
# around even if the upstream issue is resolved
pip_install_options: "--no-binary libvirt-python,cryptography"
# The URL/path of a constraints file to use when installing the additional pip packages. # The URL/path of a constraints file to use when installing the additional pip packages.
pip_install_upper_constraints: "http://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt?h={{ test_branch }} --constraint http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h={{ test_branch }}" pip_install_upper_constraints: "http://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt?h={{ test_branch }} --constraint http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h={{ test_branch }}"