-
Notifications
You must be signed in to change notification settings - Fork 20
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
[DPE-5713] Catch wrong parameters exception on bucket create function call #701
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #701 +/- ##
==========================================
- Coverage 71.82% 71.75% -0.07%
==========================================
Files 13 13
Lines 3219 3222 +3
Branches 477 477
==========================================
Hits 2312 2312
- Misses 791 794 +3
Partials 116 116 ☔ View full report in Codecov by Sentry. |
Thank you for this! |
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 believe the fix is solving the issue commented on #661 (comment), but not the original issue.
I see that the error is still happening by using the following steps:
sudo apt install net-tools
sudo openssl genrsa -out ~/ca.key 2048
sudo openssl req -x509 -new -nodes -key ~/ca.key -days 1024 -out ~/ca.crt -outform PEM -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
sudo openssl genrsa -out ~/server.key 2048
sudo openssl req -new -key ~/server.key -out ~/server.csr -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
export HOST_IP=$(lxc network list --format json | jq -r '.[] | select(.name=="lxdbr0").config."ipv4.address"' | cut -d'/' -f1)
echo "subjectAltName = DNS:$HOST_IP,IP:$HOST_IP" > ~/extfile.cnf
sudo openssl x509 -req -in ~/server.csr -CA ~/ca.crt -CAkey ~/ca.key -CAcreateserial -out ~/server.crt -days 365 -extfile ~/extfile.cnf
sudo snap install microceph
sudo microceph cluster bootstrap
sudo microceph disk add loop,4G,3
sudo microceph enable rgw --ssl-certificate="$(sudo base64 -w0 ~/server.crt)" --ssl-private-key="$(sudo base64 -w0 ~/server.key)"
watch -c sudo snap logs microceph.rgw -n 20
sudo microceph.radosgw-admin user create --uid test --display-name test
charmcraft pack
juju deploy ./*.charm
juju deploy s3-integrator
juju config s3-integrator endpoint="https://$HOST_IP" bucket="test" path="/test-$RANDOM" region="" s3-uri-style="path" # with missing tls-ca-chain config option.
juju relate s3-integrator postgresql
juju run s3-integrator/leader sync-s3-credentials access-key=XXX secret-key=XXX
@marceloneppel Thanks for raising! It should be fixed now |
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.
Thanks, @lucasgameiroborges! I tested the updated changes and LGTM!
Could you create a backlog ticket for the K8s charm? Thanks.
solves #661