[one-users] create image error with ceph

alan.zhang at linuxwind.org alan.zhang at linuxwind.org
Tue Jun 4 05:00:19 PDT 2013


Thanks for your help,but i work on centos 6.4 ,how can i upgrade 
librbd?

upgrade ceph-devel , I have install the lasted version.

Could you tell me in detail?




于 2013-06-04 11:06, George Kissandrakis 回复:
> I had the same problem
> 
> When I run by hand the command
> qemu-img convert -O rbd /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4
> rbd:images/one-15
> 
> i had a core dump with librbd.so.
> When i upgraded librbd (OS library) the problem was fixed 
> 
> On Tue, Jun 4, 2013 at 8:36 AM, <alan.zhang at linuxwind.org> wrote:
> 
>> Hi,
>> 
>> I have install ceph 0.61.2 ,opennebulua 4.0.1 on centos 6.4, but when 
>> create a datastore i got some error, there are my opennebula,ceph pool 
>> infomations:
>> 
>> $ onedatastore list
>>   ID NAME                      CLUSTER         IMAGES TYPE DS       
>> TM
>>    0 system                    -                    0 sys  -       
>>  shared
>>    1 default                   bj-cluster-vms-      1 img  fs       
>> shared
>>    2 files                     bj-cluster-vms-      0 fil  fs       
>> ssh
>>  104 bj-ceph-001               bj-cluster-vms-      2 img  ceph     
>> ceph
>> 
>> $ onedatastore show 104
>> DATASTORE 104 INFORMATION
>> ID             : 104
>> NAME           : bj-ceph-001
>> USER           : oneadmin
>> GROUP          : oneadmin
>> CLUSTER        : bj-cluster-vms-001
>> TYPE           : IMAGE
>> DS_MAD         : ceph
>> TM_MAD         : ceph
>> BASE PATH      : /var/lib/one/datastores/104
>> DISK_TYPE      : RBD
>> 
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : u--
>> OTHER          : ---
>> 
>> DATASTORE TEMPLATE
>> DS_MAD="ceph"
>> HOST="bj-nebula-prd-01"
>> POOL_NAME="images"
>> TM_MAD="ceph"
>> TYPE="IMAGE_DS"
>> 
>> IMAGES
>> 15
>> 
>> And this is ceph pool info:
>> # ceph osd lspools
>> 0 data,1 metadata,2 rbd,3 volumes,4 images,
>> 
>> When i create image with ceph ,I got some error like this:
>> 
>> Tue Jun  4 13:56:40 2013 [ReM][D]: Req:960 UID:0 
>> VirtualMachinePoolInfo invoked, -2, -1, -1, -1
>> Tue Jun  4 13:56:40 2013 [ReM][D]: Req:960 UID:0 
>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>25<..."
>> Tue Jun  4 13:56:40 2013 [InM][I]: Monitoring host bj-nebula-prd-01 
>> (8)
>> Tue Jun  4 13:56:40 2013 [ReM][D]: Req:7472 UID:0 
>> VirtualMachinePoolInfo invoked, -2, -1, -1, -1
>> Tue Jun  4 13:56:40 2013 [InM][I]: Monitoring host bj-nebula-prd-02 
>> (13)
>> Tue Jun  4 13:56:40 2013 [ReM][D]: Req:7472 UID:0 
>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>25<..."
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 Command 
>> execution fail: /var/lib/one/remotes/datastore/ceph/cp 
>>
PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE1PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+dHR5bGludXggLSBrdm0gLWNlcGg8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjM8L0RJU0tfVFlQRT48UEVSU0lTVEVOVD4wPC9QRVJTSVNURU5UPjxSRUdUSU1F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VSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MTwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPmNlcGg8L0RTX01BRD48VE1fTUFEPmNlcGg8L1RNX01BRD48QkFTRV9QQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzEwNDwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PENMVVNURVJfSUQ+MTAwPC9DTFVTVEVSX0lEPjxDTFVTVEVSPmJqLWNsdXN0ZXItdm1zLTAwMTwvQ0xVU1RFUj48SU1BR0VTPjwvSU1BR0VTPjxURU1QTEFURT48RFNfTUFEPjwhW0NEQVRBW2NlcGhdXT48
>> L0RTX01BRD48SE9TVD48IVtDREFUQVtiai1uZWJ1bGEtcHJkLTAxXV0+PC9IT1NUPjxQT09MX05BTUU+PCFbQ0RBVEFbaW1hZ2VzXV0+PC9QT09MX05BTUU+PFRNX01BRD48IVtDREFUQVtjZXBoXV0+PC9UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4= 
>> 15
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 cp: 
>> Downloading 
>> https://marketplace.c12g.com/appliance/4fc76a938fb81d3517000003/download 
>> [1] to the image repository
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: cp: Downloading 
>> https://marketplace.c12g.com/appliance/4fc76a938fb81d3517000003/download 
>> [1] to the image repository
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG E 15 cp: 
>> Command "    set -e
>> Tue Jun  4 13:56:40 2013 [ImM][E]: cp: Command "    set -e
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]:
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 # 
>> create rbd
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: # create rbd
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 
>> qemu-img convert -O rbd /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4 
>> rbd:images/one-15
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: qemu-img convert -O rbd 
>> /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4 rbd:images/one-15
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]:
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 # 
>> remove original
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: # remove original
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 rm -f 
>> /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4" failed: sh: line 4: 22262 
>> 段错误              (core dumped) qemu-img convert -O rbd 
>> /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4 rbd:images/one-15
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: rm -f 
>> /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4" failed: sh: line 4: 22262 
>> 段错误              (core dumped) qemu-img convert -O rbd 
>> /var/tmp/9adcb555fee553fb1fce447d6ed0a9d4 rbd:images/one-15
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG E 15 Error 
>> registering images/one-15 in bj-nebula-prd-01
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][E]: Error registering images/one-15 in 
>> bj-nebula-prd-01
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: LOG I 15 
>> ExitCode: 139
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][I]: ExitCode: 139
>> Tue Jun  4 13:56:40 2013 [ImG][D]: Message received: CP FAILURE 15 
>> Error registering images/one-15 in bj-nebula-prd-01
>> 
>> Tue Jun  4 13:56:40 2013 [ImM][E]: Error copying image in the 
>> datastore: Error registering images/one-15 in bj-nebula-prd-01
>> Tue Jun  4 13:56:43 2013 [InM][I]: ExitCode: 0
>> Tue Jun  4 13:56:43 2013 [InM][D]: Host bj-nebula-prd-01 (8) 
>> successfully monitored.
>> Tue Jun  4 13:56:44 2013 [InM][I]: ExitCode: 0
>> 
>> Give me a hand :)
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [2]
> 
> 
> 
> Links:
> ------
> [1] 
> https://marketplace.c12g.com/appliance/4fc76a938fb81d3517000003/download
> [2] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list