def disassociate_all(context, specs_id):
 try:
  get_qos_specs(context, specs_id)
  db.qos_specs_disassociate_all(context, specs_id)
 except db_exc.DBError:
  LOG.exception(_LE('DB error:'))
  LOG.warning(_LW('Failed to disassociate qos specs %s.'), specs_id)
  raise exception.QoSSpecsDisassociateFailed(specs_id=specs_id, type_id=None)

def disassociate_all ( context , specs_id ) : try : get_qos_specs ( context , specs_id ) db . qos_specs_disassociate_all ( context , specs_id ) except db_exc . DBError : LOG . exception ( _LE ( 'DB error:' ) ) LOG . warning ( _LW ( 'Failed to disassociate qos specs %s.' ) , specs_id ) raise exception . QoSSpecsDisassociateFailed ( specs_id = specs_id , type_id = None )
disassociate qos_specs from all entities .