Open paddy01 opened 6 months ago
There is some kind of race condition here. As the PCEP session does not have that LSP anymore but the controller has it. I can add a check and log but need to really understand how did this happen.
Added the check. You should see the log.
Added the check. You should see the log.
Well, it's not crashing anymore.. the only thing that popup in the logs are
time="2024-03-08T13:39:39.670833172+01:00" level=error client_ip="172.18.xx.xx:59059" duration=0.106676 method=DELETE path=/v1/lsp/lsp-num1_1 referrer="https://172.16.xx.xx1:1443/" request_id= status=500
This is how it should be as I suspect the LSPs do not get created on the devices themselves so when you try to delete there is nothing to delete. There are two DBs the first one is the controller DB and the second one is the network DB. You create LSPs in the controller DB and they get pushed into the network. Once pushed the devices report all of them back and they get saved into the network DB. We need to make sure they actually get created first.
This is how it should be as I suspect the LSPs do not get created on the devices themselves so when you try to delete there is nothing to delete.
Its hard to delete a non-functioning LSP if it has to be up to be able to remove it. Even if the LSP is not up, for whatever reason, I must be able to remove it from the PCE or at least put it in delete state so it gets removed when the PCC connects(if it was disconnected for some reaosn) - and that must be indicated in the webUI :)
There are two DBs the first one is the controller DB and the second one is the network DB. You create LSPs in the controller DB and they get pushed into the network. Once pushed the devices report all of them back and they get saved into the network DB. We need to make sure they actually get created first.
Yea I know, but as stated above if the information is wrong so the LSP doesn't get established there must be a way to delete it and/or put it in deleted state to later be removed from local db.
When trying to remove a controlled LSP I get