Giter Site home page Giter Site logo

Comments (3)

ccamacho avatar ccamacho commented on June 28, 2024

Hi @bernalhd, we were discussing about it on slack.

Note: Using Ubuntu hypervisor, I ran KubeInit OKD against it and it ran well until the task for update packages on okd-service-01:

failed: [hypervisor-01 -> 10.10.10.10] (item=okd-service-01) => {"ansible_loop_var": "item", "changed": false, "item": "okd-service-01", "module_stderr": "Shared connection to 10.10.10.10 closed.\r\n", "module_stdout": "/bin/sh: /usr/bin/python3: No such file or directory\r\n", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}

The okd-service-01 inventory by default is set to install CentOS 8 Core, which does not have python3 installed by default. It did get some form of python (via KubeInit?), but not in /usr/bin/python3, rather /usr/libexec/platform-python. I did not know that Ansible supported per-host interpreter settings, so I will go with that for a permanent solution. I worked around the issue by setting the inventory interpreter path to match CentOS settings, then symlinked it on the ubuntu host as a test, which worked. As it stands, unless the hypervisor and guests support the same interpreter path, the inventory will require per-host interpreter vars. (I think)

What distro are you using in the hypervisor? I can bet is different from CentOS :)

@bernalhd, Please feel free to ask any questions you have, and if you find any issue also feel free to raise issues in the project's repo (https://www.github.com/kubeinit/kubeinit). Also, it would be awesome if you can star the project to catch up with updates and new features.

from kubeinit.

bernalhd avatar bernalhd commented on June 28, 2024

The workaround works fine! I'm using ubuntu focal (moving to bionic) as hypervisor right now.

from kubeinit.

ccamacho avatar ccamacho commented on June 28, 2024

If anything else is required I'm closing this, please feel free to reopen if more info is required or if you have a different approach also feel free to raise a PR for having it integrated.

from kubeinit.

Related Issues (20)

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.