Changeset 599
- Timestamp:
- 06/21/07 16:23:54 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/mbriggs-db/lib/HoneyClient/Agent/Integrity/Filesystem.pm
r596 r599 936 936 937 937 # If the entry is a symlink. 938 } elsif (-l $ fh) {938 } elsif (-l $newEntry->{'name'}) { 939 939 $type = "symlink"; 940 940 undef $fh; honeyclient/branches/exp/mbriggs-db/lib/HoneyClient/Manager/VM/Clone.pm
r596 r599 329 329 # should never be modified externally.) 330 330 _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, 331 335 ); 332 336 … … 601 605 my $som = undef; 602 606 607 # Temporary variable to hold return message data. 608 my $ret = undef; 609 603 610 # Perform the quick clone operation. 604 611 $LOG->info("Quick cloning master VM (" . $self->{'master_vm_config'} . ")."); 605 612 $som = $self->{'_vm_handle'}->quickCloneVM(src_config => $self->{'master_vm_config'}); 606 if (!$som->result()) { 613 $ret = $som->result(); 614 if (!$ret) { 607 615 $LOG->fatal("Unable to quick clone master VM (" . $self->{'master_vm_config'} . ")."); 608 616 Carp::croak "Unable to quick clone master VM (" . $self->{'master_vm_config'} . ")."; 609 617 } 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; 610 636 } 611 637
