Package dependencies, podman, dnf modules

Bug #1910217 reported by Cédric Jeanneret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Unassigned

Bug Description

This is an LP in order to track a mailing list thread - specifically the possible solutions:
http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019625.html

TLDR;
currently podman comes from a specific module stream (container-tools:2.0) while the default stream is container-tools:rhel8. It might happen (and, well, it DOES) that an operator overlook the doc point about the stream switch, and ends up with the wrong podman version.
RPM doesn't know about modules, so we can't get a nice "Requires @container-tools:2.0/podman" or anything close to it.

A current test[1] is about adding some bash script in tripleoclient spec file in order to ensure we get the correct stream, but it's mostly wrong, since it crashes the install once podman is already on the system..
[1] https://review.rdoproject.org/r/#/c/31411/

Another solution is to add some logic to tripleo-ansible in order to switch to the right stream and install podman, instead of adding the "Requires" in tripleoclient spec file - though it might create some other issues at some point.

Revision history for this message
wes hayutin (weshayutin) wrote :

Adding promotion-blocker for visibility to the prod-chain.. this issue is something we should track
thanks

tags: added: promotion-blocker
Revision history for this message
Alan Pevec (apevec) wrote :

> RPM doesn't know about modules
yes, dnf is the component handling modules and you can express dependencies among modules

> so we can't get a nice "Requires @container-tools:2.0/podman" or anything close to it.

this could be expressed if tripleoclient were built as a module and have in its modulemd:
  dependencies:
  - buildrequires:
      platform: [el8]
    requires:
      platform: [el8]
      container-tools: [2.0]

Not suggesting to do that, just for completeness of options :)

Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

The work around tirpleo-repos[1] will actually solve this issue for the upstream, since it will ensure we're using the correct stream version, among different things.

[1] https://galaxy.ansible.com/tripleo/repos

Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.