You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Guangjian Liu <gu...@gmail.com> on 2013/04/17 08:51:41 UTC

Fwd: help check add primary storage by ceph rbd in CS 4.0.1

I met problem in adding primary storage by ceph rbd  in CS 4.0.1. It failed
after click ok button as below. Could you give me some suggestion? thanks.
[image: Inline image 1]

*Environment:*
1. Server A: CS 4.0.1 OS: RHEL 6.2 x86-64
2. Server B: Ceph 0.56.4  OS: RHEL 6.2 x86-64
3. Server C: KVM/Qemu OS: Ubuntu 12.04

    compile libvirt and Qemu as document
root@ubuntu:/usr/local/lib# virsh version
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 1.0.0

root@ubuntu:~# rbd list --pool cloudstack
bar
new-libvirt-image


Attach is ceph.conf

*Problem:*
create primary storage fail with rbd device.

*Agent log in Server C:*
==> /var/cloud/agent/agent.log <==
2013-04-17 21:51:11,569 WARN  [cloud.agent.Agent]
(agentRequest-Handler-3:null) Caught:
java.lang.NullPointerException
        at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:462)
        at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:57)
        at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2087)
        at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1053)
        at com.cloud.agent.Agent.processRequest(Agent.java:518)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
        at com.cloud.utils.nio.Task.run(Task.java:83)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)


=====================================================
I also try by document in http://markmail.org/message/7unnsy335fi7x3k4

I meet problem as below,

root@ubuntu:~/scripts# virsh pool-define rbd-pool.xml error: Failed to
define pool from rbd-pool.xml error: internal error missing backend for
pool type 8


root@ubuntu:~/scripts# cat rbd-pool.xml <pool type='rbd'>
<name>cloudstack</name> <uuid>d9474b9d-afa1-3737-a13b-df333dae295a</uuid>
<source> <host name='10.0.0.41' port='6789'/> <name>rbd</name> <auth
username='admin' type='ceph'> <secret
uuid='605a8870-d017-a40f-64fe-fd1965c7e8fd'/> </auth> </source> </pool>


-- 
Guangjian