~cjwatson/ols-charm-deps:launchpad

Last commit made on 2020-02-28
Get this branch:
git clone -b launchpad 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:
launchpad
Repository:
lp:~cjwatson/ols-charm-deps

Recent commits

f48dedc... by Colin Watson

Allow fetching payloads from Juju resources

This is sometimes convenient for local testing of charms.

52646cc... by Colin Watson

Add a symlink-switch deployment mode

This makes it possible to use layer-ols (and, more interestingly, all
the layers built on top of it) for deployments that are too stateful, or
too reliant on being deployed on metal rather than in a cloud, to be
able to use the usual full switch deployment technique. Several parts
of Launchpad fall into this category.

When the symlink_switch_payload layer configuration flag and the
build_label configuration item are both set, install_payload will
extract the payload to a directory based on the build label and maintain
the code directory as a symlink to the current payload. Note that this
only really makes sense if payloads can be fetched from somewhere else
rather than built into the charm, which means that this option is
currently mainly useful when fetching payloads from Swift.

3bb777b... by Colin Watson

Use distro.linux_distribution rather than platform.dist

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

40560fb... by Colin Watson

Use distro.linux_distribution rather than platform.dist

platform.dist was deprecated in Python 3.5 and removed in Python 3.8.
The distro package is the recommended replacement.

74bfefc... by Colin Watson

Add optional Swift storage for payloads

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

c62f2c0... by Colin Watson

Fix ResourceWarnings on Python 3

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

64d9f7f... by Colin Watson

Add optional Swift storage for payloads

Some Launchpad deployments (currently the git hosting backend) store the
payload in Swift and configure the charm to be able to fetch it from
there, rather than building the payload into the charm. This is
convenient for various reasons: it reduces the space used on the
controller, and in the git.launchpad.net case it means that it's
possible to deploy a different version of the payload even if
git.launchpad.net itself is broken.

In the cause of converging Launchpad's deployment code with that used by
the rest of OLS, I'd like to add this as an optional facility in
layer-ols.

84a7dbc... by Colin Watson

Fix ResourceWarnings on Python 3

Python 3 tends to produce warnings for code along the lines of
open(...).read(). Use context manager forms instead.

5bcf9be... by Simon Davy

fix bug in ols.render that would leave tmp files behind, and add tests for ols.render.render

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

17699fc... by Simon Davy

fix bug in ols.render that would leave tmp files behind, and add tests for ols.render.render