'Setup the QNAP Cinder volume driver.'

def do_setup(self, context):

    self._check_config()
    self.ctxt = context
    LOG.debug('context:    %s', context)
    try:
        self.api_executor = self.creat_api_executor()
    except Exception:
        LOG.error('Failed    to    create    HTTP    client.    Check    ip,    port,    username,    password    and    make    sure    the    array    version    is    compatible')
        msg = _('Failed    to    create    HTTP    client.')
        raise exception.VolumeDriverException(message=msg)
