~maxiberta/ols-charm-deps/+git/ols-layers:stable-db-replica-urls

Last commit made on 2023-05-19
Get this branch:
git clone -b stable-db-replica-urls https://git.launchpad.net/~maxiberta/ols-charm-deps/+git/ols-layers
Only Maximiliano Bertacchini can upload to this branch. If you are Maximiliano Bertacchini please log in for upload directions.

Branch merges

Branch information

Name:
stable-db-replica-urls
Repository:
lp:~maxiberta/ols-charm-deps/+git/ols-layers

Recent commits

593598f... by Maximiliano Bertacchini

Update the PG layer to return a sorted list of replica URLs for improved service stability

9b78a50... by Guillermo Gonzalez

Raise an exception when get_db_uris is called and main database/connectionstring is None

With the recent changes, mainly the update of interface-pgsql there is a race of some kind while removing applications from a model, which causes the interface-pgsql to keep the master.available flag set but the relation data is empty and cannot build a proper ConnectionString object and thus returning None.
This is just a way to raise a specific exception instead of failing to get uri from None, the exception handling is responsibility of the charm.

Merged from https://code.launchpad.net/~verterok/ols-charm-deps/+git/ols-layers/+merge/442617

3a99b05... by Guillermo Gonzalez

black it

ab81825... by Guillermo Gonzalez

raise an exception when get_db_uris is called and main database/connectionstring is None

0afca81... by Guillermo Gonzalez

Allow configuring broker_vhost at the charm config level alongside the layer.yaml and the fallback default value.

This is to handle the case of applications that want to set this config in a more dynamic way

Merged from https://code.launchpad.net/~verterok/ols-charm-deps/+git/ols-layers/+merge/441626

4b0f035... by Guillermo Gonzalez

Properly handle PayloadError in base layer reactive code and include symlink_switch_payload in the check for requiring a build_label

Merged from https://code.launchpad.net/~verterok/ols-charm-deps/+git/ols-layers/+merge/441699

bf23be9... by Guillermo Gonzalez

add back the reactive side check of build_label, but only for
symlink_switch_payload and tarball_payload

e942849... by Guillermo Gonzalez

delegate payload error handling to ols.base.install_payload and only set the error message in the status on the reactive side

6529897... by Guillermo Gonzalez

Add broker_vhost config and make it the preferred/first choice.

Also handle changes to the config by re-sending the relation data to
rabbitmq

7c4df66... by Guillermo Gonzalez

Fix payload fetching when the service name is different from the tarball/payload name.

Use the tarball_name to build the object path in the container

Merged from https://code.launchpad.net/~verterok/ols-charm-deps/+git/ols-layers/+merge/441024