IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28446 for trunk/Nebulous/lib


Ignore:
Timestamp:
Jun 23, 2010, 5:51:46 PM (16 years ago)
Author:
watersc1
Message:

Updates to add neb-migrate code, and to fix repeated "can't find device info" bug in nebdiskd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r26333 r28446  
    790790}
    791791
     792sub find_ext_id_by_volume
     793{
     794    my $self = shift;
     795    my ($vol_name, $limit) = validate_pos( @_,
     796                                           {
     797                                               type => SCALAR,
     798                                           },
     799                                           {
     800                                               type => SCALAR|UNDEF,
     801                                               optional => 1,
     802                                           },
     803        );
     804   
     805    $log->debug( "entered - @_" );
     806
     807    my $response = $self->{ 'server' }->find_ext_id_by_volume( $vol_name, $limit);
     808    if ( $response->fault ) {
     809        $self->set_err($response->faultstring);
     810        if ($response->faultstring =~ /no instances on storage volume/) {
     811            $log->debug( "leaving" );
     812            return;
     813        }
     814
     815        $log->logdie("unhandled fault - ", $self->err);
     816    }
     817
     818    my $ext_ids = $response->result;
     819   
     820    $log->debug( "server found @$ext_ids" );
     821    $log->debug( "leaving" );
     822   
     823    return($ext_ids);
     824}
     825
    792826sub find_instances_for_cull
    793827{
Note: See TracChangeset for help on using the changeset viewer.