mirror of https://github.com/apache/cloudstack.git
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:
parent
5078dff6e7
commit
a11530397c
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue