Rollback on failed OXP POST#524
Conversation
Coverage Report for CI Build 25450424367Coverage decreased (-3.3%) to 49.499%Details
Uncovered Changes
Coverage Regressions16 previously-covered lines in 4 files lost coverage.
Coverage Stats
💛 - Coveralls |
|
As discussed on slack and on the weekly meeting, after reviewing this PR and their dependencies, the end-to-end tests are passing. However the mentioned issue #519 (#519) seems still unfixed: we are still seeing the breakdowns on the OXPs after the failure. The expected behavior would be an empty reply from OXP's L2VPN. Cong mentioned that it ca be because of the merging with main branch. |
|
Hello Cong, I've re-tested the new code you added and here are the results:
here are the details: it says it will rollback to the previous state, however I waited more 5 minutes and no updates: |
Hi Italo, I tried your steps, it seems to be working fine for me. Can you give it another try? If it's not working, we can debug this together. |
|
Hi @congwang09, thanks for testing and reporting the reporting your results! You are right, with the steps to reproduce I provided on the issue, your result is consistent! I forgot to mention earlier that I extended the test to include a scenario where the OXP failed but it took some time to send the failure reply. The idea here was to simulate an OXP that was overloaded or something like that. Thus, in my tests I have a slightly different failure mechanism on TENET: Notice the time.sleep(60). I used 60sec just as a random value, but it could be anytime, assuming we cannot predict how overloaded the OXP can be. In the scenario above, I got the behavior I mentioned to you earlier: |
|
The extended test case deserves a new issue/PR: timeout is always a problem anyway. I recommend to close this PR to have a working tagged version. |
|
Hi Cong, tested here and it all worked just fine! Excellent progress! thank you! |
Resolves: #519
This PR should merge after atlanticwave-sdx/sdx-lc#204 and atlanticwave-sdx/pce#304
If OXP POST request failed, or timeout, roll back partially provisioned connection request