Bug 2223881 - [RFE] Enable Traces job from Satellite Web UI fails with "Package action failed".
Summary: [RFE] Enable Traces job from Satellite Web UI fails with "Package action fail...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 07:43 UTC by Akshay Kapse
Modified: 2023-08-14 14:16 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35573 0 Normal New Auto-detect whether enabling Tracer will fail 2023-07-20 14:58:11 UTC
Red Hat Issue Tracker SAT-19077 0 None None None 2023-07-20 14:57:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.