Bug 2003795
| Summary: | When deleting storageSystem cluster-cleanup-job failed to create | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Shay Rozen <srozen> |
| Component: | rook | Assignee: | Subham Rai <srai> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Neha Berry <nberry> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.9 | CC: | jrivera, madam, muagarwa, ocs-bugs, odf-bz-bot, sostapov, srai, tnielsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| 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: | 2022-06-01 14:33:21 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
Shay Rozen
2021-09-13 18:03:55 UTC
Not a 4.9 blocker, moving it out. Nitin, PTAL once you have some BW As far as I know, cleanup jobs are handled by rook, not ocs-operator will confirm with Jose and work/move accordingly. This is still not a real blocker, to pushing it out of ODF 4.10.0. That said, I don't want to leave it hanging, so I'll try to poke at it again and hopefully update with some answers. Took a quick glance, and yes it looks like rook is the one generating these jobs. Moving accordingly. I tested with regex generator and yes seems like the error is due to `--` after `.` The format that rook uses to generate the name `cluster-cleanup-job-<node-name>` can you confirm if the name of the node is `ip-10-0-188-204.us-east-2.compute.--1-rlpxk`? Subham, please look at the TruncateNodeNameForJob() method called here: https://github.com/rook/rook/blob/4ea8cc6224efb0e9c18ffb8a39a6955f32d79a60/pkg/operator/ceph/cluster/cleanup.go#L75 seems like we already have a fix for this but not present in 4.9 . We need to bp this to 4.9 https://github.com/rook/rook/pull/9312 Travis to confirm. Thanks The fix Subham mentioned is included in 4.10 and newer, but not 4.9. Given how old and low priority this BZ is, I'm going to assume it's not critical to backport to 4.9 and we can close it as fixed in 4.10 and newer. |