def remove_volumes(paths):
 errors = []
 for path in paths:
  clear_volume(path)
  lvremove = ('lvremove', '-f', path)
  try:
   utils.execute(attempts=3, run_as_root=True, *lvremove)
  except processutils.ProcessExecutionError as exp:
   errors.append(six.text_type(exp))
 if errors:
  raise exception.VolumesNotRemoved(reason=', '.join(errors))

def remove_volumes ( paths ) : errors = [ ] for path in paths : clear_volume ( path ) lvremove = ( 'lvremove' , '-f' , path ) try : utils . execute ( attempts = 3 , run_as_root = True , * lvremove ) except processutils . ProcessExecutionError as exp : errors . append ( six . text_type ( exp ) ) if errors : raise exception . VolumesNotRemoved ( reason = ', ' . join ( errors ) )
remove one or more logical volume .