Bug 2263319 - Replica-1 configuration fails with cephcluster spec invalid value
Summary: Replica-1 configuration fails with cephcluster spec invalid value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.15
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ODF 4.15.0
Assignee: Malay Kumar parida
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-08 10:17 UTC by Aviad Polak
Modified: 2024-03-19 15:32 UTC (History)
3 users (show)

Fixed In Version: 4.15.0-136
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-19 15:32:38 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 2454 0 None open Fix cephCluster invalid spec error in replica-1 due to misspelled field 2024-02-08 10:35:55 UTC
Github red-hat-storage ocs-operator pull 2455 0 None open Bug 2263319: [release-4.15] Fix cephCluster invalid spec error in replica-1 due to misspelled field 2024-02-08 13:30:39 UTC
Red Hat Product Errata RHSA-2024:1383 0 None None None 2024-03-19 15:32:41 UTC

Description Aviad Polak 2024-02-08 10:17:42 UTC
Description of problem (please be detailed as possible and provide log
snippests):
sometimes, when trying to apply configuration:
Ceph Non Resilient Pools:
      Enable:  true
to cluster (tested on vmware and another platforms), we got following errors:
Message:               Error while reconciling: CephCluster.ceph.rook.io "ocs-storagecluster-cephcluster" is invalid: [spec.storage.storageClassDeviceSets[3].count: Invalid value: 0: spec.storage.storageClassDeviceSets[3].count in body should be greater than or equal to 1, spec.storage.storageClassDeviceSets[4].count: Invalid value: 0: spec.storage.storageClassDeviceSets[4].count in body should be greater than or equal to 1, spec.storage.storageClassDeviceSets[5].count: Invalid value: 0: spec.storage.storageClassDeviceSets[5].count in body should be greater than or equal to 1]

Version of all relevant components (if applicable):

odf-operator.v4.15.0-130.stable

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

yes
Is there any workaround available to the best of your knowledge?

not that im aware of

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
yes, but not for every try


Steps to Reproduce:
1. setup regular odf cluster (3m, 3w, 3osd)
2. do """oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephNonResilientPools/enable", "value": true }]'"""
3. 


Actual results:
storagecluster return Err state

Expected results:


Additional info:

Comment 3 Malay Kumar parida 2024-02-08 10:29:04 UTC
While defining the default for the field it should have been
kubebuilder in all small letters, but earlier it was defined as
kubeBuilder which was causing the error. As the default 1 was not being
set, 0 was being passed as the count to the cephcluster which was reporting
invalid spec error.

Comment 8 errata-xmlrpc 2024-03-19 15:32:38 UTC
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 (Important: Red Hat OpenShift Data Foundation 4.15.0 security, enhancement, & 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/RHSA-2024:1383


Note You need to log in before you can comment on or make changes to this bug.