Changeset 599

Show
Ignore:
Timestamp:
06/21/07 16:23:54 (1 year ago)
Author:
kindlund
Message:

sc: merging branch using tags svn+ssh://kindlund@www.honeyclient.org/home/svn/honeyclient/honeyclient/tags/exp/UP8-mbriggs-db and svn+ssh://kindlund@www.honeyclient.org/home/svn/honeyclient/honeyclient/trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/mbriggs-db/lib/HoneyClient/Agent/Integrity/Filesystem.pm

    r596 r599  
    936936 
    937937                # If the entry is a symlink. 
    938                 } elsif (-l $fh) { 
     938                } elsif (-l $newEntry->{'name'}) { 
    939939                    $type = "symlink"; 
    940940                    undef $fh; 
  • honeyclient/branches/exp/mbriggs-db/lib/HoneyClient/Manager/VM/Clone.pm

    r596 r599  
    329329    # should never be modified externally.) 
    330330    _vm_handle => undef, 
     331 
     332    # A variable containing the absolute path to the cloned VM.  (This 
     333    # internal variable should never be modified externally.) 
     334    _clone_vm_config => undef, 
    331335); 
    332336 
     
    601605    my $som = undef; 
    602606 
     607    # Temporary variable to hold return message data. 
     608    my $ret = undef; 
     609 
    603610    # Perform the quick clone operation. 
    604611    $LOG->info("Quick cloning master VM (" . $self->{'master_vm_config'} . ")."); 
    605612    $som = $self->{'_vm_handle'}->quickCloneVM(src_config => $self->{'master_vm_config'}); 
    606     if (!$som->result()) { 
     613    $ret = $som->result(); 
     614    if (!$ret) { 
    607615        $LOG->fatal("Unable to quick clone master VM (" . $self->{'master_vm_config'} . ")."); 
    608616        Carp::croak "Unable to quick clone master VM (" . $self->{'master_vm_config'} . ")."; 
    609617    } 
     618    # Set the cloned VM configuration. 
     619    $self->{'_clone_vm_config'} = $ret; 
     620 
     621    # Wait until the VM gets registered, before proceeding. 
     622    $LOG->info("Checking if clone VM (" . $self->{'_clone_vm_config'} . ") is registered."); 
     623    $ret = undef; 
     624    while (!defined($ret) or !$ret) { 
     625        $som = $self->{'_vm_handle'}->isRegisteredVM(config => $self->{'_clone_vm_config'}); 
     626        $ret = $som->result(); 
     627 
     628        # If the VM isn't registered yet, wait before trying again. 
     629        if (!defined($ret) or !$ret) { 
     630            sleep (2); 
     631        } 
     632    } 
     633 
     634    # Once registered, check if the VM is ON yet. 
     635    $ret = undef; 
    610636} 
    611637