I found the cause of this issues. It looks like there isn't timing issue.
The route cause of this issue is this bug report. https://bugs.launchpad.net/opencontrail/+bug/1271734
The script create and deletes networks with same name. Since contrail data sync model is async and they are using name as a identifier, this won't work sometimes.
After I update the script to change the name everytime, it starts working.
I found the cause of this issues.
It looks like there isn't timing issue.
The route cause of this issue is this bug report. /bugs.launchpad .net/opencontra il/+bug/ 1271734
https:/
The script create and deletes networks with same name.
Since contrail data sync model is async and they are using name as a identifier, this won't work
sometimes.
After I update the script to change the name everytime, it starts working.