Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1998477 - Add Simple content access status API to check whether SCA is enabled or disabled in Satellite
Summary: Add Simple content access status API to check whether SCA is enabled or disab...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.12.0
Assignee: Chris Roberts
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-27 10:37 UTC by Avnish Kumar
Modified: 2022-11-16 13:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:32:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35102 0 Normal Ready For Testing Add Simple content access status API to check whether SCA is enabled or disabled in Satellite 2022-06-23 15:45:07 UTC
Github Katello hammer-cli-katello pull 855 0 None open Refs #35102 - Add SCA status check command 2022-06-23 15:45:07 UTC
Github Katello katello pull 10174 0 None open Fixes #35102 - Add SCA status endpoint 2022-06-23 15:48:47 UTC
Red Hat Issue Tracker SAT-8117 0 None None None 2022-06-23 15:45:07 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:33:34 UTC

Description Avnish Kumar 2021-08-27 10:37:48 UTC
Description of problem:
[RFE] Add Simple content access status API to check whether SCA is enabled or disabled in Satellite

Version-Release number of selected component (if applicable):
Satellite 

How reproducible:
Satellite 6.10

Steps to Reproduce:
1. Login to Satellite Web UI
2. Open https://satellite.example.com/apidoc
3. Navigate to Simple content access API resources

Actual results:
We don't have API for simple content access status check

Expected results:
Should able to check simple content access status via API: Enable/Disable

Additional info:
Also request # hammer simple-content-access status

Comment 2 Jonathon Turel 2021-08-30 20:00:30 UTC
Hey Avnish,

You can currently check if an organization has simple content access mode enabled with the /api/organizations/$ID endpoint:

[vagrant@centos7-katello-devel foreman]$ hammer organization show --id 1 | grep "Simple Content Access"
[Foreman] Password for admin: 
Simple Content Access:  Disabled


Is that sufficient enough? I'm concerned about giving multiple ways to discover the same piece of information ie duplication

Comment 4 Jonathon Turel 2021-08-31 13:44:18 UTC
Avnish, you make a good point! I think this RFE is valid because it's cumbersome to have to use two hammer commands for this workflow. Thanks for raising it

Comment 6 Bryan Kearney 2022-07-08 00:04:10 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35102 has been resolved.

Comment 7 Partha Aji 2022-09-29 17:31:34 UTC
# hammer simple-content-access status --organization-id=1
---------------------
SIMPLE CONTENT ACCESS
---------------------
yes                  
---------------------

# curl -k https://`hostname`/katello/api/organizations/1/simple_content_access/status -u admin:changeme
{"simple_content_access":true}

Comment 11 errata-xmlrpc 2022-11-16 13:32:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506


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