Increase interface detach polling period

The gate has started failing due to interface detaches timing out.
Examining the logs, it looks like Nova's interface detach retry takes about
6s to run one attempt. Heat, on the other hand, does 10 retries at 0.5s
intervals. So if Nova has to retry then Heat will fail.

Increase Heat's polling interval to make it more likely that if Nova
succeeds, Heat will see it.

Change-Id: Ie74980a3f806b8c17e4e494ae979725b0078f135
Closes-Bug: #1585858
This commit is contained in:
Zane Bitter 2017-09-26 13:26:13 -04:00
parent 4ff8bd7882
commit 166ac7869f
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ echo -e '%s\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
@tenacity.retry(
stop=tenacity.stop_after_attempt(
cfg.CONF.max_interface_check_attempts),
wait=tenacity.wait_fixed(0.5),
wait=tenacity.wait_exponential(multiplier=0.5, max=2.0),
retry=tenacity.retry_if_result(client_plugin.retry_if_result_is_false))
def check_interface_detach(self, server_id, port_id):
with self.ignore_not_found: