[pve-devel] rados keyfile without symlink

Alexandre DERUMIER aderumier at odiso.com
Fri Jun 1 14:07:09 CEST 2012


I found a way to pass the key with a keyfile !

qemu option:
-drive file=rbd:pool2/vm-114-disk-2:id=admin:auth_supported=cephx\;none:keyfile=/etc/pve/priv/ceph/storagekeyfile:mon_host=10.3.94.27\:6789\;10.3.94.28\:6789\;10.3.94.29\:6789,if=none,id=drive-virtio0,aio=native

rbd command:
rbd -p pool2 -m 10.3.94.27:6789 -n client.admin --auth_supported cephx\;none --keyfile /etc/pve/priv/ceph/storagekeyfile ls 

file content
-----------
#cat /etc/pve/priv/ceph/storagekeyfile

AQAmOcZPwNY7GRAAuvJjVAKIm1r3JKqLCa4LGQ==




so no symlink, we just need to put the key in the file. (1 file by defined rbd storage)
seem to be clean, what do you think about it ?




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 1 Juin 2012 13:45:50 
Objet: Re: [pve-devel] [PATCH] Add rados block plugin storage 

>> That is up to the user - we do not need to specify that? 

what do you mean ? about the symlink ? 

----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 1 Juin 2012 13:27:36 
Objet: RE: [pve-devel] [PATCH] Add rados block plugin storage 

> But with a symlink, it's working fine. 
> 
> # ls -l /etc/ceph/ceph.keyring 
> lrwxrwxrwx 1 root root 31 Jun 1 08:50 /etc/ceph/ceph.keyring -> 
> /etc/pve/priv/ceph/ceph.keyring 
> rbd -p pool2 -m 10.3.94.27:6789 -n client.admin --auth_supported 
> cephx\;none ls 
> 
> #rbd -p pool2 -m 10.3.94.27:6789 -n client.admin --auth_supported 
> cephx\;none ls 
> vm-114-disk-1 
> vm-114-disk-2 
> vm-114-disk-3 
> 
> 
> maybe symlink of the ceph directory is better ? 


That is up to the user - we do not need to specify that? 

- Dietmar 



-- 

-- 




Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



-- 

-- 




	Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
	



More information about the pve-devel mailing list