Bug 1107702

Summary: Users permissions on hosts are not working properly with organizations
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: ProvisioningAssignee: Marek Hulan <mhulan>
Status: CLOSED CURRENTRELEASE QA Contact: Ales Dujicek <adujicek>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: adujicek, bbuckingham, cperry, dlobatog, ehelms, jmontleo, lzap, stbenjam, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5664
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:27:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2014-06-10 12:53:53 UTC
Hi , 
After an upgrade from 1.4.1 to 1.5 , users are unable to perform their old tasks (build ,run puppet , edit hosts etc) .
After taking a closer look at the user permissions , I've noticed that old user roles were renamed to "Anonymous_<username>_<oldrole> " .
I really have to sort it out quickly since users can't work . 
I tried removing the new roles and adding back the old ones but it didn't fix everything ,now those "manually edited" users appear in red under:
organizations --> QE-Test->users 
and cannot be associated with the org (qe-test).

Thanks !

Comment 1 Bryan Kearney 2014-06-10 12:53:55 UTC
Created from redmine issue http://projects.theforeman.org/issues/5664

Comment 2 Bryan Kearney 2014-06-10 12:54:00 UTC
Upstream bug assigned to mhulan

Comment 3 Bryan Kearney 2014-06-10 13:04:36 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5664 has been closed

Comment 6 Bryan Kearney 2014-07-14 20:03:07 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5664 has been closed
-------------
Marek Hulán
Migration works correctly. I fixed the scopes on Host object, since it does not include Taxonomix (because host belongs to one taxonomy) we have to define scope manually.

PR is here https://github.com/theforeman/foreman/pull/1438
-------------
Marek Hulán
Applied in changeset commit:82b4749eeddabc542ebf1eaec6fdf2d76d2fdd75.

Comment 9 Ales Dujicek 2014-09-02 14:04:22 UTC
Verified.
User with Host/Managed permissions works well.

Comment 10 Bryan Kearney 2014-09-11 12:27:17 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.