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 ***