Revision caad16e2 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
1774 | 1774 |
utils.AddHostToEtcHosts(new_node.name) |
1775 | 1775 |
|
1776 | 1776 |
if new_node.secondary_ip != new_node.primary_ip: |
1777 |
if not self.rpc.call_node_tcp_ping(new_node.name, |
|
1778 |
constants.LOCALHOST_IP_ADDRESS, |
|
1779 |
new_node.secondary_ip, |
|
1780 |
constants.DEFAULT_NODED_PORT, |
|
1781 |
10, False): |
|
1777 |
if not self.rpc.call_node_has_ip_address(new_node.name, |
|
1778 |
new_node.secondary_ip): |
|
1782 | 1779 |
raise errors.OpExecError("Node claims it doesn't have the secondary ip" |
1783 | 1780 |
" you gave (%s). Please fix and re-run this" |
1784 | 1781 |
" command." % new_node.secondary_ip) |
Also available in: Unified diff