Katello 4.3. Errata installation uses katello-agent instead of remote execution in default

Problem:
When I try to implement a Errata over “Content” → “Errata” and select a errata to deploy on muliple
host. Always katello-agent is used for installation. I would like to use remote execution insead but I have no choise.

I tried to set remote execution to be default but that does not seem to have any affect.

Could anybody help me with that issue ?

Expected outcome:
Errata should be implemented with remote execution

Foreman and Proxy versions:

  • ansible-collection-theforeman-foreman-3.0.0-1.el8.noarch
  • candlepin-4.1.8-1.el8.noarch
  • candlepin-selinux-4.1.8-1.el8.noarch
  • cp-sd523.gos.oce.net-foreman-client-1.0-1.noarch
  • cp-sd523.gos.oce.net-foreman-proxy-1.0-1.noarch
  • cp-sd523.gos.oce.net-foreman-proxy-client-1.0-1.noarch
  • foreman-3.1.1-1.el8.noarch
  • foreman-cli-3.1.1-1.el8.noarch
  • foreman-debug-3.1.1-1.el8.noarch
  • foreman-dynflow-sidekiq-3.1.1-1.el8.noarch
  • foreman-installer-3.1.1-1.el8.noarch
  • foreman-installer-katello-3.1.1-1.el8.noarch
  • foreman-postgresql-3.1.1-1.el8.noarch
  • foreman-proxy-3.1.1-1.el8.noarch
  • foreman-release-3.1.1-1.el8.noarch
  • foreman-service-3.1.1-1.el8.noarch
  • foreman-vmware-3.1.1-1.el8.noarch
  • katello-4.3.0-1.el8.noarch
  • katello-certs-tools-2.8.2-1.el8.noarch
  • katello-client-bootstrap-1.7.7-1.el8.noarch
  • katello-common-4.3.0-1.el8.noarch
  • katello-debug-4.3.0-1.el8.noarch
  • katello-default-ca-1.0-1.noarch
  • katello-host-tools-3.5.3-1.el8.noarch
  • katello-host-tools-tracer-3.5.3-1.el8.noarch
  • katello-repos-4.3.0-1.el8.noarch
  • katello-server-ca-1.0-1.noarch
  • pulp-client-1.0-1.noarch
  • python38-pulp-ansible-0.10.1-1.el8.noarch
  • python38-pulp-certguard-1.5.1-1.el8.noarch
  • python38-pulp-container-2.9.0-1.el8.noarch
  • python38-pulp-deb-2.16.1-1.el8.noarch
  • python38-pulp-file-1.10.1-1.el8.noarch
  • python38-pulp-python-3.5.2-1.el8.noarch
  • python38-pulp-rpm-3.16.1-2.el8.noarch
  • python38-pulpcore-3.16.1-1.el8.noarch
  • qpid-proton-c-0.35.0-1.el8.x86_64
  • rubygem-foreman-tasks-5.2.0-1.fm3_1.el8.noarch
  • rubygem-foreman_bootdisk-19.0.3-1.fm3_1.el8.noarch
  • rubygem-foreman_maintain-1.0.2-1.el8.noarch
  • rubygem-foreman_puppet-2.0.3-1.fm3_1.el8.noarch
  • rubygem-foreman_remote_execution-5.0.1-1.fm3_1.el8.noarch
  • rubygem-foreman_virt_who_configure-0.5.8-1.fm3_1.el8.noarch
  • rubygem-hammer_cli-3.1.0-1.el8.noarch
  • rubygem-hammer_cli_foreman-3.1.0-1.el8.noarch
  • rubygem-hammer_cli_foreman_puppet-0.0.4-1.fm3_1.el8.noarch
  • rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.fm3_0.el8.noarch
  • rubygem-hammer_cli_foreman_tasks-0.0.17-1.fm3_1.el8.noarch
  • rubygem-hammer_cli_katello-1.3.1-1.el8.noarch
  • rubygem-katello-4.3.0-1.el8.noarch
  • rubygem-pulp_ansible_client-0.10.1-1.el8.noarch
  • rubygem-pulp_certguard_client-1.5.0-1.el8.noarch
  • rubygem-pulp_container_client-2.9.0-1.el8.noarch
  • rubygem-pulp_deb_client-2.16.0-1.el8.noarch
  • rubygem-pulp_file_client-1.10.0-1.el8.noarch
  • rubygem-pulp_ostree_client-2.0.0-0.1.a1.el8.noarch
  • rubygem-pulp_python_client-3.5.2-1.el8.noarch
  • rubygem-pulp_rpm_client-3.16.1-1.el8.noarch
  • rubygem-pulpcore_client-3.16.0-1.el8.noarch
  • rubygem-qpid_proton-0.35.0-1.el8.x86_64
  • rubygem-smart_proxy_pulp-3.2.0-2.fm3_1.el8.noarch

I believe you are hitting this bug: Bug #34420: Applying errata from the errata's page always tries to use katello-agent even when remote_execution_by_default set to true - Katello - Foreman

Its in review, and we hope to include it in a 3.3.2 & 4.4.0

1 Like

Yes that seems to be the issue.
Thanks a lot for you quick help.

what’s up about that ?


but with plugin ansible installed we need that below by default

Patch job tenplate Install Errata - Katello Ansible Default

<% if @host.operatingsystem.family == 'Suse' -%>
<% advisories = input(:errata).split(',').join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "zypper -n install -t patch #{advisories}") %>
<% end -%>
<% if @host.operatingsystem.family == "Redhat" && @host.operatingsystem.major.to_i > 7 %>
<% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "dnf -y update-minimal #{advisories}") %>
<% end -%>
<% if @host.operatingsystem.family == "Redhat" && @host.operatingsystem.major.to_i < 8 %>
<% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "yum -y update-minimal #{advisories}") %>
<% end -%>
<% if @host.operatingsystem.family == "Debian" %>
<% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "apt-get -s dist-upgrade | grep "^Inst" | grep -i securi | awk -F " " {'print $2'} | xargs sudo apt-get install -y") %>
<% end -%>

Ansible REX templates don’t have anything to do with katello-agent. Can you please start a new post with more info about what problem you are trying to solve?