[DM]: Handle gracefully when two successive BGP unlink/delete PR and create PR happens
Problem:
T0: DM receives delete "bgp router" link removal request. As a result of this, DM tries to delete config from device in a separate Device Greenlet. Thi
T1: Immediately, DM receives another request “physical-router” delete, in the context of PR object delete, DM deletes the config from device (this happ
T2: Device Greenlet fails to delete config from Device (since config was already deleted (T1)), and hence goes into “RETRY” mode.
T3: DM receives new PR create/BGP router update events. ==> New PR Object gets created locally, and this will create a new Device Greenlet and ultimate
T4: When timer expires, Old Device Greenlet retries to delete the config, and this time delete will be successful. Config will be gone from Device.
Solution:
Terminate Pending Device Greenlet in the context of PR delete
Reviewed: https:/ /review. opencontrail. org/39194 github. com/Juniper/ contrail- controller/ commit/ ad98b1bc3a89df5 e42e9becc5cec37 3672b60d81
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit ad98b1bc3a89df5 e42e9becc5cec37 3672b60d81
Author: sbalineni <email address hidden>
Date: Wed Jan 24 11:08:07 2018 -0800
[DM]: Handle gracefully when two successive BGP unlink/delete PR and create PR happens
Problem:
T0: DM receives delete "bgp router" link removal request. As a result of this, DM tries to delete config from device in a separate Device Greenlet. Thi
T1: Immediately, DM receives another request “physical-router” delete, in the context of PR object delete, DM deletes the config from device (this happ
T2: Device Greenlet fails to delete config from Device (since config was already deleted (T1)), and hence goes into “RETRY” mode.
T3: DM receives new PR create/BGP router update events. ==> New PR Object gets created locally, and this will create a new Device Greenlet and ultimate
T4: When timer expires, Old Device Greenlet retries to delete the config, and this time delete will be successful. Config will be gone from Device.
Solution:
Terminate Pending Device Greenlet in the context of PR delete
Change-Id: I0d68d585230c50 3ed81650190d6e7 aa4ba594875
Closes-Bug: #1714004