Description of problem: Enable Traces job from Satellite Web UI fails with "Package action failed" when satellite-client-6-for-rhel-8-x86_64-rpms is not enabled manually. Expecting it should get automatically enable for package installation or there should be notification message on the Satellite Web UI mentioning 'Ensure satellite-client-6-for-rhel-8-x86_64-rpms repository is enabled on the host'. Version-Release number of selected component (if applicable): Satellite 6.14 How reproducible: 100% Steps to Reproduce: 1. Register host and keep "satellite-client-6-for-rhel-8-x86_64-rpms" repository in disabled state (it is actually disabled by default) 2. Go to hosts page on Satellite Web Ui and run 'Enable Traces' job. 3. Actual results: Fails with error "Package action failed" Expected results: Expecting it should get automatically enable for package installation or there should be notification message on the Satellite Web UI mentioning 'Ensure satellite-client-6-for-rhel-8-x86_64-rpms repository is enabled on the host'. Additional info: [root@dhcp130-150 ~]# subscription-manager repos --list ###snapped output showing repository status Repo ID: satellite-client-6-for-rhel-8-x86_64-rpms Repo Name: Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs) Repo URL: https://akapse-rhcap.syslab.pnq2.redhat.com/pulp/content/RedHat/Library/content/dist/layered/rhel8/x86_64/sat-client/6/os Enabled: 0
This cannot really be addressed in remote execution itself.
The 'Enable Traces' job does not automatically enable the client repos. Please note that enabling the client repo is specifically called out as a prerequisite in the docs: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html/managing_hosts/administering_hosts_managing-hosts#enabling-tracer-on-a-host_managing-hosts Doing it for you automatically is something that was discussed upstream in the past (https://projects.theforeman.org/issues/35573) but we never got to it. If it's decided that this is something that's wanted, please turn this BZ into an RFE so it can go through RFE triage and be prioritized accordingly. thanks!
Connecting redmine issue https://projects.theforeman.org/issues/35573 from this bug