@@ -10,6 +10,11 @@ The un-manage functionality is helpful for scenario where admin wants to bring
1010down the cluster for some critical maintenance activities and doesn't want the
1111monitoring etc to be performed for that period.
1212
13+ Also in scenario where there is a failure in cluster import user might need to
14+ resolve the issues reported while import failure and then re-import the cluster.
15+ This flow would need an un-manage of the cluster first and the na fresh import
16+ of the cluster.
17+
1318== Problem description
1419
1520There are situations when admin needs some critical maintenance of the cluster
@@ -21,6 +26,9 @@ Tendrl also should provide a provision to re-import the cluster at later stage
2126if admin wants and the process should be quite seamless and no or very less
2227manual intervention required for this job to be performed.
2328
29+ In case there is a failure in import cluster, tendrl needs to provide an option
30+ to un-manage and import the cluster again.
31+
2432
2533== Use Cases
2634
@@ -38,6 +46,9 @@ supported on this cluster anymore
3846* User should have an option to re-import the cluster if needed later and it
3947should seamlessly work as usual
4048
49+ * User should have an option to un-manage a import failed cluster and import it
50+ again in tendrl
51+
4152
4253== Proposed change
4354
@@ -108,6 +119,21 @@ should be set with `{'job_id': 'unmanage job id', 'job_name': 'ImportCluster',
108119
109120* If un-manage flow fails the value of `status` would be set as `failed`
110121
122+ * If an import cluster fails tendrl UI needs to keep import cluster option open
123+ and if user selects the option, it should throw a dialog telling about the
124+ previous import failure and if user confirms to go ahead about un-manage and
125+ then import the cluster, UI should submit an un-manage cluster first. If the
126+ un-manage cluster task succeeds, then UI should submit a import for the same
127+ cluster
128+
129+ * UI needs to have client side storage option to retain the previous un-manage
130+ cluster task-id for reference and for showing the details of the tasks in UI
131+
132+ * So if there is an import failure for a cluster user tries import again for the
133+ cluster after user confirmation UI submits two tasks one by one. One for
134+ un-manage cluster and after success import cluster. UI should maintain both the
135+ tasks details for detailing in UI
136+
111137
112138=== Alternatives
113139
@@ -305,6 +331,10 @@ dashboards in grafana. Verify the same happens as expected
305331* Verify that the final alert post un-manage flow, tells about removal of
306332details from grafana dashboards and grafana alert dashboards
307333
334+ * Verify the scenatio when a cluster import fails, and user is able to start
335+ a un-manage + reimport cluster option from UI. UI should be able to list details
336+ of both the tasks in this scenario
337+
308338
309339== Documentation impact:
310340
0 commit comments