viccross / ansible-playbooks

My collection of Ansible playbooks for various tasks (dominated by Openshift, currently)
Apache License 2.0
2 stars 3 forks source link

ICIC workflow: copy DNF repo files from ELAN #214

Closed viccross closed 3 months ago

viccross commented 4 months ago

It's becoming too difficult to manage the "ICICdeps" file. I thought 1.2.1 of ICIC was working, but it turns out that it only worked because the system I was testing on (in SYD) on had access to the full AppStream repo from the install media.

The issue was exposed when trying an ICIC build in POK. The base image (built in SYD) no longer had access to the install media repos. The ICIC install requires mariadb 10.5, and the ICICdeps set only pulled 10.3 (it must be the default). The test system had access to the media, so could do the module switch to 10.5... but the test in POK did not and could not.

Short of going through the install script virtually line-by-line, it's going to be tough to find all these dependencies. I'm not even sure if it's possible to mirror particular versions of moduled packages. Not to mention the PITA it was to extract the module data from the supplied media and inject it into the mirror repo.

I'm going to introduce a dialog into the ICIC process. Actually I'll just repurpose the "Confirm" pop-up that doesn't really do anything now. I'll read the .repo files in /etc/yum.repos.d/ and have the process copy them over into the cloned guests.

Actually, this will eliminate another elephant-in-the-room: the introduction of RHEL into the customer environment. For the process to work, the repo files copied over will have to be valid. That puts the onus back onto the client to have configured the ELAN to use on-site media. It also means we can switch the ELAN back to RHEL and get that monkey off our back as well.

Corresponding issue in elan-web.

viccross commented 4 months ago

This is in testing in the lab, and works well.