When multiple applications relate to the same s3-integrator while providing different bucket names from their requirer side (without setting bucket config option on the S3 integrator provider side), calling get_s3_connection_info from loki-coordinator-k8s should return {"bucket": "loki"} and calling get_s3_connection_info from mimi-coordinator-k8s should return {"bucket": "mimir"}
Actual behavior
get_s3_connection_info from loki or mimir returns {"bucket": "loki"}
Steps to reproduce
s3-integrator
,loki-coordinator-k8s
,mimir-coordinator-k8s
juju run s3-integrator/leader sync-s3-credentials access-key=<accesskey> secret-key=<secretkey>
juju config s3-integrator endpoint=<minIO_endpoint>
juju integrate s3-integrator loki-coordinator-k8s:s3
first (Note that: the loki charm passesloki
as abucket
name in requirer app data)juju integrate s3-integrator mimir-coordinator-k8s:s3
(Note that: the mimir charm passesmimir
as abucket
name in requirer app data)jhack show-relation s3-integrator loki-coordinator-k8s
jhack show-relation s3-integrator mimir-coordinator-k8s
Expected behavior
When multiple applications relate to the same
s3-integrator
while providing different bucket names from their requirer side (without settingbucket
config option on the S3 integrator provider side), callingget_s3_connection_info
fromloki-coordinator-k8s
should return{"bucket": "loki"}
and callingget_s3_connection_info
frommimi-coordinator-k8s
should return{"bucket": "mimir"}
Actual behavior
get_s3_connection_info
from loki or mimir returns{"bucket": "loki"}
Versions
Operating system: Ubuntu 22.04.4 LTS
Juju CLI: 3.4.5-genericlinux-amd64
Juju agent: 3.4.5
Charm revision: latest/edge rev: 41
Log output
Juju debug log:
Additional context
https://github.com/canonical/s3-integrator/issues/49