From 8791e9fafa35ced1a7d117822b39571aefd751ab Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 28 Mar 2017 13:50:26 +1100 Subject: [PATCH] launch-node: ignore failure to restart eth0 eth0 might not exist, such as on Xenial hosts with interfaced-based names. Since this is a bit of platform/provider specific hack, just ignore failures. Change-Id: Ie18b7f49ea2f1b72b496c61ac2576ae53f5ad3eb --- launch/launch-node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch/launch-node.py b/launch/launch-node.py index d461db497b..be1499cf91 100755 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -121,7 +121,7 @@ def bootstrap_server(server, key, name, volume_device, keep, # Something up with RAX images that they have the ipv6 interface in # /etc/network/interfaces but eth0 hasn't noticed yet; reload it - ssh_client.ssh('ifdown eth0 && ifup eth0') + ssh_client.ssh('(ifdown eth0 && ifup eth0) || true') if server.public_v6: ssh_client.ssh('ping6 -c5 -Q 0x10 review.openstack.org '