~cjwatson/ols-charm-deps:master

Last commit made on 2023-09-08
Get this branch:
git clone -b master https://git.launchpad.net/~cjwatson/ols-charm-deps
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~cjwatson/ols-charm-deps

Recent commits

9c59a98... by Colin Watson

Only prune payloads if current and desired build labels differ

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

3f624a6... by Colin Watson

Only prune payloads if current and desired build labels differ

`install_payload` can sometimes end up being called more than once for
the same build label: in particular, if you upgrade the charm and change
its build label at the same time, then the resulting `upgrade-charm` and
`config-changed` hooks both clear the `ols.service.installed` flag, but
they also both see the new value of `build_label`. As a result, in
`symlink_switch_payload` mode, the second call to `install_payload` can
end up running `prune_payloads` in such a way that it only keeps a
single payload, which means that the previous payload ends up getting
removed much earlier than we'd expect; that can be a problem if
processes are still running from that payload. I've noticed occasional
problems resulting from this in Launchpad deployments, depending on the
extent to which we've batched up changes.

I think the simplest fix is to only prune payloads if the current and
desired build labels differ. That way things will behave sensibly more
or less regardless of what goes on at the reactive state machine level.

f8c3e08... by Ines Almeida

Specify YAML exceptions in ols-http layer

Merged from https://code.launchpad.net/~ines-almeida/ols-charm-deps/+git/ols-charm-deps/+merge/449702

541234b... by Ines Almeida

Specify YAML exceptions in ols-http layer

eacf3c6... by Guillermo Gonzalez

update ols layer to use --os-storage-url in authenticated swift download of payload if available/set

This is required to download payload from a private container shared by different openstack user

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

eb72ef2... by Guillermo Gonzalez

fix typo in comment

6de90ec... by Guillermo Gonzalez

use --os-storage-url in authenticated swift download of payload if available

0d0ab31... by Guillermo Gonzalez

move swift payload/tarball tests to a separate class to reduce code repetition

f63ae03... by Maximiliano Bertacchini

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

Should prevent services from being randomly reloaded/restarted by juju.

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

593598f... by Maximiliano Bertacchini

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