-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
build: update s5cmd to version v2.2.1 #12898
Conversation
This PR provides a change that should update the s5cmd version as requested in #12883 . I wanted to add a test to verify the effect but could not yet come up with a simple way to test locally with |
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.
LGTM, will merge after you've been able to test it locally.
@travisn wrote:
Thanks! thanks to all your help yesterday, I just managed to verify locally in minikube:
|
8225687
to
befe2b1
Compare
@travisn : I also added a check to the canary integration test workflow to ensure this doesn't regress |
23af411
to
0ac473d
Compare
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.
commit title, huild
h
->b
0ac473d
to
c99263f
Compare
@subhamkrai wrote:
done, thanks! |
d5e6af2
to
f59e919
Compare
timeout 60 sh -c "until kubectl -n rook-ceph exec $toolbox -- curl --silent --show-error ${mgr_raw%%:*}:9283; do echo 'waiting for mgr prometheus exporter to be ready' && sleep 1; done" | ||
|
||
- name: check s5cmd version in the toolbox image |
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.
Need to remove this section of the test since we moved it down to line 319. I see the new test in that section is passing, but this section is failing since we know the toolbox-operator-image is not running.
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.
@travisn wrote:
Need to remove this section of the test since we moved it down to line 319. I see the new test in that section is passing, but this section is failing since we know the toolbox-operator-image is not running.
what is it that you are suggesting yo remove? lines 77 -- 79 ?
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.
I tried something different now, since I saw the attempt at a diagnostic output of the s5cmd version failing because it could not find the binary ...
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.
We need to remove this whole section, lines 79-88. This CI test runs the different toolbox. The other CI test does run the toolbox operator image so we only can test it on lines 319-328.
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.
@travisn wrote:
We need to remove this whole section, lines 79-88. This CI test runs the different toolbox. The other CI test does run the toolbox operator image so we only can test it on lines 319-328.
got it, thanks. removed.
0b7eccf
to
2914395
Compare
@@ -73,6 +73,7 @@ jobs: | |||
toolbox=$(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[*].metadata.name}') | |||
timeout 15 sh -c "until kubectl -n rook-ceph exec $toolbox -- ceph mgr dump -f json|jq --raw-output .active_addr|grep -Eosq \"(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\" ; do sleep 1 && echo 'waiting for the manager IP to be available'; done" | |||
mgr_raw=$(kubectl -n rook-ceph exec $toolbox -- ceph mgr dump -f json|jq --raw-output .active_addr) | |||
|
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.
revert this blank line?
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.
done, thanks!
s5cmd_version="$(kubectl -n rook-ceph exec ${toolbox} -- /ust/local/bin/s5cmd version)" | ||
echo ${s5cmd_version} | grep -q "^v2.2.1" || { | ||
echo " Error: the version of s5cmd version in the toolbox is not the expected v2.2.1 but ${s5cmd_version}" | ||
|
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.
nit: remove blank line
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.
done, thanks
2914395
to
b7b8978
Compare
This is the latest available version. The previously used version v2.0.0 was very outdated. Fixes: rook#12883 Co-authored-by: subham rai subhamkrai <srai@redhat.com> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Subham Rai subhamkrai <srai@redhat.com> signed-off-by: Travis Nielsen <tnielsen@redhat.com> Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
8f37949
to
cef43e1
Compare
@travisn I think I have addressed all your requests now. Let's see how the check goes this time ... |
@subhamkrai I think all your requests are addressed and the new test is finally passing! :-) Please re-review |
build: update s5cmd to version v2.2.1 (backport #12898)
This is the latest available version.
The previously used version v2.0.0 was very outdated.
Fixes: #12883
Description of your changes:
This updates the version of s5cmd built into the container(s) to the latest available version v2.2.1
Which issue is resolved by this Pull Request:
Resolves #12883
Checklist: