Bug #12864
closedChanging role of user the ownership of its hosts gets removed & unable to edit users organization & location
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1238714
Description of problem:
Changing the role of user results in removal of its ownership from the hosts.
Also not able to edit the organization and location of that user.
Version-Release number of selected component (if applicable):
6.0.8
How reproducible:
Always
Steps to Reproduce:
1. The host profile which was owned by the user.
i.e after changing the role of user (in this case site-manager) the additional information tab of host profile reset the 'owned by' field to 'select an owner' but properties page shows the owner as same user.
2. The default assigned organization & location fields of user gets grayed because of point 1 once the role is changed.
3. After re-submitting the 'owned by' value of host profile, the default assigned organization and location gets removed from the user profile and need to re-add them.
After re-adding the organization and location to the user profile, the user is again visible under desired organization & location.
Also can be set that user as owner to host which owned by it previously.
Actual results:
1. User is not listed under respective organization/location.
2. Host ownership gets changed to 'Admin'
satellite webui --> Hosts --> All Hosts --> Click on host profile --> Edit --> Additional Information --> 'Owned By'
But the value donot change at satellite webui --> Hosts --> All Hosts --> Click on host profile --> Details --> Owner
3. As the user is locked with hosts details page, it not possible to edit it and re-add the organization/location to it.
Expected results:
After changing the role of user the host ownership still should remain same and the user should be present under the selected organization & location.
Additional info: