Our foreman is configured to use remote execution by default in the settings:
Use remote execution by default → Yes
When scheduling a remote command through the web interface (Schedule Remote job), everything works as expected. SSH is used for the communication.
When I try to update packages using the following API command, the command fails:
curl -H “Accept:application/json” -H “Content-Type:application/json” --request PUT --insecure --user user:password https://foreman/api/v2/hosts/50/packages/upgrade_all
error message:
Remote actions using katello-agent are deprecated and will be removed in Katello 4.0. You may consider switching to Remote Execution.
I don’t understand why the “Schedule Remote job” works over remote execution and the API call doesn´t.
Thanks in advance.
Michael