Revision c269efc3
b/lib/masterd/iallocator.py | ||
---|---|---|
141 | 141 |
"""An instance allocation request. |
142 | 142 |
|
143 | 143 |
""" |
144 |
# pylint: disable=E1101 |
|
144 | 145 |
MODE = constants.IALLOCATOR_MODE_ALLOC |
145 | 146 |
REQ_PARAMS = [ |
146 | 147 |
("name", ht.TString), |
... | ... | |
190 | 191 |
"""An multi instance allocation request. |
191 | 192 |
|
192 | 193 |
""" |
194 |
# pylint: disable=E1101 |
|
193 | 195 |
MODE = constants.IALLOCATOR_MODE_MULTI_ALLOC |
194 | 196 |
REQ_PARAMS = [ |
195 | 197 |
("instances", ht.TListOf(ht.TInstanceOf(IAReqInstanceAlloc))) |
... | ... | |
213 | 215 |
"""A relocation request. |
214 | 216 |
|
215 | 217 |
""" |
218 |
# pylint: disable=E1101 |
|
216 | 219 |
MODE = constants.IALLOCATOR_MODE_RELOC |
217 | 220 |
REQ_PARAMS = [ |
218 | 221 |
("name", ht.TString), |
... | ... | |
310 | 313 |
"""A node evacuation request. |
311 | 314 |
|
312 | 315 |
""" |
316 |
# pylint: disable=E1101 |
|
313 | 317 |
MODE = constants.IALLOCATOR_MODE_NODE_EVAC |
314 | 318 |
REQ_PARAMS = [ |
315 | 319 |
("instances", _STRING_LIST), |
... | ... | |
331 | 335 |
"""A group change request. |
332 | 336 |
|
333 | 337 |
""" |
338 |
# pylint: disable=E1101 |
|
334 | 339 |
MODE = constants.IALLOCATOR_MODE_CHG_GROUP |
335 | 340 |
REQ_PARAMS = [ |
336 | 341 |
("instances", _STRING_LIST), |
Also available in: Unified diff