Bug 2060925

Summary: [RFE] Collect the Simple content access mode enable or disable in satellite through sosreport
Product: Red Hat Enterprise Linux 8 Reporter: Ganesh Payelkar <gpayelka>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED CURRENTRELEASE QA Contact: Daniel Záležák <dzalezak>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: agk, bmr, dzalezak, fkrska, jjansky, mhradile, momran, plambri, pmoravec, sbradley, theute
Target Milestone: rcKeywords: FutureFeature, OtherQA, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sos-4.4-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2075073 (view as bug list) Environment:
Last Closed: 2023-03-16 21:33:08 UTC 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:
Bug Depends On:    
Bug Blocks: 2075073    

Description Ganesh Payelkar 2022-03-04 15:06:00 UTC
Description of problem:

We need the information of SCA enable/disable in sosreport when we collect the sos from satellite 6 

Version-Release number of selected component (if applicable):
sos-3.9-5

How reproducible:
satellite 

Steps to Reproduce:
1. Collect the sosreport from the satellite server 
2. Try to find the information of SCA enabled/disable 
3.

Actual results:

Currently, there is no information available through sosreport that satellite is having Simple content enable or disable 

Expected results:


Additional info: 

If SCA disable: 

# su - postgres -c "psql candlepin -c 'select displayname,content_access_mode from cp_owner;'"
 displayname | content_access_mode 
-------------+---------------------
 RedHat      | entitlement
(1 row)


If SCA enable :

#  su - postgres -c "psql candlepin -c 'select displayname,content_access_mode from cp_owner;'"
 displayname | content_access_mode 
-------------+---------------------
 pune        | entitlement
 New         | org_environment
 RedHat      | org_environment

Logs: 

1.7.1.6 - - [04/Mar/2022:09:57:09 -0500] "PUT /katello/api/v2/organizations/4/simple_content_access/enable HTTP/1.1" 202 969 "https://satellite.example.com/subscriptions" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36"


1.7.1.6 - - [04/Mar/2022:10:02:19 -0500] "PUT /katello/api/v2/organizations/4/simple_content_access/disable HTTP/1.1" 202 972 "https://satellite.example.com/subscriptions" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36"

Comment 14 Pavel Moravec 2023-03-16 21:33:08 UTC
Closing the bugzilla as the fix has been delivered in sos-4.5.0-1.el8 released via https://access.redhat.com/errata/RHBA-2023:1300 errata.