Skip to content

Commit cb24f39

Browse files
jeana-redhatopenshift-cherrypick-robot
authored andcommitted
OSDOCS-14739: Troubleshooting MAPI-CAPI deletion behavior
1 parent 63cb2e5 commit cb24f39

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

machine_management/cluster_api_machine_management/cluster-api-troubleshooting.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ include::modules/ts-capi-cli-reference-intended-objects.adoc[leveloffset=+1]
2121
include::modules/ts-capi-sync-list-duplicate-resources.adoc[leveloffset=+1]
2222

2323
//Unexpected resource deletion behavior
24-
//Draft to be completed
25-
//include::modules/ts-capi-migrate-unexpected-deletion-behavior.adoc[leveloffset=+1]
24+
include::modules/ts-capi-migrate-unexpected-deletion-behavior.adoc[leveloffset=+1]
2625

2726
[id="ts-capi-resource-migration_{context}"]
2827
== Troubleshooting resource migration
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/cluster_api_machine_management/cluster-api-troubleshooting.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="ts-capi-migrate-unexpected-deletion-behavior_{context}"]
7+
= Unexpected resource deletion behavior
8+
9+
On clusters that support migrating resources between the Machine API and the Cluster API, users might experience unexpected behavior when deleting Cluster API resources on a cluster where the Machine API is authoritative.
10+
11+
Cause::
12+
13+
For any resource that uses the authoritative API, the two-way synchronization controller creates and maintains corresponding resources that do not use the current authoritative API.
14+
+
15+
The deletion behavior for resources that do not use the current authoritative API depends on which API is authoritative.
16+
+
17+
--
18+
* When you delete a Cluster API resource on a cluster where the Machine API is authoritative, the synchronization controller deletes the corresponding Machine API resource.
19+
20+
* When you delete a Machine API resource on a cluster where the Cluster API is authoritative, the synchronization controller does not delete the corresponding Cluster API resource.
21+
This difference in behavior supports migration from using the Machine API to using the Cluster API.
22+
--
23+
+
24+
This behavior occurs when deleting resources directly and when performing scale-down operations.
25+
26+
Consequence::
27+
28+
This different behavior depending on which API is authoritative has the following consequences:
29+
+
30+
--
31+
* For clusters on which the Cluster API is authoritative, you can remove Machine API resources with no impact to the corresponding Cluster API resources.
32+
33+
* For clusters on which the Machine API is authoritative, you cannot remove Cluster API resources without also deleting the corresponding Machine API resources.
34+
--
35+
36+
Workaround::
37+
38+
For clusters on which the Machine API is authoritative, do not delete any Cluster API resource unless you want to delete the corresponding Machine API resource.

0 commit comments

Comments
 (0)