Bug 1379944 - All remove sub-commands for UserGroup stopped to work
Summary: All remove sub-commands for UserGroup stopped to work
Keywords:
Status: CLOSED DUPLICATE of bug 1395229
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.3.0
Hardware: x86_64
OS: Linux
high
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-28 08:13 UTC by Oleksandr Shtaier
Modified: 2017-01-18 11:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-02 10:26:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.