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

[DPE-5713] Catch wrong parameters exception on bucket create function call #701

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucasgameiroborges
Copy link
Member

solves #661

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.82%. Comparing base (5c8949f) to head (989a34e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #701   +/-   ##
=======================================
  Coverage   71.82%   71.82%           
=======================================
  Files          13       13           
  Lines        3219     3219           
  Branches      477      477           
=======================================
  Hits         2312     2312           
  Misses        791      791           
  Partials      116      116           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hloeung
Copy link

hloeung commented Dec 16, 2024

Thank you for this!

Copy link
Member

@marceloneppel marceloneppel left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants