Revision 7672a621
b/lib/cmdlib.py | ||
---|---|---|
2883 | 2883 |
self.LogWarning("Errors encountered on the remote node while leaving" |
2884 | 2884 |
" the cluster: %s", msg) |
2885 | 2885 |
|
2886 |
# Remove node from our /etc/hosts |
|
2887 |
if self.cfg.GetClusterInfo().modify_etc_hosts: |
|
2888 |
# FIXME: this should be done via an rpc call to node daemon |
|
2889 |
utils.RemoveHostFromEtcHosts(node.name) |
|
2890 |
_RedistributeAncillaryFiles(self) |
|
2891 |
|
|
2886 | 2892 |
|
2887 | 2893 |
class LUQueryNodes(NoHooksLU): |
2888 | 2894 |
"""Logical unit for querying nodes. |
... | ... | |
3457 | 3463 |
|
3458 | 3464 |
# Add node to our /etc/hosts, and add key to known_hosts |
3459 | 3465 |
if self.cfg.GetClusterInfo().modify_etc_hosts: |
3466 |
# FIXME: this should be done via an rpc call to node daemon |
|
3460 | 3467 |
utils.AddHostToEtcHosts(new_node.name) |
3461 | 3468 |
|
3462 | 3469 |
if new_node.secondary_ip != new_node.primary_ip: |
Also available in: Unified diff