Revision ee513a66
b/lib/cmdlib.py | ||
---|---|---|
533 | 533 |
mod_list = lu.cfg.MaintainCandidatePool() |
534 | 534 |
if mod_list: |
535 | 535 |
lu.LogInfo("Promoted nodes to master candidate role: %s", |
536 |
", ".join(mod_list)) |
|
536 |
", ".join(node.name for node in mod_list))
|
|
537 | 537 |
for name in mod_list: |
538 | 538 |
lu.context.ReaddNode(name) |
539 | 539 |
mc_now, mc_max = lu.cfg.GetMasterCandidateStats() |
b/lib/config.py | ||
---|---|---|
809 | 809 |
"""Try to grow the candidate pool to the desired size. |
810 | 810 |
|
811 | 811 |
@rtype: list |
812 |
@return: list with the adjusted node names
|
|
812 |
@return: list with the adjusted nodes (L{objects.Node} instances)
|
|
813 | 813 |
|
814 | 814 |
""" |
815 | 815 |
mc_now, mc_max = self._UnlockedGetMasterCandidateStats() |
... | ... | |
823 | 823 |
node = self._config_data.nodes[name] |
824 | 824 |
if node.master_candidate or node.offline: |
825 | 825 |
continue |
826 |
mod_list.append(node.name)
|
|
826 |
mod_list.append(node) |
|
827 | 827 |
node.master_candidate = True |
828 | 828 |
node.serial_no += 1 |
829 | 829 |
mc_now += 1 |
Also available in: Unified diff