Skip to content
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

ansible-automation-platform-2.2 fail #220

Closed
rbo opened this issue Jun 7, 2022 · 2 comments
Closed

ansible-automation-platform-2.2 fail #220

rbo opened this issue Jun 7, 2022 · 2 comments

Comments

@rbo
Copy link
Contributor

rbo commented Jun 7, 2022

[root@pluto hetzner-ocp4]# ansible-navigator --ll debug run -m stdout ./ansible/setup.yml
Error: relabeling content in /usr is not allowed
Please review the log for errors.
[root@pluto hetzner-ocp4]# podman run --rm --tty --interactive -v /root/hetzner-ocp4/:/root/hetzner-ocp4/ --workdir /root/hetzner-ocp4 -v /root/hetzner-ocp4/ansible/:/root/hetzner-ocp4/ansible/ -v /root/hetzner-ocp4/inventory/:/root/hetzner-ocp4/inventory/ -v /tmp/ssh-Vc78EysJwC/:/tmp/ssh-Vc78EysJwC/ -e SSH_AUTH_SOCK=/tmp/ssh-Vc78EysJwC/agent.7414 -v /root/.ssh/:/home/runner/.ssh/ -v /root/.ssh/:/root/.ssh/ --group-add=root --ipc=host -v /tmp/ansible-navigator_bbj1bzhj/artifacts/:/runner/artifacts/:Z -v /tmp/ansible-navigator_bbj1bzhj/:/runner/:Z -v /usr/lib/python3.9/site-packages/ansible_runner/display_callback/callback/:/home/runner/.ansible/plugins/callback/:Z --env-file /tmp/ansible-navigator_bbj1bzhj/artifacts/175af65c-bda4-4575-bcba-92c1ae5ea415/env.list --quiet --name ansible_runner_175af65c-bda4-4575-bcba-92c1ae5ea415 --net=host quay.io/redhat-emea-ssa-team/hetzner-ocp4-ansible-ee:devel ansible-playbook /root/hetzner-ocp4/ansible/setup.yml -i /root/hetzner-ocp4/inventory/hosts.yaml
Error: relabeling content in /usr is not allowed
[root@pluto hetzner-ocp4]#

If you run the command as non root user it works.

[root@pluto hetzner-ocp4]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-highavailability-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - High Availability (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/highavailability/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

Repo ID:   ansible-automation-platform-2.2-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Ansible Automation Platform 2.2 for RHEL 8 x86_64 (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/ansible-automation-platform/2.2/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1

[root@pluto hetzner-ocp4]# rpm -qa | grep ansible
python39-ansible-runner-2.2.0-2.el8ap.noarch
ansible-navigator-2.1.0-1.el8ap.noarch
ansible-builder-1.1.0-1.el8ap.noarch
ansible-runner-2.2.0-2.el8ap.noarch
[root@pluto hetzner-ocp4]#
@knumskull
Copy link
Contributor

The issue is reported here ansible/ansible-runner#1088

@rbo
Copy link
Contributor Author

rbo commented Dec 2, 2022

Last tests with AAP 2.2 & 2.3 work very well. We can close the issue.

@rbo rbo closed this as completed Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants