Code Monkey home page Code Monkey logo

Comments (5)

leifmadsen avatar leifmadsen commented on July 20, 2024

So I think I identified an issue in this file: https://github.com/ansibleplaybookbundle/es-apb/blob/master/roles/provision-es-apb/templates/elasticsearch-is.yml.j2

If you look in the openshift_v1_image_stream code, then you see that spec_tags should be a list, and not a dictionary. Not sure if this is really a problem, but the tags setup under the spec of the ImageStream spec file seems to be the issue.

The error I'm seeing is the from line, since it seems the code can't process this setup. I haven't dug into the code to understand what it is trying to do, because I should already be in bed :)

from es-apb.

leifmadsen avatar leifmadsen commented on July 20, 2024

Looks like it is trying to replace the spec_docker_image_repository usage as it specifies you should use the spec.tags.from setup. Maybe it's being done wrong? Not sure...

from es-apb.

leifmadsen avatar leifmadsen commented on July 20, 2024

Well, I looked some more before bed, and I'm not sure the APB is really doing anything wrong, especially since I looked at the history, and this has pretty much been like this since it was created over 3 months ago.

I suspect something must have changed in the ansible-kubernetes-modules repository, perhaps in this module: https://github.com/ansible/ansible-kubernetes-modules/blob/master/library/openshift_v1_image_stream_tag.py

from es-apb.

abays avatar abays commented on July 20, 2024

Given the error:

unable to get swagger_type for from in __compare_obj_list() for item {'from': {'kind': 'DockerImage', 'name': 'registry.centos.org/rhsyseng/elasticsearch:6.2.1'}, 'name': '6.2.1'}

It seems to be complaining it can't find from in the swagger types for the loaded class. In this case, we believe the class is:

https://github.com/openshift/openshift-restclient-python/blob/master/openshift/client/models/v1_tag_reference.py

And so the swagger_types are defined at:

https://github.com/openshift/openshift-restclient-python/blob/2a798cd7f2a9d6d36c8d4a50f21f6f780ef860dd/openshift/client/models/v1_tag_reference.py#L33

As one can see, "from" is not a key in this swagger_type dictionary. However, "_from" is present in the dict. Is it possible that there is some sort of key translation that is missing, or that the template being used should be changed such that the item is defined as "_from" instead of "from"? Just thinking out loud.

from es-apb.

leifmadsen avatar leifmadsen commented on July 20, 2024

Since I can't reproduce this now (I guess something new was published that fix this), I'm going to close it out for now. If I run into it again, I'll reopen the issue.

from es-apb.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.