Correct COPR repo file generation in Agent container builds (b0.73
)
#3544
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The build used to produce Agent container images for releases uses RPMs pulled from DNF repositories on COPR. The build generates a
.repo
file which allows DNF to access the appropriate Agent RPM. The.repo
file is constructed by the build from a template. The parameters for the template are provided by a.yml
file which the build also generates.In #3479, the
.repo
template was modified, and one of the parameters names was changed fromname
totag
. However, that PR was aimed at Ansible functionality, and the requirements for the Agent release container build were overlooked.The
.repo
file is generated with two entries, and, without the related change, both entries end up with the same label. This results in the second entry superseding the first entry, such that the RPM search doesn't reach thePbench-0.73
repository, and so it doesn't find the Pbench Agent v0.73 RPM. Ideally, this would have resulted in an obvious failure, but, as it happens, the version-independentPbench
repository (which contains RPMs for things likepbench-sysstat
, etc.) contains the RPM for Pbench Agent v0.71, and DNF installs that. And, so the result is a "successful" build of the Agent container but it contains the wrong version of the Pbench Agent.This PR corrects the template for the generation of the
.yml
file. As a result, the.repo
file is generated correctly, which allows DNF to find the correct version of the Pbench Agent RPM, which results in a correctly constructed container image.