Bug 1540083

Summary: CLI doesn't return with error message when non existing user is add to the group.
Product: OKD Reporter: hardeep <hardeep_lucky>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED DUPLICATE QA Contact: Xingxing Xia <xxia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.xCC: aos-bugs, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-30 14:41:57 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 hardeep 2018-01-30 09:07:10 UTC
Description of problem:
When we pass non existing user_name in "oadm groups add-users <group_name> <user_name>" command, then the command run successfully without any error. Moreover, In output of "oc get users" command, no such user is created.

Version-Release number of selected component (if applicable):
3.6

How reproducible:


Steps to Reproduce:
1.pass non existing user_name in "oadm groups add-users <group_name> <user_name>" command


Actual results:
cursor move to next line, showing user is successfully added to the group.

Expected results:
An error must be returned to user that "no such user exists".

Additional info:

Comment 1 Juan Vallejo 2018-01-30 14:41:57 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=1512807#c2

> This is the expected behavior.  These commands are meant to be order independent and must not care if a user exists.  A user can be purely virtual or created at a later date.  Most users cannot list users anyway, so there is no way to provide this feedback to them.

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