Bug #1473

[VMWARE] driver resume/restore using wrong deployment file

Added by Emmanuel Mathot almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:09/13/2012
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:


Category:Drivers - Auth
Target version:Release 3.8
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.6


When resuming a stopped VM, the restore function in /var/lib/one/remotes/vmm/vmware/vmware_driver.rb always use deployment.0 file to (re)deploy the VM.
This causes the resume to fail if the VM did not start at the first submission and the file deployment.0 does not exists.

def restore(checkpoint)
            # Define the VM
            dfile = VAR_LOCATION + "/" +
-->                    File.basename(File.dirname(checkpoint)) + "/deployment.0" 
        rescue => e
            OpenNebula.log_error("Cannot open checkpoint #{e.message}")
            exit -1

        deploy_id = define_domain(dfile)

Associated revisions

Revision 45f86393
Added by Tino Vázquez almost 9 years ago

bug #1473: Pick last deployment file

Revision 520243e3
Added by Tino Vázquez almost 9 years ago

feature #1473: Wrong path for xpath.rb


#1 Updated by Tino Vázquez almost 9 years ago

  • Status changed from New to Closed
  • Assignee set to Tino Vázquez
  • % Done changed from 0 to 100
  • Resolution set to fixed

Pick the last deployment file

Also available in: Atom PDF