Steps to reproduce
- deploy s3 integrator with set of credentials 1
- deploy s3 integrator with set of credentials 2
- deploy s3 requirer charm that has no limit on the number of requires relations it can form over the
s3 interface
- relate s3 integrator charms (both) with s3 requirer charm
- shell into s3 requirer charm and call
s3_requires.get_s3_connection_info() (https://github.com/canonical/s3-integrator/blob/main/lib/charms/data_platform_libs/v0/s3.py#L777-L783)
- this will return credentials from only one of the relations (the first one it finds when it iterates over all relations over the same endpoint)
https://documentation.ubuntu.com/ops/latest/reference/ops/#ops.Model.relations shows that the model.relations array is key-ed by the relation endpoint
Expected behavior
The method should return s3 connection from all upstream related s3-integrator charms
Furthermore, it would likely be a good idea to enable tagging of s3 connections (on the s3 integrator charm), and including this tag in the relation data + property to access tag S3Requires s3 connection info. This way, I can configure 2 s3 connections (1 for backups, 1 for logs) and be able to appropriately distinguish the two connections by their tags in the requirer charm
Actual behavior
Versions
Operating system: ubuntu 24.04
Juju CLI: 3.6
Juju agent: 3.6
Log output
Juju debug log:
n/a
Additional context
n/a
Steps to reproduce
s3interfaces3_requires.get_s3_connection_info()(https://github.com/canonical/s3-integrator/blob/main/lib/charms/data_platform_libs/v0/s3.py#L777-L783)https://documentation.ubuntu.com/ops/latest/reference/ops/#ops.Model.relations shows that the
model.relationsarray is key-ed by the relation endpointExpected behavior
The method should return s3 connection from all upstream related s3-integrator charms
Furthermore, it would likely be a good idea to enable tagging of s3 connections (on the s3 integrator charm), and including this tag in the relation data + property to access tag S3Requires s3 connection info. This way, I can configure 2 s3 connections (1 for backups, 1 for logs) and be able to appropriately distinguish the two connections by their tags in the requirer charm
Actual behavior
Versions
Operating system: ubuntu 24.04
Juju CLI: 3.6
Juju agent: 3.6
Log output
Juju debug log:
n/a
Additional context
n/a