The epel repository is used only when we need to build a debian-based
IPA image, so we enable it only in that case for CentOS Stream 8/9.
The configuration procedure is explained in the official guide [1].
[1] https://docs.fedoraproject.org/en-US/epel/#_el9
Change-Id: I57513883c0fa8d6ffb2c70debb81d5e7e6d8b221
Since we have other means of installing packages, bindep should only
be used for the packages required to bootstrap bifrost, i.e. python
and development files. Things like MariaDB should wait.
ebtables and dnsmasq is needed for libvirt on debian systems, so
install it there (and in suse since it's broken now and I cannot test).
Change-Id: I955f559e247ff49f5b84453a8c48462c63413acd
Updating pip was required long ago to work around Ubuntu and CentOS 7
problems. Now even CentOS 8 has pip 9.0 which should be enough for us.
Also moving binary dependencies to bindep and install them before
we try to install Python dependencies (to be able to compile them).
Workarounds is needed for segfault on Ubuntu because of cryptography:
remove python3-cryptography package and avoid --ignore-installed.
This change makes install-deps work on openSUSE again.
Change-Id: Ib9b81075f35068c046880de46b20f98ef71a8d8e
Required for CI testing, libvirt can raise errors about
not being able to initialize the firewall interface if ebtables
is not installed.
The same package name is used across distributions, so it is a nice
change for once.
Change-Id: I3738bb19345d59ab0c5175a9cfd99a91989bbfb6
Reworked the pip install logic so that we run the pypi
pip installer instead of trying to navigate through running
a pip install and upgrade with setuptools additionally.
These steps were orginally only done in order to force
us to a pip version >= 9.0.1, which is now the default
for Ubuntu Bionic.
Change-Id: Ic3a95973338bbd03061d5b3e4080c0d72d6b891a
In bionic, dnsmasq is not automatically pulled in by the
libvirt rpms where as sub-packages which do not contain
the dnsmasq binary are pulled in now.
As such, explicitly adding to the bindep file.
Change-Id: I14c4060746fd58db0fc84a36f10bf55242817166
Debian 'buster' does not ship MySQL - only MariaDB is provided.
All supported platforms provide MariaDB.
This patch replaces MySQL with MariaDB to fix Debian Buster.
Debian Jessie is omitted on purpose - no need to touch
unsupported releases.
Change-Id: I9084f70dee2e1ee6eb1f4933ae0f9ef8809c1adc
Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
We make the following changes in order to support openSUSE Leap 15.0
- Updates the bindep.txt file to match the SUSE family.
- The netstat binary has been moved to net-tools-deprecated
package.
- We fix a bug when checking the status to extra dependencies. The
variable is an array, but the code was only checking the first
entry of the array.
- Replace spaces with '_' on ansible_distribution since openSUSE Leap
15.0 is being reported as 'openSUSE Leap' by Ansible.
Change-Id: I800331e29e0d47a3121229cd66a5814277e34b84
bindep does not understand rpm capabilities yet so the package names
in bindep.txt must match the exact package names. As such, we make them
a bit more explicit to avoid problems like this:
2017-06-23 08:33:01.971410 | ++ /usr/bindep-env/bin/bindep -b -f bindep.txt test
2017-06-23 08:33:02.417209 | + sudo PATH=/usr/sbin:/sbin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/bin:/usr/games zypper --non-interactive install libffi-devel mariadb-server
2017-06-23 08:33:02.520362 | Loading repository data...
2017-06-23 08:33:02.646234 | Reading installed packages...
2017-06-23 08:33:02.942119 | 'libffi-devel' not found in package names. Trying capabilities.
2017-06-23 08:33:02.942198 | 'libffi-devel-gcc5' providing 'libffi-devel' is already installed.
2017-06-23 08:33:02.942221 | 'mariadb-server' not found in package names. Trying capabilities.
2017-06-23 08:33:02.942241 | 'mariadb' providing 'mariadb-server' is already installed.
2017-06-23 08:33:02.942256 | Resolving package dependencies...
[...]
2017-06-23 08:33:03.027481 | + /usr/bindep-env/bin/bindep -b -f bindep.txt test
2017-06-23 08:33:03.482616 | libffi-devel
2017-06-23 08:33:03.482673 | mariadb-server
2017-06-23 08:33:03.504533 | + '[' 3 -gt 2 ']'
2017-06-23 08:33:03.504580 | + set +x
2017-06-23 08:33:03.985539 |
2017-06-23 08:33:03.985622 | ERROR: These requested packages were not installed:
2017-06-23 08:33:03.985633 |
2017-06-23 08:33:03.985644 | libffi-devel
2017-06-23 08:33:03.985655 | mariadb-server
libffi-devel and mariadb-server are capabilities in openSUSE Leap 42.2
but bindep does not realize that the respective packages are already
installed.
Furthermore, when running in OpenStack CI, the scripts/test-bifrost.sh script
performs a DB setup. However, that fails since the mariadb packages
are not installed in time resulting to the following failures:
2017-06-23 08:14:50.227095 | + sudo service mysql start
2017-06-23 08:14:50.247996 | Redirecting to /bin/systemctl start mysql.service
2017-06-23 08:14:50.258852 | Failed to start mysql.service: Unit not found.
2017-06-23 08:14:50.260464 | + sudo service mysqld start
2017-06-23 08:14:50.276637 | Redirecting to /bin/systemctl start mysqld.service
2017-06-23 08:14:50.281428 | Failed to start mysqld.service: Unit not found.
2017-06-23 08:14:50.282917 | + sudo service mariadb start
2017-06-23 08:14:50.298320 | Redirecting to /bin/systemctl start mariadb.service
2017-06-23 08:14:50.301860 | Failed to start mariadb.service: Unit not found.
2017-06-23 08:14:50.303234 | [Zuul] Task exit code: 5
Change-Id: I6e171cf057ccd68bfdcd672df61fa3e55094db19
In preparation for promoting the CI jobs from experimental to
non-voting, we need to have all the necessary RedHat repositories in
place so all packages can be installed from the Ansible playbooks.
Change-Id: Ica0716166a973166bca6f42f88df33b98a44efee
OpenStack CI uses bindep to figure out which packages need to be
installed on the host. However, when a bindep.txt file is not
available, a default one is used which may or may not be good enough
for all cases. It's best to have control over the packages which are
going to be installed on the host and as such we add our own bindep.txt
file.
Change-Id: Idab36eb82d916183f2fb40d326d095c5a8ee34b2