'Gets the qos specs from cinder.'

@proxy._trace_time
def _get_qos_specs(self, type_id):

    ctxt = context.get_admin_context()
    volume_type = volume_types.get_volume_type(ctxt, type_id)
    if (not volume_type):
        return None
    qos_specs_id = volume_type.get('qos_specs_id', None)
    if qos_specs_id:
        return qos_specs.get_qos_specs(ctxt, qos_specs_id).get('specs', None)
    return None
