Changeset 1633 for trunk


Ignore:
Timestamp:
Nov 13, 2008, 3:41:11 AM (16 years ago)
Author:
broder
Message:

Cancel the migration if there's an error in the middle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/xvm-migrate-machine

    r1632 r1633  
    8484    if 0 != subprocess.call(['lvcreate', '-L%sM' % str(disk.size), '-n', lvname, 'xenvg']):
    8585      success = False
     86      break
    8687   
    8788    ssh = subprocess.Popen(['ssh', '-o', 'GSSAPIDelegateCredentials=no',
     
    9394    if 0 != dd.wait():
    9495      success = False
     96      break
    9597    if 0 != ssh.wait():
    9698      success = False
     99      break
    97100 
    98101  if not success:
Note: See TracChangeset for help on using the changeset viewer.