'Convert the volume to be of the new type.'

def retype(self, ctxt, volume, new_type, diff, host):

    LOG.debug('X-IO    retype    called')
    qos = self._get_qos_specs(ctxt, new_type['id'])
    ret = self._modify_volume(volume, {'IOPSmin': qos['minIOPS'], 'IOPSmax': qos['maxIOPS'], 'IOPSburst': qos['burstIOPS']})
    if (ret is True):
        LOG.info('Volume    %s    retyped.', volume['name'])
    return True
