def disassociate_qos_specs(context, specs_id, type_id):
 try:
  get_qos_specs(context, specs_id)
  db.qos_specs_disassociate(context, specs_id, type_id)
 except db_exc.DBError:
  LOG.exception(_LE('DB error:'))
  LOG.warning(_LW('Failed to disassociate qos specs %(id)s with type: %(vol_type_id)s'), dict(id=specs_id, vol_type_id=type_id))
  raise exception.QoSSpecsDisassociateFailed(specs_id=specs_id, type_id=type_id)

def disassociate_qos_specs ( context , specs_id , type_id ) : try : get_qos_specs ( context , specs_id ) db . qos_specs_disassociate ( context , specs_id , type_id ) except db_exc . DBError : LOG . exception ( _LE ( 'DB error:' ) ) LOG . warning ( _LW ( 'Failed to disassociate qos specs %(id)s with type: %(vol_type_id)s' ) , dict ( id = specs_id , vol_type_id = type_id ) ) raise exception . QoSSpecsDisassociateFailed ( specs_id = specs_id , type_id = type_id )
disassociate qos_specs from volume type .