Commit Graph

17 Commits

Author SHA1 Message Date
Erik Berg eb5fab25a3 Remove remaining traces of Suse
It's been deprecated, time for removal.

Change-Id: I84c441f54c5793fe94b50810cda25f9eacee8c7e
2022-10-24 17:50:19 +02:00
Riccardo Pittau f2825ad1d9 Enable epel repository only when needed
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
2022-02-01 11:04:15 +01:00
Dmitry Tantsur fa3c10c05b bindep: don't try to install epel-release on fedora
Change-Id: I9779897c42fb61f4dd00bc09563207e4aba18d4d
2022-01-25 17:14:29 +01:00
Riccardo Pittau 747d775073 Follow up to "Run bifrost on CentOS Stream 9"
Change-Id: I7c64034e8cf6cc94059ef39b943cb024f021b731
2022-01-13 10:13:34 +01:00
Riccardo Pittau 03b56cf590 Run bifrost on CentOS Stream 9
- Adjust bindep packages
- Remove unneded trousers package
- Enable CRB repository for CentOS Stream 9 for libvirt packages
- Allow ssh-rsa algorithm for CentOS Stream 9
- Create a voting CentOS Stream 9 job

Change-Id: I718262b40e268836812d4c38df79c8d9d8f36513
2022-01-10 15:46:22 +00:00
Dmitry Tantsur a03335c41b test-bifrost: make sure selinux is enforcing
Change-Id: I19bb21ee9496e575e7dace1889315ea2b65c0669
2020-11-06 15:51:34 +01:00
Dmitry Tantsur 73d71b21fe Clean up bindep.txt
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
2020-08-06 12:09:41 +02:00
Dmitry Tantsur a381b0f9c0 install-deps: use system pip and bindep for installing dependencies
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
2020-05-26 12:17:53 +02:00
Julia Kreger 44196ea91b Switch to use a venv by default for testing
Also updates the method to use the python3 native
venv module instead of the virtualenv module.

Change-Id: Iae4248acec0b3bdf48be62134f64356d40375dde
2020-01-15 17:18:54 +00:00
Julia Kreger 4ac553bfbe Add ebtables to bindep
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
2020-01-08 19:30:58 +00:00
Julia Kreger 8a6cdf7d3a Change install-scripts for py3 with Ubuntu
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
2020-01-08 11:30:13 -08:00
Julia Kreger 17299f49e3 Ubuntu Bionic: Add explicit dnsmasq dependency
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
2020-01-08 07:31:53 -08:00
Marcin Juszkiewicz 302857e617 Install mariadb instead of mysql on deb distros
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>
2019-08-18 11:20:26 +02:00
Markos Chandras ec88ca2c86 Add openSUSE Leap 15 jobs
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
2018-11-07 09:25:26 +00:00
Markos Chandras adc20dc59d bindep.txt: Add explicit and missing dependencies
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
2017-06-23 11:50:23 +01:00
Markos Chandras ebbf2c8ca6 bindep.txt: Install the epel-release repo on CentOS
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
2017-06-19 22:12:38 +01:00
Markos Chandras 24d81ac061 Add bindep.txt file
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
2017-06-19 22:12:37 +01:00