From 4ed43d27549925dc249d00e9d2821d06037e044b Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 24 Aug 2016 06:33:06 +1000 Subject: [PATCH] launch-node.py: restart interface RAX nodes are exhibiting new behaviour of having ipv6 configured but not active. Restart eth0 to pick up the address in /etc/network/interfaces so the ping6's work Change-Id: I6b60bde34cc28ca60c5cbbb41de02cd89354cc32 --- launch/launch-node.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launch/launch-node.py b/launch/launch-node.py index 7a205692a6..11802f5202 100755 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -88,6 +88,10 @@ def bootstrap_server(server, key, name, volume_device, keep, ssh_client = utils.ssh_connect(ip, 'root', ssh_kwargs, timeout=600) + # 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') + if server.public_v6: ssh_client.ssh('ping6 -c5 -Q 0x10 review.openstack.org ' '|| ping6 -c5 -Q 0x10 wiki.openstack.org')