Esempio n. 1
0
    def __init__(self):
        super(Manila, self).__init__()
        self.manilaclient = utils.get_manilaclient()

        conn_conf = manila_conf.volume_connector
        if not conn_conf or conn_conf not in volume_connector_conf:
            msg = _("Must provide a valid volume connector")
            LOG.error(msg)
            raise exceptions.InvalidInput(msg)
        self.connector = importutils.import_object(
            volume_connector_conf[conn_conf], manilaclient=self.manilaclient)
Esempio n. 2
0
 def set_client(self):
     self.manilaclient = utils.get_manilaclient()
Esempio n. 3
0
 def __init__(self, manilaclient=None):
     super(ManilaConnector, self).__init__()
     if not manilaclient:
         manilaclient = utils.get_manilaclient()
     self.manilaclient = manilaclient
     self._set_proto_access_type_map()