Bug 1674764

Summary: python-kubernetes is not installable on rhel7
Product: [Fedora] Fedora EPEL Reporter: Jeff Layton <jlayton>
Component: python-kubernetesAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: amoralej, jkim, jmontleo, kdreyer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-11 17:19:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Layton 2019-02-11 16:59:42 UTC
The basic problem here seems to be a discrepancy in package availability between rhel7 and centos7. I can install python-kubernetes from epel on centos7 without any trouble, but on RHEL7, I get this (from automated ceph testsuite):

2019-02-11T15:18:42.523 INFO:teuthology.orchestra.run.smithi160.stdout:---> Package python2-kubernetes.noarch 0:8.0.0-6.el7 will be installed
2019-02-11T15:18:42.524 INFO:teuthology.orchestra.run.smithi160.stdout:--> Processing Dependency: python-adal for package: python2-kubernetes-8.0.0-6.el7.noarch
2019-02-11T15:18:42.794 INFO:teuthology.orchestra.run.smithi160.stdout:--> Finished Dependency Resolution
2019-02-11T15:18:42.927 INFO:teuthology.orchestra.run.smithi160.stdout:Error: Package: python2-kubernetes-8.0.0-6.el7.noarch (epel)
2019-02-11T15:18:42.927 INFO:teuthology.orchestra.run.smithi160.stdout:           Requires: python-adal


The python-adal package seems to be part of the base centos7 repo:

Available Packages
Name        : python2-kubernetes
Arch        : noarch
Version     : 8.0.0
Release     : 6.el7
Size        : 1.0 M
Repo        : epel/x86_64
Summary     : Kubernetes Python Client
URL         : https://pypi.python.org/pypi/kubernetes
License     : ASL 2.0
Description : Python client for the kubernetes API.

...but it does not seem to exist in RHEL7.5:

2019-02-11T15:18:42.524 INFO:teuthology.orchestra.run.smithi160.stdout:--> Processing Dependency: python-adal for package: python2-kubernetes-8.0.0-6.el7.noarch
2019-02-11T15:18:42.794 INFO:teuthology.orchestra.run.smithi160.stdout:--> Finished Dependency Resolution
2019-02-11T15:18:42.927 INFO:teuthology.orchestra.run.smithi160.stdout:Error: Package: python2-kubernetes-8.0.0-6.el7.noarch (epel)
2019-02-11T15:18:42.927 INFO:teuthology.orchestra.run.smithi160.stdout:           Requires: python-adal

Do we need to add some layered product under rhel7? Or is this just not present in RHEL7.5 and we need to update the rhel-based ceph qa to a newer release?

Comment 1 Ken Dreyer (Red Hat) 2019-02-11 17:16:16 UTC
Red Hat shipped python-adal here: https://access.redhat.com/errata/RHEA-2018:1042

That package went into the "High Availability" and "Resilient Storage" addons for RHEL 7. It's not in RHEL 7 Server base.

You'll need to enable the High Availability or Resilient Storage Addons on RHEL 7:

  subscription-manager repos --enable "rhel-ha-for-rhel-7-server-rpms"

or 

  subscription-manager repos --enable "rhel-rs-for-rhel-7-server-rpms"

Comment 2 Jeff Layton 2019-02-11 17:19:34 UTC
Got it, thanks Ken. I guess we can call this NOTABUG then.

Comment 3 Ken Dreyer (Red Hat) 2019-02-11 17:28:40 UTC
I think there's still an issue here with EPEL's docs not mentioning these two repos.

I don't even know if they are widely available for RHEL subscribers.

I've emailed https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/L4ZOKCPVTS4NSXYDQ43A2LCWMLCP6CEW/ today about this.

Comment 4 Jason Montleon 2019-02-11 20:09:44 UTC
There's a new python-kubernetes waiting for karma/time that should make it installable without enabling these repos:
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-828640479d

You should be able to install it from epel-testing if you 

It's applying this patch:
https://github.com/kubernetes-client/python/issues/645
https://github.com/kubernetes-client/python-base/pull/108

If you do enable the repos and install adal you can still use the AD functionality, otherwise not.

Comment 5 Ken Dreyer (Red Hat) 2019-02-11 22:25:57 UTC
Jason, that is great! Thanks for letting us know.

Comment 6 Ken Dreyer (Red Hat) 2019-02-11 23:00:51 UTC
As a result of the thread on epel-devel, I've updated the main EPEL wiki page to mention enabling the HA repo in addition to the Optional and Extras repos.