futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

[Subnet Mgr] Allow to delete a subnet without a gateway port #680

Closed yanmo96 closed 3 years ago

yanmo96 commented 3 years ago

This is a short-term fix to the following Issue.

Issue

When subnet's gateway port (device_owner=router_interface) got deleted, subnet's GatewayPortId still has the port ID (PM delete the port but didn't notify SM).

Short-term Fix

We temporarily silence the exception when deleteGatewayPort throws an exception. An more appropriate fix should be on port manager side to notify subnet manager.

xieus commented 3 years ago

Linked to issue #681