New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: clarify the error message when trying to create an existed user #5938
Conversation
when creating a user with existing email or key,the error message is "user:xxx exists" eg.execute " radosgw-admin user create --uid=tid --display-name=tname --email=temail", user tid is successfully created. We cannot tell which actually causes the conflict (uid, email or key), so I believe it is necessary to print more detailed error messages. |
👍 |
Modify the error message when trying to create an existed user to indicate which of uid, email or key actually causes the conflict. Signed-off-by: Zeqiang Zhuang <zhuang.zeqiang@h3c.com>
75937e9
to
b8c5d5b
Compare
@zhuangzeqiang looking good, I'll need to get it through testing before merging it |
@yehudasa,thx,and I have another question to ask you. /* |
@zhuangzeqiang I'm not sure about the context of this code, don't we already know that the uid is the same at that point? |
@yehudasa can it to be merged |
rgw: clarify the error message when trying to create an existed user Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Modify the error message when trying to create an existed user to indicate which of uid, email or key actually causes the conflict.
Signed-off-by: Zeqiang Zhuang zhuang.zeqiang@h3c.com