-
Notifications
You must be signed in to change notification settings - Fork 56
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 regional dr environment without a hub #907
Merged
Merged
Commits on Jul 25, 2023
-
To support an environment without a hub we need different flows when a hub is available and not. Refactor the code to make it easy to support this case. Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 266eeb6 - Browse repository at this point
Copy the full SHA 266eeb6View commit details -
Support hubless environment in ramenctl
If environment does not have a hub: - `ramenctl deploy` skips hub deployment - `ramenctl undeploy` skips the hub deployment - `ramenctl config` installs the s3 secret and ramen-dr-cluster-operator-config map on the dr clusters. - `ramenctl unconfig` delete the s3 secrets from the dr clusters. Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 900c044 - Browse repository at this point
Copy the full SHA 900c044View commit details -
Add regional dr environment without a hub
For testing kube object projection and recipes in an environment without a hub. This is not really supported but we know about some users using this topology, and having a test environment makes it easier to support them and make sure we don't break them by mistake. This environment is very similar to regional-dr.yaml, with these changes: - The hub cluster was removed - ocm components were removed, since there is no hub - submariner is deployed at the end instead of of running on the hub at the start of the deployment. Because we run submariner at the end, and it takes about 140 seconds to deploy and run the self test, starting this environment is slower than the full regional-dr environment. An alternative is to remove submariner and volsync from this environment, and disable volsync in ramen config when a hub is not available. Example run: $ drenv start envs/regional-dr-hubless.yaml 2023-07-10 00:24:52,538 INFO [rdr-hubless] Starting environment 2023-07-10 00:24:52,583 INFO [dr1] Starting minikube cluster 2023-07-10 00:24:53,617 INFO [dr2] Starting minikube cluster 2023-07-10 00:27:17,476 INFO [dr1] Cluster started in 145.15 seconds 2023-07-10 00:27:17,477 INFO [dr1/0] Running addons/cert-manager/start 2023-07-10 00:27:17,477 INFO [dr1/1] Running addons/csi-addons/start 2023-07-10 00:27:21,254 INFO [dr2] Cluster started in 147.89 seconds 2023-07-10 00:27:21,255 INFO [dr2/0] Running addons/cert-manager/start 2023-07-10 00:27:21,255 INFO [dr2/1] Running addons/csi-addons/start 2023-07-10 00:27:40,867 INFO [dr1/0] addons/cert-manager/start completed in 23.39 seconds 2023-07-10 00:27:40,867 INFO [dr1/0] Running addons/rook-operator/start 2023-07-10 00:27:44,417 INFO [dr2/0] addons/cert-manager/start completed in 23.16 seconds 2023-07-10 00:27:44,417 INFO [dr2/0] Running addons/rook-operator/start 2023-07-10 00:27:50,084 INFO [dr1/1] addons/csi-addons/start completed in 32.61 seconds 2023-07-10 00:27:50,084 INFO [dr1/1] Running addons/olm/start 2023-07-10 00:27:53,573 INFO [dr2/1] addons/csi-addons/start completed in 32.32 seconds 2023-07-10 00:27:53,573 INFO [dr2/1] Running addons/olm/start 2023-07-10 00:28:11,292 INFO [dr1/0] addons/rook-operator/start completed in 30.42 seconds 2023-07-10 00:28:11,292 INFO [dr1/0] Running addons/rook-cluster/start 2023-07-10 00:28:16,015 INFO [dr2/0] addons/rook-operator/start completed in 31.60 seconds 2023-07-10 00:28:16,016 INFO [dr2/0] Running addons/rook-cluster/start 2023-07-10 00:29:17,888 INFO [dr1/1] addons/olm/start completed in 87.80 seconds 2023-07-10 00:29:17,888 INFO [dr1/1] Running addons/minio/start 2023-07-10 00:29:21,088 INFO [dr2/1] addons/olm/start completed in 87.51 seconds 2023-07-10 00:29:21,088 INFO [dr2/1] Running addons/minio/start 2023-07-10 00:30:13,180 INFO [dr2/0] addons/rook-cluster/start completed in 117.16 seconds 2023-07-10 00:30:13,181 INFO [dr2/0] Running addons/rook-pool/start 2023-07-10 00:30:14,771 INFO [dr1/1] addons/minio/start completed in 56.88 seconds 2023-07-10 00:30:14,771 INFO [dr1/1] Running addons/velero/start 2023-07-10 00:30:31,209 INFO [dr1/0] addons/rook-cluster/start completed in 139.92 seconds 2023-07-10 00:30:31,209 INFO [dr1/0] Running addons/rook-pool/start 2023-07-10 00:30:42,475 INFO [dr2/0] addons/rook-pool/start completed in 29.29 seconds 2023-07-10 00:30:42,475 INFO [dr2/0] Running addons/rook-toolbox/start 2023-07-10 00:30:49,389 INFO [dr1/1] addons/velero/start completed in 34.62 seconds 2023-07-10 00:30:49,389 INFO [dr1/1] Running addons/velero/test 2023-07-10 00:30:59,842 INFO [dr2/1] addons/minio/start completed in 98.75 seconds 2023-07-10 00:30:59,843 INFO [dr2/1] Running addons/velero/start 2023-07-10 00:31:00,068 INFO [dr1/0] addons/rook-pool/start completed in 28.86 seconds 2023-07-10 00:31:00,068 INFO [dr1/0] Running addons/rook-toolbox/start 2023-07-10 00:31:03,056 INFO [dr1/0] addons/rook-toolbox/start completed in 2.99 seconds 2023-07-10 00:31:04,891 INFO [dr2/0] addons/rook-toolbox/start completed in 22.42 seconds 2023-07-10 00:31:24,670 INFO [dr1/1] addons/velero/test completed in 35.28 seconds 2023-07-10 00:31:32,393 INFO [dr2/1] addons/velero/start completed in 32.55 seconds 2023-07-10 00:31:32,393 INFO [dr2/1] Running addons/velero/test 2023-07-10 00:32:07,067 INFO [dr2/1] addons/velero/test completed in 34.67 seconds 2023-07-10 00:32:07,067 INFO [rdr-hubless/0] Running addons/rbd-mirror/start 2023-07-10 00:32:07,068 INFO [rdr-hubless/1] Running addons/submariner/start 2023-07-10 00:33:03,816 INFO [rdr-hubless/0] addons/rbd-mirror/start completed in 56.75 seconds 2023-07-10 00:33:03,816 INFO [rdr-hubless/0] Running addons/rbd-mirror/test 2023-07-10 00:33:20,852 INFO [rdr-hubless/0] addons/rbd-mirror/test completed in 17.04 seconds 2023-07-10 00:33:33,223 INFO [rdr-hubless/1] addons/submariner/start completed in 86.16 seconds 2023-07-10 00:33:33,223 INFO [rdr-hubless/1] Running addons/submariner/test 2023-07-10 00:34:28,427 INFO [rdr-hubless/1] addons/submariner/test completed in 55.20 seconds 2023-07-10 00:34:28,427 INFO [rdr-hubless/1] Running addons/volsync/start 2023-07-10 00:35:01,109 INFO [rdr-hubless/1] addons/volsync/start completed in 32.68 seconds 2023-07-10 00:35:01,109 INFO [rdr-hubless/1] Running addons/volsync/test 2023-07-10 00:36:40,248 INFO [rdr-hubless/1] addons/volsync/test completed in 99.14 seconds 2023-07-10 00:36:40,249 INFO [rdr-hubless] Environment started in 707.96 seconds Part-of: RamenDR#902 Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 26bd058 - Browse repository at this point
Copy the full SHA 26bd058View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.