CloudGenix / cloudgenix_config

Configuration exporting and Continuous Integration (CI) capable configuration importing for the CloudGenix Cloud Controller.
MIT License
12 stars 22 forks source link

do_site --destroy throws error when encountering HA Config #26

Closed kpeterson-sf closed 4 years ago

kpeterson-sf commented 5 years ago

I have an HA site configured. When trying to issue do_site --destroy the following error is thrown. I can perform workaround by deleteing the HA group and the Site level security zones and rerun the --destroy and it will work.

Removing LAN Networks/WAN Interfaces from lan 2.27. Deleting Unconfigured Staticroute 15675653945700060. Deleting Unconfigured Staticroute 15675653963690100. ERROR: Could not unbind element LNWO6-SDW-A: { "_etag": 0, "_content_length": "0", "_schema": 0, "_created_on_utc": 0, "_updated_on_utc": 0, "_status_code": "400", "_request_id": "1567565934025014899994567113533932001939", "_error": [ { "code": "ELEMENT_SPOKE_CLUSTER_MEMBER", "message": "Element cannot be unbound from the site. Element is attached to a Spoke Cluster." } ] } (env) krispeters-ltm3:SDWAN kris.peterson$

ebob9 commented 5 years ago

Will need to verify that element is being removed from spoke cluster prior to attempting unbind during --destroy operation.

ebob9 commented 4 years ago

Checked in a fix for this in develop. Closing, please re-open if develop branch or eventual pip release has issues.