Commit 625b469
committed
Live migration fixes (#20)
Multiple bugs fixes:
* Incorrect disk size: when provisioning the volume at the destination,
the size was taken from the template and not from the original volume
itself.
* Incorrect details when returning an error: now if an exception is
raised by Libvirt at the agent level, the error message is forwarded
correctly all the way into the job response text.
* Incorrect volume state: when a migration failed, the volume state was
inconsistent and stayed in "Migrating", those interfering with future
commands on the VM. As a result, the event message wasn't sent
either.1 parent 2f310e5 commit 625b469
File tree
11 files changed
+67
-63
lines changed- engine
- api/src
- com/cloud/vm
- org/apache/cloudstack
- engine
- orchestration/service
- subsystem/api/storage
- storage/command
- orchestration/src
- com/cloud/vm
- org/apache/cloudstack/engine/orchestration
- storage/volume/src/org/apache/cloudstack/storage/volume
- plugins/hypervisors/kvm
- src
- com/cloud/hypervisor/kvm
- resource/wrapper
- storage
- org/apache/cloudstack/storage/motion
- test/com/cloud/hypervisor/kvm/resource
11 files changed
+67
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
798 | 800 | | |
799 | 801 | | |
800 | 802 | | |
801 | | - | |
| 803 | + | |
802 | 804 | | |
803 | 805 | | |
804 | 806 | | |
| |||
2148 | 2150 | | |
2149 | 2151 | | |
2150 | 2152 | | |
2151 | | - | |
| 2153 | + | |
2152 | 2154 | | |
2153 | 2155 | | |
2154 | 2156 | | |
| |||
2192 | 2194 | | |
2193 | 2195 | | |
2194 | 2196 | | |
2195 | | - | |
| 2197 | + | |
2196 | 2198 | | |
2197 | 2199 | | |
2198 | 2200 | | |
| |||
2204 | 2206 | | |
2205 | 2207 | | |
2206 | 2208 | | |
2207 | | - | |
2208 | | - | |
| 2209 | + | |
2209 | 2210 | | |
2210 | 2211 | | |
2211 | 2212 | | |
| |||
2288 | 2289 | | |
2289 | 2290 | | |
2290 | 2291 | | |
2291 | | - | |
| 2292 | + | |
2292 | 2293 | | |
2293 | 2294 | | |
2294 | 2295 | | |
| |||
2325 | 2326 | | |
2326 | 2327 | | |
2327 | 2328 | | |
2328 | | - | |
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2332 | 2336 | | |
2333 | 2337 | | |
2334 | 2338 | | |
| |||
Lines changed: 3 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | 984 | | |
1004 | | - | |
| 985 | + | |
1005 | 986 | | |
1006 | 987 | | |
1007 | 988 | | |
| |||
1027 | 1008 | | |
1028 | 1009 | | |
1029 | 1010 | | |
1030 | | - | |
| 1011 | + | |
1031 | 1012 | | |
1032 | 1013 | | |
1033 | 1014 | | |
| |||
Lines changed: 13 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1580 | 1581 | | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | 1582 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
| 1583 | + | |
1597 | 1584 | | |
1598 | 1585 | | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
1599 | 1593 | | |
1600 | 1594 | | |
1601 | 1595 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | 339 | | |
345 | 340 | | |
346 | 341 | | |
| |||
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
113 | | - | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | | - | |
117 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
| |||
145 | 155 | | |
146 | 156 | | |
147 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
| |||
0 commit comments