Bug 1939528
| Summary: | Reseting a cluster removes user's created manifests | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Constantin Vultur <cvultur> |
| Component: | assisted-installer | Assignee: | vemporop |
| assisted-installer sub component: | assisted-service | QA Contact: | Yuri Obshansky <yobshans> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | aos-bugs, atraeger, itsoiref, masayag, ncarboni, sasha |
| Version: | 4.8 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | AI-Team-Core | ||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-01-05 16:11:41 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
Constantin Vultur
2021-03-16 15:11:35 UTC
The behavior was changed by https://github.com/openshift/assisted-service/pull/711. Before that PR, ResetCluster used to remove files by pre-defined name. With this PR, the entire folder (minus logs) is deleted. The fix should skip manifests files instead of deleting them. https://github.com/openshift/assisted-service/blob/master/internal/cluster/cluster.go#L770 is the place to skip the manifest files deletion I'm curious if the intent of https://github.com/openshift/assisted-service/pull/711 was explicitly to remove the manifests. I suppose manifests couldn't really influence the success or failure of an install, but probably worth getting Igal's input. @atraeger , @itsoiref what do you think? We need to treat the customizations just like all other configuration and not delete them when the cluster was reset (In reply to Ronnie Lazar from comment #5) > We need to treat the customizations just like all other configuration and > not delete them when the cluster was reset That was implemented and merged by https://github.com/openshift/assisted-service/pull/1367 Verified with: "assisted-installer":"quay.io/ocpmetal/assisted-installer:c76ba93cdd5b3e6f2734a0e7b35ab32213e1021a", "assisted-installer-agent":"quay.io/ocpmetal/assisted-installer-agent:72b14c873597f3883eab9af308fb803b344af2d0", "assisted-installer-controller":"quay.io/ocpmetal/assisted-installer-controller:c76ba93cdd5b3e6f2734a0e7b35ab32213e1021a", "assisted-service":"quay.io/ocpmetal/assisted-service:1709a50d59bb8aba03713ade2f4869f86a43b8a3" Cluster installation was started, manifest were checked and after few minutes the installation was aborted. Checked the manifests and did a cluster reset via UI. Re-checked the manifests, proxy settings, ignition config overrides and those were still there. Marking as Verified Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.8.25 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:5209 |