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 committed by Chip Childers
parent 5078dff6e7
commit a11530397c
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());