Revision 1338f2b4 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
44 | 44 |
from ganeti import objects |
45 | 45 |
from ganeti import serializer |
46 | 46 |
from ganeti import ssconf |
47 |
from ganeti import uidpool |
|
47 | 48 |
|
48 | 49 |
|
49 | 50 |
class LogicalUnit(object): |
... | ... | |
2265 | 2266 |
if self.op.candidate_pool_size < 1: |
2266 | 2267 |
raise errors.OpPrereqError("At least one master candidate needed", |
2267 | 2268 |
errors.ECODE_INVAL) |
2269 |
|
|
2268 | 2270 |
_CheckBooleanOpField(self.op, "maintain_node_health") |
2269 | 2271 |
|
2272 |
if self.op.uid_pool: |
|
2273 |
uidpool.CheckUidPool(self.op.uid_pool) |
|
2274 |
|
|
2270 | 2275 |
def ExpandNames(self): |
2271 | 2276 |
# FIXME: in the future maybe other cluster params won't require checking on |
2272 | 2277 |
# all nodes to be modified. |
... | ... | |
2461 | 2466 |
if self.op.maintain_node_health is not None: |
2462 | 2467 |
self.cluster.maintain_node_health = self.op.maintain_node_health |
2463 | 2468 |
|
2469 |
if self.op.uid_pool is not None: |
|
2470 |
self.cluster.uid_pool = self.op.uid_pool |
|
2471 |
|
|
2464 | 2472 |
self.cfg.Update(self.cluster, feedback_fn) |
2465 | 2473 |
|
2466 | 2474 |
|
... | ... | |
3719 | 3727 |
"mtime": cluster.mtime, |
3720 | 3728 |
"uuid": cluster.uuid, |
3721 | 3729 |
"tags": list(cluster.GetTags()), |
3730 |
"uid_pool": cluster.uid_pool, |
|
3722 | 3731 |
} |
3723 | 3732 |
|
3724 | 3733 |
return result |
Also available in: Unified diff