Actions
Bug #12272
closedgetxattrs calls not working with LIBRADOS_ALL_NSPACES
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OSD
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Noticed this from calls to "rados export" getting ENOENTs on io_ctx->getxattrs while "rados listxattr" CLI could list them fine. Removing "set_namespace(all_namespaces)" during initialisation causes the problem to go away.
Don't know what change caused this, but would have been in the last couple of weeks.
Updated by David Zafman almost 9 years ago
- Status changed from New to In Progress
Updated by David Zafman almost 9 years ago
- Status changed from In Progress to Fix Under Review
Updated by David Zafman almost 9 years ago
The cause was the following incomplete fix. You need to set all_nspaces when beginning the list to get all objects in the pool, but as you operate on each one you need to switch the context to the namespace of the object you are working on.
commit 868f6b7626db4a802b38d1d8ce5135108b322f74
Author: Jianpeng Ma <jianpeng.ma@intel.com>
Date: Tue Jun 23 13:15:00 2015 +0800
rados: For rados export, set all_namespaces when list all objects.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Updated by John Spray almost 9 years ago
- Status changed from Fix Under Review to Resolved
commit 1b0842ba107055dc256ca9cbfc381a6dfa0a2610 Merge: 6612058 ce02801 Author: John Spray <jcspray@gmail.com> Date: Mon Jul 13 08:35:44 2015 +0100 Merge pull request #5201 from ceph/wip-12272 tools: Fix rados export to use io_ctx in the right way Reviewed-by: John Spray <john.spray@redhat.com> commit ce02801b4c7b069de0725723d3d5c667aba40271 Author: David Zafman <dzafman@redhat.com> Date: Fri Jul 10 14:40:34 2015 -0700 tools: Fix rados export to use io_ctx in the right way Cause by: 868f6b7626db4a802b38d1d8ce5135108b322f74 Signed-off-by: David Zafman <dzafman@redhat.com>
Actions