Comments (3)
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.
The workaround works fine! I'm using ubuntu focal (moving to bionic) as hypervisor right now.
from kubeinit.
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)
- Inventory file not used during Quay image deployment HOT 1
- Docker limit rate in the hypervisors hits the CI HOT 3
- Not able to complete a deployment - failed during the sampleapp validation HOT 7
- Customization for openSUSE Leap 15.3 HOT 9
- OKD cluster failed to deploy - "container already in use" error is seen in bootstrap HOT 7
- How to create additional interfaces on compute nodes HOT 2
- Execute commands in worker nodes HOT 1
- FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_host'"} HOT 4
- DNS forwarding fails for private registry lookup HOT 1
- Kubic is dead for Ubuntu 20.04 HOT 2
- How to access the Web Console once the cluster is deployed? HOT 3
- CentOS Stream 9 guests not booting HOT 6
- Periodic jobs historic data results HOT 2500
- Pull Secret in OCP Cluster HOT 5
- Not having packages for aarch64
- Assign ipv6 address for guest vms HOT 2
- Periodic jobs historic data results HOT 2500
- Openshift VM becomes unreachable after reboot HOT 1
- Periodic jobs historic data results HOT 2500
- Kubeinit 20.04 repository is currently broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubeinit.