When there is an add followed by delete, back-to-back, it is possible
VNC layer may not have updated the VM with vrouter info, as that ref
update is a seperate event.
Since VM's are always expected to vrouter info, if the ref is missing,
update that vrouter record in config db by reading from vnc.
Reviewed: https:/ /review. opencontrail. org/31508 github. com/Juniper/ contrail- controller/ commit/ aeeb311eb0c0ff0 2016bc797d9ba67 641021bdf6
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.0
commit aeeb311eb0c0ff0 2016bc797d9ba67 641021bdf6
Author: dineshb-jnpr <email address hidden>
Date: Fri May 12 16:02:11 2017 -0700
Fix VM-Vrouter ref update race.
When there is an add followed by delete, back-to-back, it is possible
VNC layer may not have updated the VM with vrouter info, as that ref
update is a seperate event.
Since VM's are always expected to vrouter info, if the ref is missing,
update that vrouter record in config db by reading from vnc.
Change-Id: I1771bad79ea6f5 8a768d948122445 6fe7089534e
Closes-Bug: #1689905