Bug 2246993 - StoraegProfile CRs are mutable upon creation
Summary: StoraegProfile CRs are mutable upon creation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.14
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ODF 4.15.0
Assignee: Racheli Aizik
QA Contact: Amrita Mahapatra
URL:
Whiteboard: isf-provider
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-30 10:39 UTC by Racheli Aizik
Modified: 2024-03-19 15:28 UTC (History)
7 users (show)

Fixed In Version: 4.14.0-162
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-19 15:28:06 UTC
Embargoed:


Attachments (Terms of Use)
Sample StorageProfile CR (437 bytes, text/plain)
2023-11-29 09:58 UTC, Racheli Aizik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 2231 0 None open Altering restrictions for StorageProfile API 2023-10-30 10:39:18 UTC
Red Hat Issue Tracker RHSTOR-4895 0 None None None 2023-10-30 10:39:18 UTC
Red Hat Product Errata RHSA-2024:1383 0 None None None 2024-03-19 15:28:10 UTC

Description Racheli Aizik 2023-10-30 10:39:19 UTC
Description of problem (please be detailed as possible and provide log
snippests):

Once creating a new StorageProfile with blank or removed DeviceClass, editing its fields (namely DeviceClass, but this also applies to the rest of the fields as they're marked with Optional) is enabled. 

Version of all relevant components (if applicable):
4.14-stable

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


Is there any workaround available to the best of your knowledge?
The solution is to adjust the validation rules to guarantee immutability at all times.


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

Can this issue reproduce from the UI?


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.Create a StroageProfile CR with a blank sub-field
2.Edit it to include that sub-field's value



Actual results:
The changes will be applied w/o errors

Expected results:
Changes should not be applied and an error needs to be displayed.


Additional info:

Comment 3 Racheli Aizik 2023-11-29 09:58:22 UTC
Created attachment 2001946 [details]
Sample StorageProfile CR

Comment 8 errata-xmlrpc 2024-03-19 15:28:06 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.