Re: dumpling "ceph" cli tool breaks openstack cinder

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

 



On Mon, 19 Aug 2013, S?bastien Han wrote:
> Hi,
> 
> The new version of the driver (for Havana) doesn't need the CEPH_ARGS argument, the driver now uses the librbd and librados (not the CLI anymore).
> 
> I guess a better patch will result in:
> 
> stdout, _ = self._execute('ceph', '--id', 'self.configuration.rbd_user', 'fsid')
> I'll report the bug. Thanks!
> 
> However I don't know how to fix this with the new CLI.

I opened http://tracker.ceph.com/issues/6052.  This is a simple matter of 
adding a call to rados_conf_parse_env(...).

Thanks!
sage


> 
> Cheers.
> 
> ????
> S?bastien Han
> Cloud Engineer
> 
> "Always give 100%. Unless you're giving blood."
> 
> 
> 
> Phone: +33 (0)1 49 70 99 72 - Mobile: +33 (0)6 52 84 44 70
> Mail: sebastien.han@xxxxxxxxxxxx - Skype : han.sbastien
> Address : 10, rue de la Victoire - 75009 Paris
> Web : www.enovance.com - Twitter : @enovance
> 
> On August 19, 2013 at 1:28:57 PM, ?ystein L?nning Nerhus (nerhus@xxxxx) wrote:
> 
> Hi,
> 
> I just noticed that in dumpling the "ceph" cli tool no longer utilises the "CEPH_ARGS" environment variable.  This is used by openstack cinder to specifiy the cephx user.   Ref: http://ceph.com/docs/next/rbd/rbd-openstack/#configure-openstack-to-use-ceph
> 
> I modifiied this line in /usr/share/pyshared/cinder/volume/driver.py
> 
> <         stdout, _ = self._execute('ceph', 'fsid')
> >         stdout, _ = self._execute('ceph', '--id', 'volumes', 'fsid')
> 
> For my particular setup this seems to be sufficient as a quick workaround.  Is there a proper way to do this with the new tool?
> 
> Note: This only hit when i tried to create a volume from an image (i'm using copy on write cloning).  creating a fresh volume didnt invoke the "ceph fsid" command in the openstack script, so i guess some openstack users will not be affected.
> 
> Thanks,
> 
> ?ystein
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux