-
Notifications
You must be signed in to change notification settings - Fork 1k
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
requirements: update ansible requirements #7262
requirements: update ansible requirements #7262
Conversation
local testing indicates this is not enough to fix this. I'm not deeply familiar with ansible modules but it seems it is not enough to install ansible.posix. ansible still complains with the same error that it can't resolve module/action |
the So you probably wants to have the same collection than the main branch [2] [1] https://github.com/ansible-collections/community.general/blob/main/plugins/modules/system/selinux_permissive.py |
Thanks for the hint! I was mistaken by the module "selinux" inside ansible.posix, which does different things than selinux_permissive, it seems.. |
Signed-off-by: Sven Kieske <[email protected]>
there's something unclear to me. I might be missing something but actually, I'm unsure what's the issue, @SvenMW With
|
mhm, in my case I'm manually installing :edit: sorry I sent that too early. Are you sure cat Dockerfile
From ubuntu:latest
Run apt update && \
apt -y upgrade
Run apt -y install python3-pip
Run pip install ansible-base==2.10.17 build it with: podman build .
[...] check for ansible community general: podman run --rm -it 82efc1142f8 bash
root@553d8d5097fe:/# ansible --version
ansible 2.10.17
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
root@553d8d5097fe:/# ansible-galaxy collection install community.general
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'community.general:5.3.0' to '/root/.ansible/collections/ansible_collections/community/general'
Downloading https://galaxy.ansible.com/download/community-general-5.3.0.tar.gz to /root/.ansible/tmp/ansible-local-6v7h0ghbe/tmpz8zlj1gf
community.general (5.3.0) was installed successfully So I guess ansible-base is not enough and something else pulls in community.general, something not in the requirements.yml, as I installed it and still was greeted with the error in the linked issue. |
I think what we see in the CI is misleading because collections aren't installed in isolated environments. Once a collection is installed then it's available for any new job. |
I think we need something like this #7264 |
while this seems reasonable - I don't know much about the ceph CI - this linked PR does not address the issue of an incomplete requirements.yml file as afaik proven by me in my previous comment which is needed for real world deployments which do not get installed via tox, like the ceph ci, or custom CIs like mine. |
This linked PR has never been intended for fixing the initial issue you reported. |
@SvenMW can you rebase onto stable-6.0? thanks! |
jenkins test centos-container-lvm_batch |
the errors seen are unrelated. I've tested manually, so I'm merging this as it is. |
Signed-off-by: Sven Kieske [email protected]