retry func iconfig_update_file when host personality is None
when we run "system dns-modify" command, the command will response after
sysinv-db was updated, and file "/etc/resolv.conf" will be updated
asynchronously by another process "sysinv-agent". Once the attr
"_ihost_personality" of agent is None(initial value), it will not update
file "/etc/resolv.conf" and will not inform sysinv client also,
which will lead command dns-modify failed silently.
This patch will retry function iconfig_update_file by which sysinv-agent
update file "/etc/resolv.conf" when attr "_ihost_personality" is None.
Reviewed: https:/ /review. openstack. org/637459 /git.openstack. org/cgit/ openstack/ stx-config/ commit/ ?id=53b9e466156 1c85aabe802d098 e79c1c099e6bec
Committed: https:/
Submitter: Zuul
Branch: master
commit 53b9e4661561c85 aabe802d098e79c 1c099e6bec
Author: SidneyAn <email address hidden>
Date: Mon Feb 18 22:03:57 2019 +0800
retry func iconfig_update_file when host personality is None
when we run "system dns-modify" command, the command will response after personality" of agent is None(initial value), it will not update
sysinv-db was updated, and file "/etc/resolv.conf" will be updated
asynchronously by another process "sysinv-agent". Once the attr
"_ihost_
file "/etc/resolv.conf" and will not inform sysinv client also,
which will lead command dns-modify failed silently.
This patch will retry function iconfig_update_file by which sysinv-agent personality" is None.
update file "/etc/resolv.conf" when attr "_ihost_
Closes-bug: 1812269
Change-Id: I3a0437750a5360 7c04932c1b9b818 e83903bb28b
Signed-off-by: SidneyAn <email address hidden>