Bug #16096
closedlibrbd: feature updates are not seen by mirror_image_enable()
0%
Description
I'm making two calls to librbd:
1. feature_update(JOURNALING)
2. mirror_image_enable()
The mirror call [2] fails, reporting that journaling is not enabled. But the rbd client confirms that the feature_update() call did succeed in setting the journaling flag. If before line [2], I add a call to fetch the existing image features, then the mirror_image_enable call succeeds.
It sounds like mirror_image_enable is getting the update but not re-reading the header, while features() does the usual check if there are pending notifications to process before fetching the features.
If this isn't a high-priority issue, would you mind if I work on this?
Updated by Josh Durgin almost 8 years ago
- Project changed from Ceph to rbd
- Subject changed from RBD,MIRROR: feature updates are not seen by mirror_image_enable() to librbd: feature updates are not seen by mirror_image_enable()
- Priority changed from Normal to High
Updated by Jason Dillaman almost 8 years ago
- Backport set to jewel
@Jon: feel free to work on it. All the API external "mirror_image_XYZ" methods within internal.cc should refresh the image if needed.
Updated by Jon Bernard almost 8 years ago
pull request: https://github.com/ceph/ceph/pull/9433
Updated by Jason Dillaman almost 8 years ago
- Status changed from New to Fix Under Review
Updated by Jason Dillaman almost 8 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Jason Dillaman almost 8 years ago
- Copied to Backport #16216: jewel: librbd: feature updates are not seen by mirror_image_enable() added
Updated by Jason Dillaman almost 8 years ago
- Status changed from Pending Backport to Resolved