distributed-system-analysis / pbench

A benchmarking and performance analysis framework
http://distributed-system-analysis.github.io/pbench/
GNU General Public License v3.0
188 stars 108 forks source link

Add support for UBI 8 base image to Pbench Server container image build #3582

Closed webbnh closed 11 months ago

webbnh commented 11 months ago

During a side trip trying to get the Pbench 1.0 Server deployed on RHEL 8.9, we tried to build the Server container image on a UBI 8 base instead of the usual UBI 9 one and ran into troubles. This PR makes the build work.

It turns out that -8 uses a different version of EPEL from what -9 uses, so this changes the container-build.sh script to add the necessary logic to support that.

Also, we tumbled to the fact that the Server no longer depends on util-linux-core (which we couldn't locate easily in the -8 EPEL), so this change removes that dependency from the RPM spec file.

For the record, this change received only the lightest testing: it passes the CI but mostly because the changes are unused in normal operation. If someone actually tries to use a UBI 8-based Server, they will run into problems because the version of SSL is too old to produce the TLS certificates in the conventional way and the version of Python is 3.6 which is too old to run the Server code.

webbnh commented 11 months ago

For those who do not study it (or who cannot remember it), history is doomed to repeat itself: #3461. (Apparently, I didn't carry forward from that quite as much as I should have!...ah, well, second time's the charm.)