Revision 57a77632

View differences:

src/vmm_mad/remotes/vcenter/attach_disk
52 52

  
53 53
rescue Exception => e
54 54
    STDERR.puts "Attach image for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
55
                "failed due to \"#{e.message}\""
55
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
56 56
    exit -1
57 57
end
src/vmm_mad/remotes/vcenter/attach_nic
60 60

  
61 61
rescue Exception => e
62 62
    STDERR.puts "Attach NIC for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
63
                "failed due to \"#{e.message}\""
63
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
64 64
    exit(-1)
65 65
end
src/vmm_mad/remotes/vcenter/cancel
49 49

  
50 50
    vm.poweroff_hard
51 51
rescue Exception => e
52
    STDERR.puts "Cancel VM #{deploy_id} failed due to \"#{e.message}\""
52
    STDERR.puts "Cancel VM #{deploy_id} failed due to "\
53
                "\"#{e.message}\"\n#{e.backtrace}"
53 54
    exit(-1)
54 55
end
src/vmm_mad/remotes/vcenter/deploy
64 64
    puts vm['_ref']
65 65
rescue Exception => e
66 66
    STDERR.puts "Deploy of VM #{vm_id} on vCenter cluster #{cluster_name} " +
67
                "with #{dfile} failed due to \"#{e.message}\""
67
                "with #{dfile} failed due to \"#{e.message}\"\n#{e.backtrace}"
68 68
    exit -1
69 69
end
src/vmm_mad/remotes/vcenter/detach_disk
53 53

  
54 54
rescue Exception => e
55 55
    STDERR.puts "Detach image for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
56
                "failed due to \"#{e.message}\""
56
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
57 57
    exit -1
58 58
end
src/vmm_mad/remotes/vcenter/detach_nic
47 47

  
48 48
rescue Exception => e
49 49
    STDERR.puts "Detach NIC for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
50
                "failed due to \"#{e.message}\""
50
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
51 51
    exit(-1)
52 52
end
src/vmm_mad/remotes/vcenter/poll
47 47

  
48 48
rescue Exception => e
49 49
    STDERR.puts "Cannot poll info for VM #{vm_ref} on vCenter cluster "\
50
                "#{vc_cluster_name} failed due to \"#{e.message}\""
50
                "#{vc_cluster_name} failed due to "\
51
                "\"#{e.message}\"\n#{e.backtrace}"
51 52
    exit(-1)
52 53
end
src/vmm_mad/remotes/vcenter/reboot
44 44

  
45 45
rescue Exception => e
46 46
    STDERR.puts "Guest reboot of VM #{vm_ref} on vCenter cluster "\
47
                "#{vc_cluster_name} failed due to \"#{e.message}\""
47
                "#{vc_cluster_name} failed due to "\
48
                "\"#{e.message}\"\n#{e.backtrace}"
48 49
    exit -1
49 50
end
src/vmm_mad/remotes/vcenter/reconfigure
44 44

  
45 45
rescue Exception => e
46 46
    STDERR.puts "Reconfiguration of VM #{vm_ref} on vCenter cluster "\
47
                "#{vc_cluster_name} failed due to \"#{e.message}\""
47
                "#{vc_cluster_name} failed due to "\
48
                "\"#{e.message}\"\n#{e.backtrace}"
48 49
    exit -1
49 50
end
src/vmm_mad/remotes/vcenter/reset
44 44

  
45 45
rescue Exception => e
46 46
    STDERR.puts "Reset of VM #{vm_ref} on vCenter cluster "\
47
                "#{vc_cluster_name} failed due to \"#{e.message}\""
47
                "#{vc_cluster_name} failed due to "\
48
                "\"#{e.message}\"\n#{e.backtrace}"
48 49
    exit -1
49 50
end
src/vmm_mad/remotes/vcenter/restore
44 44

  
45 45
rescue Exception => e
46 46
    STDERR.puts "Restore of VM #{vm_ref} on vCenter cluster "\
47
                "#{vc_cluster_name} failed due to \"#{e.message}\""
47
                "#{vc_cluster_name} failed due to "\
48
                "\"#{e.message}\"\n#{e.backtrace}"
48 49
    exit -1
49 50
end
src/vmm_mad/remotes/vcenter/save
75 75

  
76 76
rescue Exception => e
77 77
    STDERR.puts "Save of VM #{vm_ref} on vCenter cluster "\
78
                "#{vc_cluster_name} failed due to \"#{e.message}\""
78
                "#{vc_cluster_name} failed due to "\
79
                "\"#{e.message}\"\n#{e.backtrace}"
79 80
    exit -1
80 81
end
src/vmm_mad/remotes/vcenter/shutdown
56 56
    VCenterDriver::VCenterVm.shutdown(deploy_id, host, lcm_state, keep_disks, disks, cloned_tmplt)
57 57
rescue Exception => e
58 58
    STDERR.puts "Shutdown of VM #{deploy_id} on host #{host} failed " +
59
                "due to \"#{e.message}\""
59
                "due to \"#{e.message}\"\n#{e.backtrace}"
60 60
    exit -1
61 61
end
src/vmm_mad/remotes/vcenter/snapshot_create
45 45

  
46 46
rescue Exception => e
47 47
    STDERR.puts "Snapshot of VM #{vm_ref} on vCenter cluster "\
48
                "#{vc_cluster_name} failed due to \"#{e.message}\""
48
                "#{vc_cluster_name} failed due to "\
49
                "\"#{e.message}\"\n#{e.backtrace}"
49 50
    exit(-1)
50 51
end
src/vmm_mad/remotes/vcenter/snapshot_delete
45 45

  
46 46
rescue Exception => e
47 47
    STDERR.puts "Snapshot of VM #{vm_ref} on vCenter cluster "\
48
                "#{vc_cluster_name} could not be deleted due to \"#{e.message}\""
48
                "#{vc_cluster_name} could not be deleted due to "\
49
                "\"#{e.message}\"\n#{e.backtrace}"
49 50
    exit(-1)
50 51
end
src/vmm_mad/remotes/vcenter/snapshot_revert
46 46
rescue Exception => e
47 47
    STDERR.puts "Snapshot of VM #{vm_ref} on vCenter cluster "\
48 48
                "#{vc_cluster_name} could not be reverted due "\
49
                "to \"#{e.message}\""
49
                "to \"#{e.message}\"\n#{e.backtrace}"
50 50
    exit(-1)
51 51
end

Also available in: Unified diff