Merge "[Fullstack] Respawn dhclient process in case of error" into stable/pike

This commit is contained in:
Zuul 2018-03-21 14:47:11 +00:00 committed by Gerrit Code Review
commit 8d2c26a1c7
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ class FakeFullstackMachine(machine_fixtures.FakeMachineBase):
cmd = ["dhclient", '-sf', self.NO_RESOLV_CONF_DHCLIENT_SCRIPT_PATH,
'--no-pid', '-d', self.port.name]
self.dhclient_async = async_process.AsyncProcess(
cmd, run_as_root=True, namespace=self.namespace)
cmd, run_as_root=True, respawn_interval=5,
namespace=self.namespace)
self.dhclient_async.start()
def _stop_async_dhclient(self):