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

Block RDR policy creation for non-DR optimized cluster #1116

Merged

Conversation

GowthamShanmugam
Copy link
Contributor

@GowthamShanmugam GowthamShanmugam changed the title Blocking DRPolicy creation for multiple ODF cluster Block RDR policy creation for none DR optimized cluster Dec 6, 2023
@GowthamShanmugam GowthamShanmugam changed the title Block RDR policy creation for none DR optimized cluster Block RDR policy creation for non-DR optimized cluster Dec 6, 2023
{errorMessage?.description}
</Alert>
(!!errorMessage.scope
? errorMessage?.scope === replicationType
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
? errorMessage?.scope === replicationType
? errorMessage.scope === replicationType

"1 or more managed clusters are offline": "1 or more managed clusters are offline",
"The status for both the managed clusters must be available for creating a DR policy. To restore a cluster to an available state, refer to the instructions in the ACM documentation.": "The status for both the managed clusters must be available for creating a DR policy. To restore a cluster to an available state, refer to the instructions in the ACM documentation.",
"Cannot proceed with one or more selected clusters": "Cannot proceed with one or more selected clusters",
"We could not retrieve any information about the managed cluster {{names}}. Check the documentation for potential causes and follow the steps mentioned and try again.": "We could not retrieve any information about the managed cluster {{names}}. Check the documentation for potential causes and follow the steps mentioned and try again.",
"{{ names }} has either an unsupported ODF version or the ODF operator is missing, install or update to ODF {{ version }} or the latest version to enable DR protection.": "{{ names }} has either an unsupported ODF version or the ODF operator is missing, install or update to ODF {{ version }} or the latest version to enable DR protection.",
"{{ names }} is not connected to RHCS": "{{ names }} is not connected to RHCS",
"Cluster not pre-configured for Regional-DR": "Cluster not pre-configured for Regional-DR",
"The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrated the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.": "The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrated the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrated the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.": "The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrated the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.",
"The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrated the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.": "The selected cluster(s)[{{clusters}}] is not pre-configured for a Regional-DR setup. Migrate the cluster's OSD to optimise it for Disaster recovery services. To learn more about OSDs migration best practices and its consequences refer to the documentation.",

Copy link
Collaborator

Choose a reason for hiding this comment

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

is this text verified by doc team ??

Copy link
Collaborator

Choose a reason for hiding this comment

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

should also be OSDs (plural) IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not, yet, this description is suggested by UX, but still microscopy is under review. We can't wait for them to come back, because we are near FF

@@ -173,15 +186,19 @@ export const DRReplicationType: React.FC<DRReplicationTypeProps> = ({
return (
<>
{!!errorMessage ? (
Copy link
Collaborator

Choose a reason for hiding this comment

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

what about just:
!!errorMessage && errorMessage?.scope !== replicationType ? {replicationType && (... : <Alert...

@GowthamShanmugam
Copy link
Contributor Author

GowthamShanmugam commented Dec 8, 2023

image

@GowthamShanmugam GowthamShanmugam force-pushed the RHSTOR-5121 branch 2 times, most recently from a6e340a to 5198ce0 Compare December 11, 2023 08:19
@SanjalKatiyar
Copy link
Collaborator

SanjalKatiyar commented Dec 11, 2023

CI un-blocked by: #1125 (PR#1125 is needed because of OCP react-router-dom updates, else components using imports will break).

@GowthamShanmugam GowthamShanmugam force-pushed the RHSTOR-5121 branch 4 times, most recently from ad7c1f1 to 1942efd Compare December 12, 2023 13:50
@SanjalKatiyar
Copy link
Collaborator

/approve
/lgtm

@bipuladh
Copy link
Contributor

/lgtm

@SanjalKatiyar
Copy link
Collaborator

/test odf-console-e2e-aws

@SanjalKatiyar
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 13, 2023
Copy link
Contributor

openshift-ci bot commented Dec 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bipuladh, GowthamShanmugam, 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

@openshift-merge-bot openshift-merge-bot bot merged commit 45bebae into red-hat-storage:master Dec 13, 2023
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