ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
129 stars 152 forks source link

ovirt.ovirt Module not found anymore after #160 and missing sshpass programm for Ansible SSH with Password #161

Closed martin-meier-42 closed 1 year ago

martin-meier-42 commented 1 year ago

Since 4cfa302bbcaaec60009692976c7022f49839418b it seems that pulling the ovirt.ovirt module via git does not work properly.

Also the programm sshpass is missing, that ansible uses to connect to hosts with an SSH password.

MrChausson commented 1 year ago

I have the same issue, I recommend rolling back to a previous image. This is the one I'm using: quay.io/ansible/awx-ee@sha256:971b3ebd2f739925f15d1b3a9957a1513d7d2b8eb51b9275d3715182ff4c95c5

martin-meier-42 commented 1 year ago
$ docker run -it --name awx-ee --user  root quay.io/ansible/awx-ee:latest /bin/bash
bash-5.1$ ansible-galaxy collection install ovirt.ovirt
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/download/ovirt-ovirt-3.0.0.tar.gz to /home/runner/.ansible/tmp/ansible-local-414iv3t2gw/tmpfygb2see/ovirt-ovirt-3.0.0-wl0ery0e
Installing 'ovirt.ovirt:3.0.0' to '/home/runner/.ansible/collections/ansible_collections/ovirt/ovirt'
ovirt.ovirt:3.0.0 was installed successfully
bash-5.1$ dnf info sshpass
Last metadata expiration check: 0:00:08 ago on Thu Feb  2 09:54:24 2023.
Available Packages
Name         : sshpass
Version      : 1.09
Release      : 4.el9
Architecture : x86_64
Size         : 28 k
Source       : sshpass-1.09-4.el9.src.rpm
Repository   : appstream
Summary      : Non-interactive SSH authentication utility
URL          : http://sshpass.sourceforge.net/
License      : GPLv2
Description  : Tool for non-interactively performing password authentication with so called
             : "interactive keyboard password authentication" of SSH. Most users should use
             : more secure public key authentication of SSH instead.

This has been inside the ansible-runner Image that was used before. I am very sure about that.

martin-meier-42 commented 1 year ago

This is how it looks in 21.11.0

$ docker run -it --name awx-ee --user root quay.io/ansible/awx-ee:21.11.0 /bin/bash
bash-4.4# ansible-galaxy collection list

# /usr/share/ansible/collections/ansible_collections
Collection              Version
----------------------- -------
amazon.aws              5.1.0  
ansible.posix           1.5.1  
ansible.windows         1.13.0 
awx.awx                 21.10.2
azure.azcollection      1.14.0 
community.vmware        3.3.0  
google.cloud            1.1.2  
kubernetes.core         2.3.2  
openstack.cloud         1.10.0 
ovirt.ovirt             3.0.0  
redhatinsights.insights 1.0.7  
theforeman.foreman      3.8.0  

bash-4.4# dnf info sshpass
Last metadata expiration check: 0:00:13 ago on Thu Feb  2 10:18:01 2023.
Installed Packages
Name         : sshpass
Version      : 1.09
Release      : 4.el8
Architecture : x86_64
Size         : 43 k
Source       : sshpass-1.09-4.el8.src.rpm
Repository   : @System
Summary      : Non-interactive SSH authentication utility
URL          : http://sshpass.sourceforge.net/
License      : GPLv2
Description  : Tool for non-interactively performing password authentication with so called
             : "interactive keyboard password authentication" of SSH. Most users should use
             : more secure public key authentication of SSH instead.
Mocem1 commented 1 year ago

I have switched to quay.io/ansible/awx-ee:21.11.0. This works

Few weeks ago more tags have been implemented which is very nice

it-pappa commented 1 year ago

pywinrm is also gone in the latest. trying to run 21.11.0 gives me kerberos error

it-pappa commented 1 year ago

https://quay.io/repository/ansible/awx-ee/manifest/sha256:6fadce18ea4cea82ba4aee2d312eca6db66140ff0900211cac0e7d932afacadf?tab=packages

https://quay.io/repository/ansible/awx-ee/manifest/sha256:971b3ebd2f739925f15d1b3a9957a1513d7d2b8eb51b9275d3715182ff4c95c5?tab=packages

Here are the different packages

it-pappa commented 1 year ago

@martin-meier-42 also pywinrm is gone in the latest image.

martin-meier-42 commented 1 year ago

There a several pip3 packages not installed in latest, that are installed in 21.11.0

# docker run -it --name awx-ee --user root quay.io/ansible/awx-ee:latest /bin/bash
bash-5.1# pip3 list|wc -l     
157
# docker run -it --name awx-ee --user root quay.io/ansible/awx-ee:21.11.0 /bin/bash
bash-4.4# pip3 list|wc -l
170

So 13 Packages missing ... i'm going to try to create a list of them

martin-meier-42 commented 1 year ago

This is not a simple diff. There are pip Packages in the new Image that are not in the old one and vice versa.

I assume one would have to know what these packages do in order to make an informed decision about which packages to install.

it-pappa commented 1 year ago

@martin-meier-42 yes, this is a very messy update.

koshrf commented 1 year ago

Still having the same issue, the EE doesn't have the sshpass , tested with the latest pushed 7 hours ago.