RBD for ephemeral

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

 



On Tue, May 20, 2014 at 10:27 AM, Pierre Grandin <
pierre.grandin at tubemogul.com> wrote:


> Ok i found the error with my code. So if i try to do the snapshot with the
> image and volume from my previous mail, it works :
>
> import rbd
> import rados
>
> cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
> cluster.connect()
> src_ioctx = cluster.open_ioctx('images')
> dest_ioctx = cluster.open_ioctx('volumes')
>
> rbd.RBD().clone(src_ioctx,
>     '55542add-6dca-4a01-8f17-bc4aed962f5e',
>     'snap',
>     dest_ioctx,
>     'c29a96da-5165-4190-9727-0b728648f6a6_disk',
>     features=rbd.RBD_FEATURE_LAYERING)
>
>
> # rbd -p volumes info c29a96da-5165-4190-9727-0b728648f6a6_disk
> rbd image 'c29a96da-5165-4190-9727-0b728648f6a6_disk':
>         size 2048 MB in 256 objects
>         order 23 (8192 kB objects)
>         block_name_prefix: rbd_data.1d4886b8b4567
>         format: 2
>         features: layering
>         parent: images/55542add-6dca-4a01-8f17-bc4aed962f5e at snap
>         overlap: 2048 MB
>
> Now need to find why nova believe it did not work..
>
> --
> Pierre
>
>>

Found the rootcause.

Most of our flavors currently have a rootdisk size of 0.
It works when using local storage ( you get a root image with the disk size
of the image itself) but does not work when using ceph.

Code excerpt :

# NOTE(cfb): Having a flavor that sets the root size to 0 and having
#  nova effectively ignore that size and use the size of the
#  image is considered a feature at this time, not a bug.


--
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140520/b7c251b6/attachment.htm>


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


  Powered by Linux