doc-exports/docs/asm/umn/asm_faq_0031.html
Dong, Qiu Jian e743e7f7b8 ASM UMN update 20241012
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-10-18 07:32:37 +00:00

27 lines
3.2 KiB
HTML

<a name="asm_faq_0031"></a><a name="asm_faq_0031"></a>
<h1 class="topictitle1">Why Does a Service Mesh Remain in the Unready State for a Long Time After I Uninstall It?</h1>
<div id="body1600074666721"><div class="section" id="asm_faq_0031__section2060853210484"><h4 class="sectiontitle">Symptom</h4><p id="asm_faq_0031__p797293315489">On the ASM console, after I uninstall a service mesh, it remains in the unready state for a long time.</p>
</div>
<div class="section" id="asm_faq_0031__section62421653135217"><h4 class="sectiontitle">Fault Diagnosis</h4><ol id="asm_faq_0031__ol114041584333"><li id="asm_faq_0031__li15404165815336"><span>Log in to the CCE console. Click the cluster name to go to the cluster console. In the navigation pane, choose <strong id="asm_faq_0031__b1819515325711">App Templates</strong>.</span></li><li id="asm_faq_0031__li16806182703412"><span>Click <strong id="asm_faq_0031__b591845810489">Releases</strong> and select the target cluster from the drop-down list. Check the releases and the latest events about uninstallation failure.</span><p><p id="asm_faq_0031__p12911043121320">The <strong id="asm_faq_0031__b1343111283520">Status</strong> of <strong id="asm_faq_0031__b9432182819526">istio-master</strong> is <strong id="asm_faq_0031__b114331328145216">Uninstallation Failed</strong>, and the following message is displayed.</p>
<pre class="screen" id="asm_faq_0031__screen252345201312">deletion failed with 1 error(s): clusterroles:rbac.authorization.k8s.io "istio-cleanup-secrets-istio-system" already exists</pre>
</p></li></ol>
</div>
<div class="section" id="asm_faq_0031__section1138413100522"><h4 class="sectiontitle">Analysis</h4><p id="asm_faq_0031__p1664231117529">Abnormal operations cause the Helm chart of Istio stuck during uninstallation. Residual resources lead to an uninstallation failure.</p>
</div>
<div class="section" id="asm_faq_0031__section0351628195710"><h4 class="sectiontitle">Solution</h4><ol id="asm_faq_0031__ol111071253174210"><li id="asm_faq_0031__li52001357171412"><span>Connect to the CCE cluster using kubectl.</span></li><li id="asm_faq_0031__li192119112432"><span>Run the following commands to clear Istio resources:</span><p><pre class="screen" id="asm_faq_0031__screen41759592266">kubectl delete ServiceAccount -n istio-system `kubectl get ServiceAccount -n istio-system | grep istio | awk '{print $1}'`
kubectl delete ClusterRole -n istio-system `kubectl get ClusterRole -n istio-system | grep istio | awk '{print $1}'`
kubectl delete ClusterRoleBinding -n istio-system `kubectl get ClusterRoleBinding -n istio-system | grep istio | awk '{print $1}'`
kubectl delete job -n istio-system `kubectl get job -n istio-system | grep istio | awk '{print $1}'`
kubectl delete crd -n istio-system `kubectl get crd -n istio-system | grep istio | awk '{print $1}'`
kubectl delete mutatingwebhookconfigurations -n istio-system `kubectl get mutatingwebhookconfigurations -n istio-system | grep istio | awk '{print $1}'`</pre>
</p></li><li id="asm_faq_0031__li102148053612"><span>Log in to the ASM console and uninstall the service mesh again.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_faq_0029.html">Service Mesh Cluster</a></div>
</div>
</div>