[Fullstack] Respawn dhclient process in case of error
When dhclient process is started as async process by fake machine resource,
it might happen that "None" will be returned as first line of output
from this process. This is treated as an error and dhclient is halted
immediately.
Because of that fake machine don't have configured IP address and
test fails.
This patch adds "respawn_timeout" value set to 5 seconds for dhclient
async process. When dhclient process is restarted it should works fine
and IP address should be then configured properly.
Change-Id: Ie056578abbe6e18c8415c6e61d755f2248a70541
Closes-Bug: #1728948
(cherry picked from commit 92959238a3e408e810ccd4f3d3d453a35afb5bba)
Reviewed: https:/ /review. openstack. org/575675 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=fd572b1e4e3 ba5aa0e9c4cdc2d 874fde8eaff9c7
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit fd572b1e4e3ba5a a0e9c4cdc2d874f de8eaff9c7
Author: Sławek Kapłoński <email address hidden>
Date: Mon Feb 19 13:28:57 2018 +0100
[Fullstack] Respawn dhclient process in case of error
When dhclient process is started as async process by fake machine resource,
it might happen that "None" will be returned as first line of output
from this process. This is treated as an error and dhclient is halted
immediately.
Because of that fake machine don't have configured IP address and
test fails.
This patch adds "respawn_timeout" value set to 5 seconds for dhclient
async process. When dhclient process is restarted it should works fine
and IP address should be then configured properly.
Change-Id: Ie056578abbe6e1 8c8415c6e61d755 f2248a70541 810ccd4f3d3d453 a35afb5bba)
Closes-Bug: #1728948
(cherry picked from commit 92959238a3e408e