-
Notifications
You must be signed in to change notification settings - Fork 86
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
Enable OOB tests #2187
Open
Kerkesni
wants to merge
13
commits into
improvement/ZENKO-4414
Choose a base branch
from
improvement/ZENKO-4286
base: improvement/ZENKO-4414
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+166
−15
Open
Enable OOB tests #2187
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c01dc96
deploy metadata in end2end sharded tests
Kerkesni 4acbbb9
ensure all metadata components are started properly
Kerkesni 102c8f8
remove retry count from test ring bucket name
Kerkesni 5a84228
only deploy metadata when needed
Kerkesni e2366aa
enable OOB tests
Kerkesni 91807ca
set backbeat logging level to debug
Kerkesni 2b138db
increase oob test timeout
Kerkesni 4d588f0
wait for the ingestion processor to start consuming from Kafka
Kerkesni a2dde5c
do not check return code in oob test
Kerkesni b6e9ea7
wait to have the expected number of consumers in the consumer group
Kerkesni df09662
make namespace configurable in wait_for_consumer_group
Kerkesni c47e76d
dynamically get the ingestion consumer group expected member count
Kerkesni f158a87
only wait for ingestion consumer group when ingestion tests are enabled
Kerkesni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
|
||
set -exu | ||
|
||
. "$(dirname $0)/common.sh" | ||
|
||
# create a separate namespace for metadata | ||
kubectl create namespace metadata | ||
|
||
# clone the metadata repository | ||
git init metadata | ||
cd metadata | ||
git fetch --depth 1 --no-tags https://${GIT_ACCESS_TOKEN}@github.com/scality/metadata.git | ||
git checkout FETCH_HEAD | ||
|
||
# install metadata chart in a separate namespace | ||
cd helm | ||
helm dependency update cloudserver/ | ||
helm install -n metadata \ | ||
--set metadata.persistentVolume.storageClass='' \ | ||
--set metadata.sproxyd.persistentVolume.storageClass='' \ | ||
s3c cloudserver/ | ||
|
||
# wait for the repds to be created | ||
kubectl -n metadata rollout status --watch --timeout=300s statefulset/s3c-metadata-repd | ||
# wait for all repd pods to start serving admin API ports | ||
wait_for_all_pods_behind_services metadata-repd metadata "91*" 60 | ||
|
||
# current chart uses an old version of bucketd that has issues reconnecting to the repd | ||
# when bucketd is started first. Restarting bucketd after repd is ready. | ||
kubectl -n metadata rollout restart deployment/s3c-metadata-bucketd | ||
# wait for the bucketd pods to be created | ||
kubectl -n metadata rollout status --watch --timeout=300s deploy/s3c-metadata-bucketd | ||
# wait for all bucketd pods to start serving port 9000 | ||
wait_for_all_pods_behind_services metadata-bucketd metadata 9000 60 | ||
|
||
# manually add "s3c.local" to the rest endpoints list as it's not configurable in the chart | ||
current_config=$(kubectl get configmap/s3c-cloudserver-config-json -n metadata -o jsonpath='{.data.config\.json}') | ||
updated_config=$(echo "$current_config" | jq '.restEndpoints["s3c.local"] = "us-east-1"') | ||
kubectl patch configmap/s3c-cloudserver-config-json -n metadata --type='merge' -p="$(jq -n --arg v "$updated_config" '{"data": {"config.json": $v}}')" | ||
|
||
# restarting cloudserver to take the new configmap changes into account | ||
kubectl -n metadata rollout restart deployment/s3c-cloudserver | ||
# wait for the cloudserver pods to be created | ||
kubectl -n metadata rollout status --watch --timeout=300s deployment/s3c-cloudserver | ||
# wait for the cloudserver pods to start serving port 8000 | ||
wait_for_all_pods_behind_services cloudserver metadata 8000 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should (eventually) get baked into backbeat?
--> so we should probably add a ticket (and we can put it in the EPIC "cleanup kafka management" https://scality.atlassian.net/browse/ARTESCA-9180)