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

Fixes for Operator install of Replication #612

Merged
merged 3 commits into from May 15, 2023

Conversation

donatwork
Copy link
Contributor

@donatwork donatwork commented May 12, 2023

Description

Cleared up confusing documentation for installing Replication via CSM Operator. The current documentation is referring to the Helm repctl section for installation steps and these steps are not compatible with the Operator install process. This change also requires fixes in Operator to handle the stretched cluster case. I will update with the PRs for those changes one I get them.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
788

Checklist:

  • Have you run a grammar and spell checks against your submission?
  • Have you tested the changes locally?
  • Have you tested whether the hyperlinks are working properly?
  • Did you add the examples wherever applicable?
  • Have you added high-resolution images?

@donatwork donatwork changed the title Fixes for Operator install of Reolication Fixes for Operator install of Replication May 12, 2023
@donatwork donatwork marked this pull request as ready for review May 12, 2023 13:06
```shell
./repctl create -f ../deploy/replicationcrds.all.yaml
```
3. Inject the service account's configuration into the clusters. CSM Operator needs the admin configs instead of the service account configurations to be able to properly manage the target clusters.

Choose a reason for hiding this comment

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

I do not understand this step. "Inject" does not seem to be a proper verb here. The step also says to "Inject the service account's configuration...", and then the explanatory text says that admin co0nfigs are needed, not the service account configurations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove the second sentence as it does not relate to the installation steps.

Copy link

@rsedlock1958 rsedlock1958 left a comment

Choose a reason for hiding this comment

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

There is one comment.

@@ -5,23 +5,47 @@ description: >
Pre-requisite for Installing Replication via Dell CSM Operator
---

The CSM Replication module for supported Dell CSI Drivers can be installed via the Dell CSM Operator. Dell CSM Operator will deploy CSM Replication sidecar and the complemental CSM Replication controller manager.
The CSM Replication module for supported Dell CSI Drivers can be installed via the Dell CSM Operator. Dell CSM Operator will deploy the CSM Replication sidecar and the CSM Replication Controller Manager.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can include replication Crds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Replication CRDs are not installed via Operator. There is a step that installs the CRDs using repctl. However in the future we may have Operator install all fo the CRDs.

- one or more target clusters which will serve as diaster recovery clusters for the main cluster

To configure all the clusters, follow the steps below:
- a target cluster which will serve as the disaster recovery cluster, a single stretched cluster configuration is also supported
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this two points be separated out ' target cluster which will serve as the disaster recovery cluster .
"the CSM Operator also supports a single stretched cluster configuration offering even more flexibility in your replication setup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The text you suggest has some marketing/promo content. I want to keep the instructions less marketing savvy as those can be in another more appropriate section.

2. On each of the target clusters, configure the prerequisites for deploying the driver via Dell CSM Operator. For example, PowerScale has the following [prerequisites for deploying PowerScale via Dell CSM Operator](../../drivers/powerscale/#prerequisite)
The rest of the instructions will assume that your current working directory is the csm-replication/repctl directory.
## Configuration Steps
To configure replication when using multiple clusters:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this changed to support two cluster?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworded this as it was from an earlier iteration.

2. On each of the target clusters, configure the prerequisites for deploying the driver via Dell CSM Operator. For example, PowerScale has the following [prerequisites for deploying PowerScale via Dell CSM Operator](../../drivers/powerscale/#prerequisite)
The rest of the instructions will assume that your current working directory is the csm-replication/repctl directory.
## Configuration Steps
To configure replication when using multiple clusters:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this changed to support two cluster? or Source and target Cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworded as this was a leftover from a previous edit.

```shell
./repctl create sc --from-config ./examples/<storage>_example_values.yaml
```
6. On each of the target clusters, configure the [prerequisites](../../../csmoperator/drivers/#pre-requisites-for-installation-of-the-csi-drivers) for deploying the driver via Dell CSM Operator.
Copy link
Contributor

Choose a reason for hiding this comment

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

on Target Cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

```shell
./repctl cluster add -f "/root/.kube/config-1","/root/.kube/config-2" -n "cluster-1","cluster-2"
```
> **_NOTE:_** If using a single Kubernetes cluster in a stretched configuration there will be only one cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to provide example for single cluster configuration

Copy link
Contributor Author

@donatwork donatwork May 12, 2023

Choose a reason for hiding this comment

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

If we have to have separate examples then we should have two sections which are more linear. One section for two clusters and another for a single cluster.

@donatwork
Copy link
Contributor Author

Cleaned up the requirements a bit.

Copy link

@rsedlock1958 rsedlock1958 left a comment

Choose a reason for hiding this comment

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

No grammatical edits required

@donatwork donatwork merged commit 2f11206 into main May 15, 2023
4 checks passed
@donatwork donatwork deleted the 788-replication-stretched-operator branch May 15, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants