Bug 972953

Summary: synced role names are based on spacewalk org ID instead of org name
Product: [Retired] Subscription Asset Manager Reporter: Chris Duryee <cduryee>
Component: SpliceAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: mkovacik
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.3CC: bkearney, jmatthew, jslagle, vkuznets
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 10:55:52 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: 833466    

Description Chris Duryee 2013-06-10 22:01:22 UTC
Description of problem:

This bug was re-introduced as part of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=972146.

After a successful run of spacewalk-splice-tool --spacewalk-sync, the role names in SAM are of the form "Org Admin for satellite-#", instead of "Org Admin for <Name of org>". This works ok if Satellite 5.6 is the gold copy of the role data, but if someone wanted to add a SAM-only user later on with the "Org Admin" role, this would cause some confusion since they'd have to look it up by label instead of name.

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


How reproducible: every time


Steps to Reproduce:
1. run spacewalk-splice-tool --spacewalk-sync
2. observe role names in SAM UI

Actual results: role names are of the form "Org Admin for satellite-#"


Expected results: role names should be "Org Admin for <name of org>"


Additional info: This bug is a result of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=972146, which is more severe.

Comment 1 James Slagle 2013-06-19 13:40:53 UTC
sst commit e11fdaa0c89eab687378a2bc769dc81ee7329146

role names are now named with the satellite org name instead of satellite org id.
handles org renames as well.

Comment 2 Vitaly Kuznetsov 2013-06-21 14:41:22 UTC
Verified in spacewalk-splice-tool-0.24-1.el6sam.x86_64

Comment 4 errata-xmlrpc 2013-10-01 10:55:52 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.

http://rhn.redhat.com/errata/RHEA-2013-1390.html