Deleting the Contrail MultiCloud Cluster
Perform the following procedures to delete the Contrail multicloud cluster:
Remove the extension of the public cloud to the on-premise Contrail cluster.
Delete the public cloud infrastructure objects.
Removing Extension of Public Cloud to On-Premise Contrail Cluster
To remove the extension of public cloud to the on-premise Contrail cluster:
The following request uses
DELETE_CLOUD
inprovisioning_action
to remove the extension.Example:
delete_cloud.yml
--- resources: - data: uuid: a5063dde-2681-11e9-8021-0050568a3bf0 provisioning_state: NOSTATE provisioning_action: DELETE_CLOUD cloud_refs: [] mc_gw_info: {} kind: contrail_cluster operation: UPDATE
In addition, delete the on-premise cloud objects that were created earlier. If the UUID of the resource is unknown, use contrailcli to get them.
Example:
delete_onprem_cloud_objects.yml
--- resources: - data: uuid: 0f11f71c-f451-11e8-bccc-a4d18newdcd4 operation: DELETE kind: contrail_multicloud_gw_node - data: cloud_private_subnet_refs: [] tag_refs: [] uuid: 41f99f2d-a5a4-4e2c-b598-c173cf748953 kind: node operation: UPDATE - data: cloud_private_subnet_refs: [] tag_refs: [] uuid: c8d9d4ec-2f4a-11e9-bfac-0050568a3bf0 kind: node operation: UPDATE - data: cloud_private_subnet_refs: [] tag_refs: [] uuid: c8d9c1b4-2f4a-11e9-bfac-0050568a3bf0 kind: node operation: UPDATE - data: uuid: fdc97d65-9f58-4b5c-ac8c-07341a115ab5 kind: cloud_private_subnet operation: DELETE - data: uuid: fdc97d65-9f58-4b5c-ac8c-07341c334ab8 kind: cloud_private_subnet operation: DELETE - data: uuid: 4bd887b1-3f65-59c1-bc2f-ZGZiYWVhY2Vmejc2NTQK kind: virtual_cloud operation: DELETE - data: uuid: 70d4d63e-6f51-4181-bb0b-4a1bbf242332 kind: cloud_region operation: DELETE - data: uuid: 061a024a-9da0-40a3-974b-9309dfd85255 kind: cloud_provider operation: DELETE - data: uuid: dfb40e0d-c9f4-47cd-bd5c-MWVmZGQyOGZkNGZjCg kind: cloud operation: DELETE - data: uuid: 4e77005b-b7ba-489b-9891-aGFjawo9eadf kind: cloud_user operation: DELETE - data: uuid: 2eefeb06-2e7c-11e9-b210-d663bd873d93 kind: tag operation: DELETE
Deleting Public Cloud Infrastructure Objects
Use the following request to delete public cloud infrastructure objects:
Example: delete_public_cloud_objects.yml
--- resources: - data: provisioning_state: NOSTATE uuid: dfb40e0d-c9f4-47cd-bd5c-1efdd28fd4fc provisioning_action: DELETE_CLOUD kind: cloud operation: UPDATE