Bug 2223881

Summary: [RFE] Enable Traces job from Satellite Web UI fails with "Package action failed".
Product: Red Hat Satellite Reporter: Akshay Kapse <akapse>
Component: Hosts - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.14.0CC: ahumbe, aruzicka, iballou, jlenz, juwatts, paji, rlavi
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akshay Kapse 2023-07-19 07:43:47 UTC
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

Comment 1 Adam Ruzicka 2023-07-19 07:57:04 UTC
This cannot really be addressed in remote execution itself.

Comment 3 Jeremy Lenz 2023-07-20 14:56:59 UTC
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!

Comment 4 Jeremy Lenz 2023-07-20 14:58:09 UTC
Connecting redmine issue https://projects.theforeman.org/issues/35573 from this bug