Actions
Bug #15982
closedPython Librbd API have default value of "features=0", which is causing the Clone operation to Fail
% Done:
0%
Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
clone(self, p_ioctx, p_name, p_snapname, c_ioctx, c_name, features=0, order=None, stripe_unit=0, stripe_count=0)
Below are the scenario's:
1. If i pass 0, i am seeing an Error ( That's expected because Clone would need layering support )
2. If i pass 1 or 3, its working fine. (Layering, Striping )
3. If i don't pass any value, i.e.rbd_inst.clone(p_ioctx,Image,snap,c_ioctx,Clone_Name)
Then i am seeing an Error, because feature flag have to be there having value, other than 0 ( Default is 0 )
4. If i pass "None", its invalid because it requires an integer.
Jason Analysis:
The bug is that the Python API should default to None for features --
and if None is specified it shouldn't attempt to set the features so
that the defaults can be used.
Actions