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 - 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
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:
Embargoed:


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.