IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2019, 8:11:49 AM (7 years ago)
Author:
eugene
Message:

clean up errors for cull, find_instances_for_cull

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20191011/Nebulous/lib/Nebulous/Client.pm

    r41005 r41055  
    319319        $self->set_err("can not cull - not enough instances");
    320320        $log->debug("leaving");
    321 
    322321        return;
    323322    }
     
    335334
    336335    unless (defined $locations) {
    337         $self->set_err( "no instances" );
    338336        $log->debug( "leaving" );
    339 
    340337        return;
    341338    }
     
    352349        }
    353350    }
     351
    354352    # If we don't have two copies on one volume, see if we have two copies on a single
    355353    # cabinet. If so, delete the first of those copies.
     
    363361        }
    364362    }
     363
    365364    # Fail-safe. We didn't have any duplicates (the instances are "well-mixed"), so
    366365    # delete the first.
     
    10281027        $self->set_err($response->faultstring);
    10291028        # check to see if this failure is because $key doesn't exist
     1029        my $string = $response->faultstring;
    10301030        if ($response->faultstring =~ /is valid object key/) {
     1031            $self->set_err("invalid object key");
    10311032            $log->debug( "leaving" );
    10321033            return;
     
    10341035        # key is valid but no instances are on the specified volume
    10351036        if ($response->faultstring =~ /no instances on storage volume/) {
     1037            $self->set_err("no instances on storage volume or volume is not available");
    10361038            $log->debug( "leaving" );
    10371039            return;
Note: See TracChangeset for help on using the changeset viewer.