Re: Cinder doesn't work with the current rados python bindings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Could we add to API something like below?

  int rbd_get_default_features(rados_ioctx_t ioctx, uint64_t *features);

or

  uint64_t rbd_get_default_features(rados_ioctx_t ioctx);

(depending on if we want to fail when rbd_default_features is
specified incorrectly in config file).

This would reduced code duplication (rbd::utils::parse_rbd_default_features
and librbd::utils::parse_rbd_default_features), could be used by cinder,
and might be helpful for other users, who would want just to add a
necessary future to the default ones when creating an image:
 
  features = rbd_get_default_features(ioctx);
  features |= RBD_FEATURE_JOURNALING;
  rbd_create(..., features);

On Tue, Dec 13, 2016 at 07:24:02PM -0500, Jason Dillaman wrote:
> I actually already opened a ticket for this [1] and started to fix it
> since I would consider this a release blocker for Kraken.
> 
> [1] http://tracker.ceph.com/issues/18247
> 
> On Tue, Dec 13, 2016 at 7:10 PM, Victor Denisov <vdenisov@xxxxxxxxxxxx> wrote:
> > Yes. This is exactly the line I mean.
> > Is there any chance I can do it myself?
> > What kind of change is required?
> > I can unblock the cinder guy as well as contribute.
> > Let me know if I can be useful.
> >
> > Thanks.
> > V.
> >
> > On Tue, Dec 13, 2016 at 1:38 PM, Jason Dillaman <jdillama@xxxxxxxxxx> wrote:
> >> Are you referring to rbd_default_features [1]? If so, that was a
> >> change with unintentional consequences in the master branch that I
> >> will need to fix before the final Kraken release.
> >>
> >> [1] https://github.com/openstack/cinder/blob/9fcb3bf1ad00913654872858d0cec839a6a2f0c8/cinder/volume/drivers/rbd.py#L152
> >>
> >> On Tue, Dec 13, 2016 at 3:29 PM, Victor Denisov <vdenisov@xxxxxxxxxxxx> wrote:
> >>> Hello,
> >>>
> >>> Who knows where pybind/rados/rados.pyx came from?
> >>> I talked to a guy in the cinder development team - he tried to build
> >>> his code against the latest python bindings from master.
> >>> It looks like the api's changed. Rados.conf_get('features') used to
> >>> return an integer.
> >>> It returns a string right now.
> >>>
> >>> I looked into the git history and I see that pybind.pyx has been where
> >>> it's right now only since February this year. I presume cinder's using
> >>> an older version.
> >>>
> >>> Can someone advise me on how I can track down the changes in python bindings.
> >>>
> >>> Thank you in advance.
> >>>
> >>> Victor.
> >>> --
> >>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> >>> the body of a message to majordomo@xxxxxxxxxxxxxxx
> >>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >>
> >>
> >>
> >> --
> >> Jason
> 
> 
> 
> -- 
> Jason
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Mykola Golub
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux