-
Notifications
You must be signed in to change notification settings - Fork 40
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
Image creation fails #401
Comments
I assuem you just executed
Do you have
|
I have exactly those RPM's installed : Indeed executed that exact command. I've just ran |
Hi @javree , for some reason it picked up 3.6 in the image. The python36 is pulled in by gdm, OpenHPC and OOD. Can you do
Can you also retry the run by adding the following to ansible.cfg?
|
@javree did the line fixed it for the |
Unfortunately no ; since you mentioned it might have something to do with running the playbook multiple times, I am underway fully redeploying the controller and start fresh. |
So what you're basically telling us is that the Ansible playbooks are not idempotent? I wonder if starting from fresh solved the issue 🤔 |
Will report next week, how a fresh install went |
Sorry for the delay in getting back. Note: On a default Rocky8 install python3.6 is the system default. Ansible on Rocky8 now uses python3.11 but for python3.11 there is no python3.11-dnf package so adding python3.11 will break things elsewhere... I'm seriously wondering how this can work at all |
Just for giggles I tried the compute-ubuntu playbook and that completed fine, so I can at least boot a node soon hopefully... |
I've tried this again, but this time using Rocky Linux 9.3 on the controller and there all appears to work just fine. |
@javree thank you for your feedback! |
There have been quite a few changes in how we prepare (install) the ansible environment before running the playbook. Though these have not been pushed to github yet, i expect (hope) that these issues will belong to the past. Our target for pushing is in about 2-3 weeks from today. We are finalizing the new monitoring stack and H/A. |
Latest greatest has been pushed. |
Very happy to report that with the new release all is well on Rocky 8 as well ! |
Hate to reopen this ... Did a fresh checkout, machine fully up to date Rocky 8.9 marclus0 18:43:54 [root@marclus0 site]# ansible-playbook compute-redhat.yml Gives me TASK [trix-tree : Create Trinity H/A directory structure on controllers] **************************************************************************************************************************************** TASK [init : Install init packages] ***************************************************************************************************************************************************************************** PLAY RECAP ****************************************************************************************************************************************************************************************************** marclus0 18:55:33 [root@marclus0 site]# Again the conflict between python 3.6 (system default) and the ansible python 3.11 |
... one thing truly amazes me every time how something, supposedly be 'generic' like a Rocky install (or redhat, or alma, or...) can be so much different anywhere in the world.... |
a hint - as I encountered the same issue today. Verify your subscription within the image. Also, within the image, run a What happens within rhel 8.10 is in regards to the default baseurl within /etc/rhsm/rhsm.conf Changed the rhsm.conf baseurl to our own satellite server, and it 'stopped' changing to cnd.redhat.com resulting in installing the correct packages. To test - try installing python3-libselinux manually within the the image, before and after 'fixing' the subscription note: redhat.repo is configured correctly at task But right before/during installing the external RPM packages tasks, redhat.repo gets 'overruled' by rhsm.conf Second: please use last note: (I've used ansible 2.15.x on the controller instead) |
Since 14.4 has been out for a while, where we have tested things to the extreme, is this still occuring? -A |
Following the install guide at https://docs.clustervision.com/install/install/ on Rocky Linux 8.9
Controller install went fine, ansible finished without issues
However image creation fails :
TASK [init : Install init packages] ************************************************************************************************
failed: [compute.osimages.luna] (item=python3-libselinux) => {"ansible_loop_var": "item", "changed": false, "item": "python3-libselinux", "msg": "Could not import the dnf python module using /usr/libexec/platform-python (3.6.8 (default, Jan 15 2024, 23:09:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]). Please install
python3-dnf
orpython2-dnf
package or ensure you have specified the correct ansible_python_interpreter. (attempted ['/usr/libexec/platform-python', '/usr/bin/python3', '/usr/bin/python2', '/usr/bin/python'])", "results": []}PLAY RECAP *************************************************************************************************************************
compute.osimages.luna : ok=3 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
controller1 : ok=52 changed=5 unreachable=0 failed=0 skipped=34 rescued=0 ignored=0
[root@marclus0 site]# cat /etc/redhat-release
Rocky Linux release 8.9 (Green Obsidian)
[root@marclus0 site]# rpm -qa | grep -i ansible
ansible-8.3.0-1.el8.noarch
ansible-core-2.15.3-1.el8.x86_64
We've not edited anything in the playbook
The text was updated successfully, but these errors were encountered: