Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade are failing because of python2-kubernetes version change #2081

Closed
alexandre-allard opened this issue Nov 27, 2019 · 1 comment
Closed
Assignees
Labels
kind:bug Something isn't working

Comments

@alexandre-allard
Copy link
Contributor

alexandre-allard commented Nov 27, 2019

Component: salt

What happened: python2-kubernetes has been bump recently in epel repository, this version drops support of some apiVersion like V1beta1Ingress which we use, so we've replaced it with the new one ExtensionsV1beta1Ingress.
Problem is when we downgrade, we try to do some stuff using the downgraded salt-master container, with the current modules which contain the fix and it breaks.

[ERROR   ] Failed to import utils kubernetes_utils, this is due most likely to a syntax error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1534, in _load_module
    mod = imp.load_module(mod_namespace, fn_, fpath, desc)
  File "/var/cache/salt/master/extmods/utils/kubernetes_utils.py", line 286, in <module>
    model=k8s_client.ExtensionsV1beta1Ingress,
AttributeError: 'module' object has no attribute 'ExtensionsV1beta1Ingress'

What was expected: Downgrade are working fine.

Steps to reproduce: Build an iso from the latest development/2.5, install it and try to downgrade to a 2.4.x released version.

Resolution proposal (optional):

@alexandre-allard alexandre-allard added kind:bug Something isn't working moonshot labels Nov 27, 2019
@alexandre-allard alexandre-allard changed the title Upgrade and downgrade are failing because of python2-kubernetes version change Downgrade are failing because of python2-kubernetes version change Nov 27, 2019
@thomasdanan thomasdanan added this to the MetalK8s 2.4.2 milestone Nov 27, 2019
@TeddyAndrieux TeddyAndrieux self-assigned this Dec 12, 2019
@TeddyAndrieux
Copy link
Collaborator

Fixed by #2101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants