Commit f5e35dc
committed
Correct memory validation for live migration
Since live migration has been moved to the conductor, there was no
possibility for the conductor to verify if the destination had
enough RAM just because it didn't know the allocation ratios given
by the scheduler.
Now that ComputeNodes provide a ram_allocation_field, we can fix
that check and provide the same validation than RAMFilter to make
sure that the destination is good.
Closes-Bug: #1451831
Closes-Bug: #1214943
Change-Id: Ie6c768fc915553da73160ea51961078bfbacec771 parent bbaa721 commit f5e35dc
File tree
2 files changed
+23
-7
lines changed- nova
- conductor/tasks
- tests/unit/conductor/tasks
2 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | 205 | | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
0 commit comments