Revision afee0879 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
1437 | 1437 |
_AdjustCandidatePool(self) |
1438 | 1438 |
|
1439 | 1439 |
|
1440 |
class LURedistributeConfig(NoHooksLU): |
|
1441 |
"""Force the redistribution of cluster configuration. |
|
1442 |
|
|
1443 |
This is a very simple LU. |
|
1444 |
|
|
1445 |
""" |
|
1446 |
_OP_REQP = [] |
|
1447 |
REQ_BGL = False |
|
1448 |
|
|
1449 |
def ExpandNames(self): |
|
1450 |
self.needed_locks = { |
|
1451 |
locking.LEVEL_NODE: locking.ALL_SET, |
|
1452 |
} |
|
1453 |
self.share_locks[locking.LEVEL_NODE] = 1 |
|
1454 |
|
|
1455 |
def CheckPrereq(self): |
|
1456 |
"""Check prerequisites. |
|
1457 |
|
|
1458 |
""" |
|
1459 |
|
|
1460 |
def Exec(self, feedback_fn): |
|
1461 |
"""Redistribute the configuration. |
|
1462 |
|
|
1463 |
""" |
|
1464 |
self.cfg.Update(self.cfg.GetClusterInfo()) |
|
1465 |
|
|
1466 |
|
|
1440 | 1467 |
def _WaitForSync(lu, instance, oneshot=False, unlock=False): |
1441 | 1468 |
"""Sleep and poll for an instance's disk to sync. |
1442 | 1469 |
|
Also available in: Unified diff