' rbd username specified but secret not found' error, virsh live migration on rbd

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

 



Thank you for your help.
Yes, i also defined on the second node(destination node). I've double
checked ephemeral and private, both of them show me this

~# virsh secret-dumpxml b34526f2-8d32-ed5d-3153-e90d011dd37e
<secret ephemeral='no' private='no'>
  <uuid>b34526f2-8d32-ed5d-3153-e90d011dd37e</uuid>
  <usage type='ceph'>
    <name>client.libvirt secret</name>
  </usage>
</secret>

https://ceph.com/docs/master/rbd/libvirt/#configuring-ceph
I did configuring-ceph step 4 to 7 on the destination node. One different
thing is defining same UUID with source node to retain a secret UUID in a
virsh xml descrition of the vm. I mean at step 4, actually i did this

cat > secret.xml <<EOF
<secret ephemeral='no' private='no'>
        <usage type='ceph'>
                <name>client.libvirt secret</name>
        </usage>            <uuid>b34526f2-8d32-ed5d-3153-e90d011dd37e</uuid>
</secret>
EOF

except this, everything i did for a secret at the destination node is same
with the source node.





2014-05-20 9:04 GMT+09:00 Josh Durgin <josh.durgin at inktank.com>:

> On 05/19/2014 01:48 AM, JinHwan Hwang wrote:
>
>> I have been trying to do live migration on vm which is running on rbd.
>> But so far, they only give me ' internal error: rbd username 'libvirt'
>> specified but secret not found' when i do live migration.
>>
>> ceph-admin : source host
>> host : destination host
>>
>> root at main:/home/ceph-admin# virsh migrate --live rbd1-1
>>   qemu+ssh://host/system
>> error: internal error: rbd username 'libvirt' specified but secret not
>> found
>>
>> These are rbd1-1 vm dump. It worked for running rbd1-1.
>> .....
>>   <disk type='network' device='disk'>
>>        <driver name='qemu' type='raw'/>
>>        <auth username='libvirt'>
>>          <secret type='ceph' uuid='b34526f2-8d32-ed5d-3153-
>> e90d011dd37e'/>
>>        </auth>
>>        <source protocol='rbd' name='libvirt-pool/rbd-image1-1'>
>>          <host name='node1' port='6789'/>
>>          <host name='node2' port='6789'/>
>>        </source>
>> ....
>>
>> Is '<secret type>...' not sufficient for doing live migration? I also
>> have tried setting same secret on both source and destination host
>> virsh(so both host virsh have
>> uuid='b34526f2-8d32-ed5d-3153-e90d011dd37e' ), But it didn't worked.
>> I've followed this('http://ceph.com/docs/master/rbd/libvirt/')
>> instruction and this is only secret so far i know. Am i miss something?
>> If that so, Where should i put those missing 'secrets'?
>> Thanks in advance for any helps.
>>
>
> Did you set the value of the secret on the second node?
> Is it defined with ephemeral='no' and private='no'?
>
> Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140520/72afeb81/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