Administer > Settings > Content :
Use remote execution by default: YES
With the above setting, the default action (install package, update errata) is still trying to use katello-agent, and tasks are failing (as katello-agent is not installed).
Select a content host and navigate to Packages > Installed
Search for packages (e.g. ‘iwl1000’) and click ‘Remove Selected’ after selecting package.
Nothing will happen on the host
Expected actions to use Remote Execution over katello-agent
Foreman and Proxy versions:
If you goto a single host and do an action and use remote execution does it work?
Is the SSH key for foreman-proxy on the clients in the authorized key file? I would be curious to see what it does with the first thing I mentioned, and to see if we are getting a trackback in the /var/log/foreman/production.log
Yes the actions work when I manually do a ‘Remote Execution’ when available, using the foreman-proxy ssh key. As the logs are quite long, I’ve put them on pastebin with a 1 week expiry:
Apply Errata https://pastebin.com/fHuRMMtb
Package Install https://pastebin.com/7PgXJWW5
Installed Packages - Remove Selected https://pastebin.com/RpZPSd0B
The last one just stays on ‘Pending’ in the browser page, and after 10m I’ve cancelled it.
Action Type: Remove package
Started At: Aug 22, 03:16 PM
@imphocused I will start looking into this and test here to see maybe if some regression slipped in. The logs that you posted look good with 0 tracebacks, so will test and report back
I spun up 2 clients and followed this article to get REX going:
I was able to get it working correctly by selecting 2 hosts:
I did set the default as rex and I do see the same behavior as you are seeing, it still tries to use katello-agent. Can you file a redmine issue for this?
Thanks for troubleshooting. I’ve submitted the same as a bug report:
Thanks! @tbrisker can you move that issue to Katello? I tried but I don’t have the perms in redmine to do it. Once there it can be triaged accordingly