I am still stuck here. When I am trying to push a package deployment I am getting this error. I have tried to setup remote execution but so far no luck. I am following this link but it’s not working… please help
Once you have REX up and running, you can simply deploy using REX instead of katello-agent. And as a bonus, you can run other actions through the same stack.
You mentioned REX doesn’t work, do you see any error message?
The task progress at 25% and get stuck in a pending state. I checked /var/log/message but there is nothing there. Is there any specific log file that I should look into?
Click on the dynflow console so we can see what subtask it’s waiting for. If you click on it, we should even see more details. If something hangs, make sure there’s no DNS/firewall issue on your Foreman Proxy machine when it tries to connect to the vm-spacewalk2 machine. For debugging the ssh connection, it’s good to sudo -u foreman-proxy ssh root@vm-spacewalk2, the SSH key is to be found at ˜foreman-proxy/.ssh/
Actually, I am able to successfully ssh to the client from foreman server
[root@fmn01 .ssh]# ssh -i id_rsa_foreman_proxy root@vm-spacewalk02
Web console: https://vm-spacewalk02.***.com:9090/ or https://192.168.1.209:9090/
Last login: Wed Jun 23 17:39:25 2021 from ****
[root@vm-spacewalk02 ~]#
Do I need foreman-tasks service? I don’t see it installed on my foreman server and I saw some reference to it on some old pages so I thought it may have been deprecated
Ok, it seems the task is not picked by the the background processing service. It’s good you verified that once it picks it up, it can connect. How did you install the REX plugin? If you run the install with foreman-installer --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh it should configure everything that’s necessary.
There should be following services running
dynflow-sidekiq@orchestrator.service
dynflow-sidekiq@worker-1.service
dynflow-sidekiq@worker-hosts-queue-1.service
The foreman-tasks service was replaced by these some time ago. Sadly the manual hasn’t been updated for a while, cc @aruzicka (namely Foreman :: Plugin Manuals)
I do see the following services are running on foreman server:
UNIT LOAD ACTIVE SUB DESCRIPTION
dynflow-sidekiq@orchestrator.service loaded active running Foreman jobs daemon - orchestrator on sidekiq
dynflow-sidekiq@worker-hosts-queue.service loaded active running Foreman jobs daemon - worker-hosts-queue on sidekiq
dynflow-sidekiq@worker.service loaded active running Foreman jobs daemon - worker on sidekiq
foreman-proxy.service loaded active running Foreman Proxy
foreman.service loaded active running Foreman
Could you run a job and give us parts of /var/log/foreman/production.log, /var/log/foreman-proxy/proxy.log and /var/log/foreman-proxy/smart_proxy_dynflow_core.log?
The proxy-side logs are not verbose enough to tell us anything apart from the job actually being delegated there. Could you bump log level to debug in /etc/foreman-proxy/settings.yml and /etc/smart_proxy_dynflow_core/settings.yml, restart foreman-proxy and smart_proxy_dynflow_core services and do the same thing once more? Also output of journalctl -u smart_proxy_dynflow_core could be useful.
There you have it. Either you’re using ed25519 keys which are unsupported before foreman 2.5 or your private key is in a format which makes foreman think it is an ed25519 key. Is the first line of the key -----BEGIN OPENSSH PRIVATE KEY-----?
I think I followed this instruction to setup remote execution, It was not working so I may have tried other links to troubleshoot but this is one of them