Bug 1698804
Summary: | Disable a API federation when there is a resource of federatedAPI kind, then re-enable the API federation, the crd of federatedAPI will be deleted | ||
---|---|---|---|
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: | medium | ||
Version: | 4.1.0 | CC: | mnewby |
Target Milestone: | --- | ||
Target Release: | 4.1.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-05-17 15:32:10 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-04-11 08:41:24 UTC
I think I know what is going on here: - deleting the ftc is disabling the sync controller - the sync controller is required to remove the finalizer from the federated resources - the crd can't be removed until all cr's are removed, but they won't be deleted until the finalizer is deleted As per https://github.com/kubernetes-sigs/federation-v2/issues/721, disable should not delete the crd by default. When deletion of the crd is requested, kubefed2 should iterate over every cr and remove the finalizer so it can be garbage collected. Fixed in version 0.0.10. Verified with: Federation v2 controller-manager version: version.Info{Version:"v0.0.10", GitCommit:"71d233ede685707df554ef653e06bf7f0229415c", GitTreeState:"clean", BuildDate:"2019-05-06T22:54:46Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"} kubefedctl version: version.Info{Version:"v0.0.10-dirty", GitCommit:"71d233ede685707df554ef653e06bf7f0229415c", GitTreeState:"dirty", BuildDate:"2019-05-06T22:30:31Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"} |