It turns out '--cluster' is also needed when RBD driver talks to
ceph cluster using 'ceph' command (not via librados). This change
appends RBDDriver._ceph_args with '--cluster' when 'rbd_cluster_name'
config option is not None.
Change-Id: Ie957a3658a630947a140f4172f775e42b7611c6e
Closes-bug: #
1444855
args.extend(['--id', self.configuration.rbd_user])
if self.configuration.rbd_ceph_conf:
args.extend(['--conf', self.configuration.rbd_ceph_conf])
+ if self.configuration.rbd_cluster_name:
+ args.extend(['--cluster', self.configuration.rbd_cluster_name])
return args
def _connect_to_rados(self, pool=None):