Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1379944

Summary: All remove sub-commands for UserGroup stopped to work
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, jcallaha, mhulan, stkachen
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-02 10:26:16 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:

Description Oleksandr Shtaier 2016-09-28 08:13:26 UTC
Description of problem:
It seems that all removal command for usergroups stopped to work as they should

User association/disassociation:
hammer -v -u admin -p changeme --output=csv user-group add-user --id 2 --user aplKuh

Message,Id,Name
The user has been associated,2,test

hammer -v -u admin -p changeme user-group info --id 2
Id:                   2
Name:                 test
Admin:                no
Users:                
    aplKuh
...

hammer -v -u admin -p changeme --output=csv user-group remove-user --id 2 --user aplKuh

Message,Id,Name
The user has been disassociated,2,test

hammer -v -u admin -p changeme user-group info --id 2
Id:                   2
Name:                 test
Admin:                no
Users:                
    aplKuh
...

Role association/disassociation:

hammer -v -u admin -p changeme --output=csv user-group remove-role --role-id="23" --id="3"
Message,Id,Name
User role has been removed,3,PFKJhxtl6w

hammer -v -u admin -p changeme  user-group info --id="3"
Id:                   3
Name:                 PFKJhxtl6w
Admin:                no
...
Roles:                
    dqsTXv
...

Same issue with disassociation for sub-usergroup (e.g. 'hammer user-group remove-user-group --id="5" --user-group="kD17wa3ycf"')

Version-Release number of selected component (if applicable):
6.3 SNAP 2
Seems as direct regression from 6.2
It is not possible to verify whether issue present in 6.3 SNAP 1 as all CLI interaction are blocked by gem conflict issue

How reproducible:
Always

Steps to Reproduce:
1. Create a user, two usergroups and role
2. Try to associate and disassociate entities for one of the usergroups

Actual results:
Commands don't work as they should

Expected results:
Commands work properly

Additional info:

Comment 2 Marek Hulan 2016-12-02 10:26:16 UTC

*** This bug has been marked as a duplicate of bug 1395229 ***