Skip to content
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: remove EEXIST error msg for ZoneCreate #8909

Merged
merged 1 commit into from May 10, 2016

Conversation

theanalyst
Copy link
Member

currently for any admin operations like user create etc. you would
always see:

RGWZoneParams::create(): error creating default zone params: (17) File Exists

in stdout as the debug level is set to 0, which doesn't make much sense
for an end user, so increase the debug level when we see an EEXIST, for
other failures we print the error at debug level 0 itself

Signed-off-by: Abhishek Lekshmanan abhishek@suse.com

@liewegas
Copy link
Member

liewegas commented May 3, 2016

@yehudasa @cbodley yeah?

@cbodley
Copy link
Contributor

cbodley commented May 3, 2016

I would prefer to just remove this error message.

There are currently two callers of RGWZoneParams::create(). One is radosgw-admin 'zone create', which is already printing messages on failure: cerr << "failed to create zone " << zone_name << ": " << cpp_strerror(-ret) << std::endl;

The other is RGWZoneParams::create_default(), which is the one that's spamming you with EEXIST. create_default() doesn't print its own error messages, nor should it.

@theanalyst
Copy link
Member Author

@cbodley makes sense, I only kept it around for actual zone create, I'll update this

@theanalyst
Copy link
Member Author

@cbodley updated, also created http://tracker.ceph.com/issues/15720 in case we need a backport

@theanalyst theanalyst changed the title rgw: bump EEXIST debug level for ZoneCreate rgw: remove EEXIST error msg for ZoneCreate May 3, 2016
@cbodley
Copy link
Contributor

cbodley commented May 3, 2016

@theanalyst sorry, I meant remove the dout entirely, not just for the EEXIST case. do you buy that?

currently for any admin operations like user create etc. you would
always see:

`RGWZoneParams::create(): error creating default zone params: (17) File
Exists`

in stdout as the debug level is set to 0, which doesn't make much sense
for an end user, so skip the error message, callers of the function handle
the error message anyway, so we skip it here

Fixes: http://tracker.ceph.com/issues/15720
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
@theanalyst
Copy link
Member Author

@cbodley oh I see, and the calls of zone_params.create_default does handle non -EEXIST errors as well, so yeah makes sense dropping it, updated it

@cbodley
Copy link
Contributor

cbodley commented May 3, 2016

👍

@theanalyst
Copy link
Member Author

@cbodley ping?

@cbodley
Copy link
Contributor

cbodley commented May 10, 2016

merging, but not sure if this qualifies for backport - @yehudasa ?

@cbodley cbodley merged commit 3c210ff into ceph:master May 10, 2016
@yehudasa
Copy link
Member

@cbodley probably yes for backport, but let's wait with this one to 10.2.2

@bobrik
Copy link

bobrik commented Jun 28, 2016

@yehudasa, doesn't look like it was backported 😕

@theanalyst
Copy link
Member Author

@bobrik #9268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants