Bug 1703148

Summary: subscription-manager cockpit: registration via cockpit to an org with "contentAccessMode"="org_environment" is broken
Product: Red Hat Enterprise Linux 8 Reporter: Chris Snyder <csnyder>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0CC: candlepin-bugs, cdonnell, csnyder, jhnidek, rhsm-qe, skallesh
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.26.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1702753 Environment:
Last Closed: 2020-04-28 16:54:49 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: 1702753    
Attachments:
Description Flags
Ignoring request for auto-attach is now displayed after system is registered none

Comment 3 Shwetha Kallesh 2020-02-05 08:14:58 UTC
Created attachment 1657802 [details]
Ignoring request for auto-attach is now displayed after system is registered

Verification:

Now the message "Ignoring request to auto-attach.It is disabled for org "snowwhite"." is displayed
Subscription-manager and system purpose status are both "disbaled". Please refer the attachment. Hence marking bug as verified


[root@kvm-04-guest02 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.8.0-1
subscription management rules: 5.37
subscription-manager: 1.26.10-1.el8


}[root@kvm-04-guest02 ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT --data '{"contentAccessMode":"org_environment"}' --header 'accept: application/json' --header 'content-type: application/json' https://shwetha-wrkstation.usersys.redhat.com:8443/candlepin/owners/snowwhite
{
  "created" : "2020-02-05T07:28:07+0000",
  "updated" : "2020-02-05T07:38:35+0000",
  "id" : "8ac6a34170143fa90170143fc22e0002",
  "key" : "snowwhite",
  "displayName" : "Snow White",
  "parentOwner" : null,
  "contentPrefix" : null,
  "defaultServiceLevel" : null,
  "upstreamConsumer" : null,
  "logLevel" : null,
  "autobindDisabled" : false,
  "contentAccessMode" : "org_environment",
  "contentAccessModeList" : "entitlement,org_environment",
  "lastRefreshed" : "2020-02-05T07:29:21+0000",
  "href" : "/owners/snowwhite"
}

Comment 5 errata-xmlrpc 2020-04-28 16:54:49 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, 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/RHBA-2020:1849