Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info/error messages for SSD/HDD support - LSO mode #1437

Merged

Conversation

SanjalKatiyar
Copy link
Collaborator

@SanjalKatiyar SanjalKatiyar commented Jun 11, 2024

https://issues.redhat.com/browse/RHSTOR-5835
https://issues.redhat.com/browse/RHSTOR-5834

LSO configured as part of StorageSystem deployment -

SSDs are detected (not blocking users from deployment):

Screenshot 2024-06-19 at 1 40 25 PM

No SSDs are detected (blocking users from deployment):

Screenshot 2024-06-19 at 1 40 48 PM

LSO pre-configured before StorageSystem deployment -

No SSDs detected (blocking users from deployment):

Screenshot 2024-06-19 at 1 44 43 PM

In case LSO is deleted or any other edge case (not blocking users from deployment, showing a general info message instead):

Screenshot 2024-06-19 at 1 47 12 PM

@@ -0,0 +1,71 @@
import * as React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is mostly a refactor, moving existing functionality into a separate hook... only needs high-level review...

@@ -0,0 +1,57 @@
import { LABEL_OPERATOR, LABEL_SELECTOR } from '@odf/core/constants';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is mostly a refactor, moving existing common utils into a separate file... only needs high-level review...

@@ -0,0 +1,100 @@
import * as React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is mostly a refactor, moving existing functionality into a separate hook... only needs high-level review...

Comment on lines -169 to -174
React.useEffect(() => {
// Reset pvCount that could have been set by another StorageClass.
dispatch({ type: 'capacityAndNodes/pvCount', payload: 0 });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember we added this as part of "Performance mode" epic, but on taking a second look I see that we don't need this.
https://github.com/red-hat-storage/odf-console/blob/master/packages/odf/components/create-storage-system/reducer.ts#L192 should reset the redux state.

Comment on lines -447 to -452
React.useEffect(() => {
// Reset selected nodes that could have been set by another StorageClass.
dispatch({ type: 'wizard/setNodes', payload: [] });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember we added this as part of "Performance mode" epic, but on taking a second look I see that we don't need this.
https://github.com/red-hat-storage/odf-console/blob/master/packages/odf/components/create-storage-system/reducer.ts#L192 should reset the redux state.

@alfonsomthd
Copy link
Collaborator

LGTM
@SanjalKatiyar If possible, please add some unit tests for the new hooks.
Delegating the tagging to @bipuladh @GowthamShanmugam

@SanjalKatiyar
Copy link
Collaborator Author

LGTM @SanjalKatiyar If possible, please add some unit tests for the new hooks. Delegating the tagging to @bipuladh @GowthamShanmugam

make sense, will probably add it in a different PR though... it's already getting long due to lot of refactoring...

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@alfonsomthd
Copy link
Collaborator

LGTM @SanjalKatiyar If possible, please add some unit tests for the new hooks. Delegating the tagging to @bipuladh @GowthamShanmugam

@bipuladh ⬆️ (just FYI)

@bipuladh
Copy link
Contributor

/lgtm

Copy link
Contributor

openshift-ci bot commented Jun 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bipuladh, SanjalKatiyar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [SanjalKatiyar,bipuladh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@SanjalKatiyar
Copy link
Collaborator Author

/test odf-console-e2e-aws

@openshift-merge-bot openshift-merge-bot bot merged commit f6b7f36 into red-hat-storage:master Jun 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants