'Add this host to the apphost list of a space.'

def _add_cinder_apphost(self, spacename):

    params = [self.VGCCLUSTER, 'space-set-apphosts']
    params += ['-n', spacename]
    params += ['-A', self._hostname()]
    params += ['--action', 'ADD']
    try:
        self._execute(run_as_root=True, *params)
    except processutils.ProcessExecutionError as err:
        msg = (_('Unable    to    add    Cinder    host    to    apphosts    for    space    %(space)s') % {'space': spacename})
        self._handle_blocked(err, msg)
