From 3f0a4a88c4c8461d271d4e1985d647e1abc8e855 Mon Sep 17 00:00:00 2001 From: arunmani Date: Thu, 26 Oct 2017 04:24:48 -0400 Subject: [PATCH] Increase timeout to handle multiple heat stack deploys When multiple heat stack deployments are submitted, there is mismanagement of IP assigned and heat stack fails with duplicate IP report. The time to sleep to avoid race condition in such cases seems too less, and it was found that increasing the same works better in such case. Change-Id: I5cd6ac008f9160e35a3e70c831f8f151d0825458 Closes-Bug: #1724302 --- .../powervc/neutron/agent/neutron_powervc_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neutron-powervc/powervc/neutron/agent/neutron_powervc_agent.py b/neutron-powervc/powervc/neutron/agent/neutron_powervc_agent.py index 9444e78..3d918ed 100644 --- a/neutron-powervc/powervc/neutron/agent/neutron_powervc_agent.py +++ b/neutron-powervc/powervc/neutron/agent/neutron_powervc_agent.py @@ -528,7 +528,9 @@ class PowerVCNeutronAgent(object): # Nova booting a vm and neutron creating new port would race the port. # If the neutron creates the port before booting vm, # the booting process would be failed as ip/port locked. - time.sleep(15) + # Bug#1724302 - Increase sleep time to handle IP mismanagement issue + # related to multiple heat stack deployments with powervc-driver + time.sleep(60) try: new_port = self.pvc.create_port(port) except Exception, msg: