Repository navigation
Commit c8a437b
BUG-ID: CLOUDSTACK-7102. Volume migration fails with 'VM i-2-3-VM does not exist in VMware datacenter' expection.
Look for a VM in vCenter based on both the vCenter name and CS internal name (required in case 'vm.instancename.flag' is enabled).
During Attach Volume and Volume Migration, for lookup and other operations use VM's name as obtained from vCenter instead of using the name set in the agent command.
(cherry picked from commit b8fdda0)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>1 parent 8f4aa23 commit c8a437b
3 files changed
Lines changed: 11 additions & 14 deletions
File tree
- plugins/hypervisors/vmware/src/com/cloud
- hypervisor/vmware/resource
- storage/resource
- vmware-base/src/com/cloud/hypervisor/vmware/mo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
2924 | | - | |
| 2924 | + | |
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
| |||
2971 | 2971 | | |
2972 | 2972 | | |
2973 | 2973 | | |
| 2974 | + | |
2974 | 2975 | | |
2975 | 2976 | | |
2976 | 2977 | | |
| |||
3100 | 3101 | | |
3101 | 3102 | | |
3102 | 3103 | | |
3103 | | - | |
| 3104 | + | |
3104 | 3105 | | |
3105 | 3106 | | |
3106 | 3107 | | |
| |||
3127 | 3128 | | |
3128 | 3129 | | |
3129 | 3130 | | |
| 3131 | + | |
3130 | 3132 | | |
3131 | 3133 | | |
3132 | 3134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
| 1293 | + | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | 1296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
96 | 88 | | |
97 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
98 | 92 | | |
99 | 93 | | |
100 | 94 | | |
| |||
0 commit comments