[one-users] Ceph image creation works ... but disk is empty (ONE 4.6 beta)

Jaime Melis jmelis at opennebula.org
Tue Apr 1 07:04:17 PDT 2014


Hi Stefan,

bug confirmed, and (hopefully) fixed.

Can you try with this  patch:
https://github.com/OpenNebula/one/commit/d44e5be354c8d7b3d8bf23a3875a3b08b49ee776

That should be applied on /var/lib/one/remotes/downloader.sh (and run
onehost sync).

Please let me know if after applying this patch it works for you. Great
catch, btw :)

cheers,
Jaime



On Mon, Mar 31, 2014 at 9:11 AM, Jaime Melis <jmelis at opennebula.org> wrote:

> Stefan,
>
> I think there is a bug here [1]
>
> As soon as I debug it I'll let you know.
>
> [1]
> https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/downloader.sh#L194
>
> Regards,
> Jaime
>
>
> On Tue, Mar 25, 2014 at 2:12 PM, Stefan Kooman <stefan at bit.nl> wrote:
>
>> Hi List,
>>
>> I've setup a 5 node ceph cluster and 2 kvm nodes. Everything is working
>> fine. Ceph cluster is healthy, etc. I'm able to list images on the
>> frontend, kvm nodes. Datastore is added succesfully:
>>
>> DATASTORE 100 INFORMATION
>> ID             : 100
>> NAME           : ceph_one_ds
>> USER           : oneadmin
>> GROUP          : oneadmin
>> CLUSTER        : -
>> TYPE           : IMAGE
>> DS_MAD         : ceph
>> TM_MAD         : ceph
>> BASE PATH      : /var/lib/one//datastores/100
>> DISK_TYPE      : RBD
>>
>> DATASTORE CAPACITY
>> TOTAL:         : 1T
>> FREE:          : 967.1G
>> USED:          : 42.1G
>> LIMIT:         : -
>>
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : u--
>> OTHER          : ---
>>
>> DATASTORE TEMPLATE
>> BASE_PATH="/var/lib/one//datastores/"
>> BRIDGE_LIST="oned1"
>> CEPH_HOST="ceph1 ceph2 ceph3"
>> CEPH_SECRET="e6ba4d0a-0e20-4a3a-9053-0a7ef50a02b9"
>> CEPH_USER="libvirt"
>> CLONE_TARGET="SELF"
>> DISK_TYPE="RBD"
>> DS_MAD="ceph"
>> LN_TARGET="NONE"
>> POOL_NAME="one"
>> TM_MAD="ceph"
>> TYPE="IMAGE_DS"
>>
>> IMAGES
>> 8
>> 9
>>
>> However, If I import an image from the marketplace it gets registered
>> succesfully. But actually the image is empty:
>>
>> qemu-img info rbd:one/one-9
>> image: rbd:one/one-9
>> file format: raw
>> virtual size: 0 (0 bytes)
>> disk size: unavailable
>>
>> Image details:
>>
>> IMAGE 9 INFORMATION
>> ID             : 9
>> NAME           : centos_ceph_test
>> USER           : oneadmin
>> GROUP          : oneadmin
>> DATASTORE      : ceph_one_ds
>> TYPE           : OS
>> REGISTER TIME  : 03/24 10:47:10
>> PERSISTENT     : Yes
>> SOURCE         : one/one-9
>> PATH           :
>> http://marketplace.c12g.com/appliance/4fc76a938fb81d3517000002/download/0
>> SIZE           : 10G
>> STATE          : rdy
>> RUNNING_VMS    : 0
>>
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : ---
>> OTHER          : ---
>>
>> IMAGE TEMPLATE
>> DEV_PREFIX="hd"
>> MD5="94176fbba17f5efcabb0b05fc55b1a16"
>>
>> I've manually created a qemu-image (qemu-img convert -f qcow2 -O raw
>> debian_squeeze.qcow2 rbd:one/debian2) and made a libvirt xml based on
>> openenbula default.  That image just works. Everything seems to be in
>> order, no errors anywhere, but result in empty images nevertheless.
>>
>> Gr. Stefan
>>
>> --
>> | BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
>> | GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Jaime Melis
>
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | jmelis at opennebula.org
>



-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140401/7898d96a/attachment.htm>


More information about the Users mailing list