Bug 1305478

Summary: calamari API :api/v2/user - reports to input password, but no password field in UI
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: rakesh-gm <rgowdege>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Web UI QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED WONTFIX Docs Contact: Bara Ancincova <bancinco>
Severity: medium    
Priority: unspecified CC: ceph-eng-bugs, hnallurv, kdreyer, rgowdege
Version: 1.3.2   
Target Milestone: rc   
Target Release: 1.3.4   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.Missing password field in Calamari An attempt to create a new user in the Calamari UI fails with the `password field is required` error because the password field is missing from the Calamari UI. To work around this issue, use the Raw data form and create the new user by using the JSON format, for example: ---- { "username": "user", "email": "user@example.com", "password": "password" } ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-18 08:21:49 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:
Bug Depends On:    
Bug Blocks: 1299303, 1372735    
Attachments:
Description Flags
Screen shot showing password is required. none

Description rakesh-gm 2016-02-08 11:21:36 UTC
Created attachment 1122147 [details]
Screen shot showing password is required.

Description of problem:

This rest API: http://10.8.128.8/api/v2/user is for creating users. 
when api call is used with JSON post with the fields username, password and email, the user gets created. But the same does not apply for creating users using calamari UI. we get the error saying that "password field is required" but in calamari UI, there is no password field.  

The error snapshot is attached.

Comment 3 rakesh-gm 2016-02-16 14:17:14 UTC
Hi bara, 

there are two options one with HTML and other is Raw data form. You can choose Media type as application/Json create the users, with json data in the form as shown below :

{
    "username": "abc", 
    "email": "abc",
    "password": "abc123"

}

Comment 5 rakesh-gm 2016-02-22 11:39:23 UTC
That looks fine Bara, thanks a lot.

Comment 6 Christina Meno 2016-05-06 04:11:22 UTC
The preferred method of creating users in 1.3 is http://calamari.readthedocs.io/en/latest/operations/users.html#how-do-i-administer-it

Comment 7 Christina Meno 2018-01-18 08:21:49 UTC
No customer cases associated with an old bug -- closing this. If you think it still needs fixing feel free to re-open