rbd: Make secret usage names unique for all pools

Since only the cephx user like 'admin' was passed we couldn't define two RBD storage pools
using the cephx user admin, even if they were running on different Ceph clusters.

By adding the monitor hostname and poolname to the secret's usage (which we don't even use) it becomes
unique.
This commit is contained in:
Wido den Hollander 2012-10-10 00:21:14 +02:00
parent c235073042
commit f4a2298ca9
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
Secret s = null;
sd.setCephName(userInfoTemp[0]);
sd.setCephName(userInfoTemp[0] + "@" + host + ":" + port + "/" + path);
try {
s_logger.debug(sd.toString());