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

pacific: radosgw-admin: 'reshard list' doesn't log ENOENT errors #45451

Merged
merged 1 commit into from Dec 6, 2022

Conversation

cfsnyder
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/52958


backport of #43488
parent tracker: https://tracker.ceph.com/issues/52873

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh

@cfsnyder cfsnyder added this to the pacific milestone Mar 16, 2022
@cfsnyder cfsnyder marked this pull request as draft March 17, 2022 12:40
@cfsnyder
Copy link
Contributor Author

jenkins test make check

cbodley
cbodley previously requested changes Oct 5, 2022
Comment on lines 897 to 901
lderr(store->ctx) << "ERROR: access denied to pool " << store->svc()->zone->get_zone_params().reshard_pool
<< ". Fix the pool access permissions of your client" << dendl;
} else if (ret < 0) {
lderr(store->ctx) << "ERROR: failed to list reshard log entries, oid="
<< logshard_oid << " marker=" << marker << " " << cpp_strerror(ret) << dendl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ctx is a member function, so this should be store->ctx() like the code it replaces

build log:

src/rgw/rgw_reshard.cc: In member function ‘int RGWReshard::list(int, std::__cxx11::string&, uint32_t, std::__cxx11::list<cls_rgw_reshard_entry>&, bool*)’:
src/common/dout.h:159:8: error: invalid use of non-static member function ‘virtual ceph::common::CephContext* rgw::sal::RGWRadosStore::ctx()’
   }(cct);        \
        ^
src/common/dout.h:177:20: note: in expansion of macro ‘dout_impl’
 #define lderr(cct) dout_impl(cct, ceph_subsys_, -1) dout_prefix
                    ^~~~~~~~~
src/rgw/rgw_reshard.cc:904:5: note: in expansion of macro ‘lderr’
     lderr(store->ctx) << "ERROR: access denied to pool " << store->svc()->zone->get_zone_params().reshard_pool
     ^~~~~
In file included from src/rgw/rgw_reshard.cc:11:
src/rgw/rgw_sal_rados.h:328:26: note: declared here
     virtual CephContext *ctx(void) { return rados->ctx(); }
                          ^~~

ENOENT errors are expected, especially in fresh clusters, before we've
written any entries to the reshard list shards. avoid logging these
non-fatal ERROR messages:

> -1 ERROR: failed to list reshard log entries, oid=reshard.0000000000 marker= (2) No such file or directory

Fixes: https://tracker.ceph.com/issues/52873

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 952c7c8)

Conflicts:
	src/rgw/rgw_reshard.cc

Cherry-pick notes:
- pacific using lderr vs ldpp_dout
@cbodley
Copy link
Contributor

cbodley commented Dec 5, 2022

jenkins test make check

@cbodley
Copy link
Contributor

cbodley commented Dec 5, 2022

jenkins test api

1 similar comment
@yuriw
Copy link
Contributor

yuriw commented Dec 5, 2022

jenkins test api

@yuriw
Copy link
Contributor

yuriw commented Dec 5, 2022

jenkins test make check

@cbodley
Copy link
Contributor

cbodley commented Dec 5, 2022

check-generated.sh

@yuriw the pacific backport for this make check failure is in #49142

@yuriw
Copy link
Contributor

yuriw commented Dec 5, 2022

jenkins test make check

@cbodley cbodley merged commit 7ed8a1a into ceph:pacific Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants