Enable-foreman-proxy-plugin-ansible problem

ansible
katello
proxy

#1

Problem:
I would like to enable foreman-proxy-plugin-ansible an am getting the following error:
https://pastebin.com/njquJ6KX

Any idea?

Expected outcome:

Foreman and Proxy versions:
Foreman: 1.20.2
Katello: 3.10

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

logs

#2

The installer error does not tell much, just that the proxy didn’t start. Could you please upload /var/log/foreman-proxy/proxy.log? That should help. Is this deb based on rpm based system? Would it be possible to upgrade to 1.21?


#3

Hi tanks for your replay. It is a rpm based system CentOS 7. Upgrade would i like to do, but we are using Katello and the new Katello is not released yet.

proxy.log:
https://pastebin.com/V40yCf28


#4

I have upgraded to Foreman 1.21 and it looks OK now.
The problem that i get now by starting an Ansible role is:

Blockquote
1:
2:
PLAY [all] *********************************************************************
3:
4:
TASK [Gathering Facts] *********************************************************
5:
fatal: [client.com]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”, “unreachable”: true}
6:
to retry, use: --limit @/tmp/foreman-playbook-c97b706d-38eb-4d2b-8a79-aa0fdc4efd33.retry
7:
8:
PLAY RECAP *********************************************************************
9:
client.com : ok=0 changed=0 unreachable=1 failed=0
10:
11:
Exit status: 4
Blockquote


#5

Hello, that error is probably caused by missing public ssh key of smart proxy on the target machine. It could be something else, but in general, proxy can’t ssh to the target. Double check private key permission, user foreman-proxy must be able to read it. If you don’t use default path, check selinux avc denials.