Bug 1689036
Summary: | Unjoin a cluster which not exists in the federation gives an unclear err msg | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> |
Component: | Federation | Assignee: | Ivan Font <ifont> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Qin Ping <piqin> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.1.0 | CC: | bmcelvee, mnewby, pmorie |
Target Milestone: | --- | ||
Target Release: | 4.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-09 19:15:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Qin Ping
2019-03-15 01:54:39 UTC
I think it's right for repeat invocations of 'unjoin' to attempt to delete the associated resources, _but_ it shouldn't be an error if they don't exist (since they may have already been deleted). WDYT? Return an error message is ok for me, but I think we should give an message to tell people, he already unjoined the cluster from the federation, he does not need to try creating serviceaccout then try unjoining again. For exampla: $ oc delete federatedsecrets test-secret Error from server (NotFound): federatedsecrets.types.federation.k8s.io "test-secret" not found. I've filed an upstream bug: https://github.com/kubernetes-sigs/federation-v2/issues/745 The upstream issue was resolved 3 weeks ago and the fix will appear in subsequent releases (0.1.0-rc2 and greater). The fix should appear in releases rc2 and greater. Verified with kubefedctl version: version.Info{Version:"v4.2.0", GitCommit:"ee84d241d0d8038640f9dad7cbeb0ea8cce58b6c", GitTreeState:"clean", BuildDate:"2019-08-06T18:27:54Z", GoVersion:"go1.12.6", Compiler:"gc", Platform:"linux/amd64"} $ kubefedctl unjoin cluster1 --host-cluster-context=admin --cluster-context=admin --kubefed-namespace=federation-system $ kubefedctl unjoin cluster1 --host-cluster-context=admin --cluster-context=admin --kubefed-namespace=federation-system F0808 16:51:58.317988 5271 unjoin.go:95] Error: Failed to get kubefed cluster "federation-system/cluster1": kubefedclusters.core.kubefed.io "cluster1" not found Does this bug require doc text? The Doc Type/Text field is not currently set. Thanks! |