Bug 1962751
| Summary: | ocs operator does not marshal resource requests and limits for ceph crushcollector pods | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Container Storage | Reporter: | Ohad <omitrani> | |
| Component: | ocs-operator | Assignee: | umanga <uchapaga> | |
| Status: | CLOSED ERRATA | QA Contact: | suchita <sgatfane> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.8 | CC: | ebenahar, jarrpa, madam, muagarwa, ocs-bugs, rcyriac, sostapov, tdesala, uchapaga | |
| Target Milestone: | --- | Keywords: | AutomationBackLog | |
| Target Release: | OCS 4.8.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 4.8.0-406.ci | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1964365 (view as bug list) | Environment: | ||
| Last Closed: | 2021-08-03 18:16:39 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1964365 | |||
|
Description
Ohad
2021-05-20 14:59:43 UTC
Was the original intention of "StorageCluster.Spec.Resources" to allow users to provide resource requirements only for mgr and mon pods? If yes, then we need to agree on allowing it for "crashcollector" and probably identify a sensible default. If it was always meant to be used for all daemons/pods, then this bug goes back to OCS 4.2 from what I observed. Either way, the fix is simple: https://github.com/openshift/ocs-operator/pull/1185
In ocs-operator.v4.8.0-452.ci on vSphere cluster,
As it is vsphere platform, 'limits' and 'requests' do not exist by default.
So edited storage cluster resource under the crushcollector key with 'limit' and 'request'
---------------------------snipet------------
...
resources:
crashcollector:
limits:
cpu: 50m
memory: 80Mi
requests:
cpu: 50m
memory: 80Mi
storageDeviceSets
...
----------------------------------------------
And after few seconds all crash collector pods respin, then verified the resource 'requests' and 'limits' in rook-ceph-crashcollector-*yaml
----------------------------------------------
name: make-container-crash-dir
resources:
limits:
cpu: 50m
memory: 80Mi
requests:
cpu: 50m
memory: 80Mi
----------------------------------------------
Secondly,
In ocs-operator.v4.7.2 on Red hat ODF Managed service on OSD platform, 'limits' and 'requests' are expected to exist on freshly deployed cluster. so verified the storage cluster yaml and crashcollector pod yaml for the existence of requests and limits on resources.
Verified the result on 2 versions:
1.ocs-operator.v4.8.0-452.ci on vSphere
2.ocs-operator.v4.7.2 on Red hat ODF Managed service
Hence marking this BZ 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 (Red Hat OpenShift Container Storage 4.8.0 container images bug fix and enhancement 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:3003 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |