Skip to content

Instantly share code, notes, and snippets.

@bentito
Last active June 2, 2020 19:13
Show Gist options
  • Save bentito/2735edc53dd970da79c1e701cf7a88f7 to your computer and use it in GitHub Desktop.
Save bentito/2735edc53dd970da79c1e701cf7a88f7 to your computer and use it in GitHub Desktop.
Yum install problem packages in CI

Related to this PR: kube-reporting/metering-operator#1213

We don't need to worry about: which inotify-tools ansible openssl They're already available from the Anisble base image.

Notes about installing problem packages python-netaddr, python2-openshift, python2-cryptography:

  1. Does not exist in base-4-5-rhel8.ocp.svc

  2. Don't work from base-4-5.ocp.svc (rhel7), errors like:

 Problem 1: conflicting requests
  - nothing provides python2-ruamel-yaml needed by python2-openshift-1:0.8.11-1.el7.noarch
 Problem 2: conflicting requests
  - package python2-cryptography-1.3.1-3.el7.x86_64 requires python-ipaddress, but none of the providers can be installed
  - package python2-cryptography-1.7.2-1.el7.x86_64 requires python-ipaddress, but none of the providers can be installed
  - package python2-cryptography-1.7.2-1.el7_4.1.x86_64 requires python-ipaddress, but none of the providers can be installed
  - package python2-cryptography-1.7.2-2.el7.x86_64 requires python-ipaddress, but none of the providers can be installed
  - package python-ipaddress-1.0.16-2.el7.noarch is filtered out by modular filtering
 Problem 3: conflicting requests
  - package python-netaddr-0.7.5-7.el7.noarch requires /usr/bin/python, but none of the providers can be installed
  - package python-netaddr-0.7.5-9.el7.noarch requires /usr/bin/python, but none of the providers can be installed
  - package python-2.7.5-16.el7.x86_64 is filtered out by modular filtering
  - package python-2.7.5-38.el7_2.x86_64 is filtered out by modular filtering
  - package python-2.7.5-18.el7_1.1.x86_64 is filtered out by modular filtering 
  1. What happens with these packages when we wipe all repo and just curl in base-4-4.ocp.svc (rhel7)?

    (same problem as 2 above)

  2. Does not exist in base-4-4-rhel8.ocp.svc.

  3. Does base-4-3.ocp.svc (rhel7) help?

    (same problem as 2 above)

@bentito
Copy link
Author

bentito commented Jun 2, 2020

Trying to see if there are more current alternatives for the python-netaddr, python2-openshift, python2-cryptography packages that might be available in the base repos.

@bentito
Copy link
Author

bentito commented Jun 2, 2020

python-openshift looks like a promising replacement for python2-openshift

@bentito
Copy link
Author

bentito commented Jun 2, 2020

But it can't install from base-4.4 nor base-4.4-rhel8

@bentito
Copy link
Author

bentito commented Jun 2, 2020

An option might be to load these libraries from a custom image. It would have to be available in both CI and OSBS builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment