Fixes port still in use for monitoring workflow
Nova neutron interaction for port deletion of old instance and immediate port addition of new instance is failing the vnf respawn by throwing libvirt error: tap device or resource busy. Introduced a sleep after instance deletion giving nova enough time to clean up the old instance before spinning up a new instance. Change-Id: I385d2e6e19da2ad2bfe8c77aba51dae2b922242b Closes-Bug: #1509465
This commit is contained in:
parent
ff93239c3e
commit
7ae2388903
|
@ -277,6 +277,12 @@ class ActionRespawnHeat(ActionPolicy):
|
|||
heatclient = heat.HeatClient(None)
|
||||
heatclient.delete(device_dict['instance_id'])
|
||||
|
||||
# TODO(sripriya): sleep timer has been provided as a temporary
|
||||
# workaround for the nova neutron port still in use issue. Need
|
||||
# to come up with a better fix for the issue
|
||||
LOG.debug('Sleeping for 10 seconds before initiating respawn')
|
||||
time.sleep(10)
|
||||
|
||||
# keystone v2.0 specific
|
||||
auth_url = CONF.keystone_authtoken.auth_uri + '/v2.0'
|
||||
authtoken = CONF.keystone_authtoken
|
||||
|
|
Loading…
Reference in New Issue