Recently, I ran into an interesting problem in my lab where I couldn’t get rid of an unused Virtual Service in NSX ALB. The attempt to delete was failing with an error: “VS cannot be deleted! ‘It is being referred to by SystemConfiguration object”
I tried deleting the VS via API and it returned the same error
1 2 3 4 5 6 7 |
DELETE https://siteb-alb.sddc.lab/api/virtualservice/virtualservice-68679e6f-f10b-45ee-ab7d-d714ff8766aa Response: { "error": "siteb-local-dns-vs cannot be deleted! 'siteb-local-dns-vs' is being referred to by SystemConfiguration object" } |
To figure out where this VS is being referenced, I looked through the pool members and other settings in NSX ALB, but I couldn’t discover anything particular. Internet searches were also not very helpful.
I then checked this issue in internal tools and got a hint that I needed to remove the VS reference from the system configuration through API first. … Read More