self.conf_path = conf_path
self.cluster_name = cluster_name
self.auth_id = auth_id
+ self.volume_prefix = volume_prefix if volume_prefix else self.DEFAULT_VOL_PREFIX
+ self.pool_ns_prefix = pool_ns_prefix if pool_ns_prefix else self.DEFAULT_NS_PREFIX
- def evict(self, auth_id, timeout=30):
+ def evict(self, auth_id, timeout=30, volume_path=None):
"""
- Evict all clients using this authorization ID. Assumes that the
- authorisation key has been revoked prior to calling this function.
+ Evict all clients based on the authorization ID and optionally based on
+ the volume path mounted. Assumes that the authorization key has been
+ revoked prior to calling this function.
This operation can throw an exception if the mon cluster is unresponsive, or
any individual MDS daemon is unresponsive for longer than the timeout passed in.