~guimalufb/simplestreams:set_latest_property_glance_image

Last commit made on 2022-08-24
Get this branch:
git clone -b set_latest_property_glance_image https://git.launchpad.net/~guimalufb/simplestreams
Only Gui Maluf Balzana can upload to this branch. If you are Gui Maluf Balzana please log in for upload directions.

Branch merges

Branch information

Name:
set_latest_property_glance_image
Repository:
lp:~guimalufb/simplestreams

Recent commits

22b7053... by Gui Maluf Balzana

MinorFix missing whitespace after keyword

e9de29b... by Gui Maluf Balzana

Add `latest=true` property to synced images

When creating Openstack VMs the user has to specify the image it wants
to use. sstream-mirror-glance adds a date to the image name, so they
always have to recheck which is the current latest image.

This commit ensures the `latest=true` property is available for the
latest synced image.

Add --set-latest-property CLI argument

When --set-latest-property is given sstream-mirror-glance will set the
recently synced image with the `latest=true` property and then remove
the `latest` property from all the os_version/architecture matching
images.

Closes-bug: LP #1933130

cbc0ac9... by Yoshi Kadokawa

Add support for importing images

Enable conversion of images to raw format
by importing the images to Glance.

LP: #1889729

18c7d63... by Philip Roche

Restores support for older versions of python-requests

If simplestreams is being used with a version of
python-requests < 2.4.1 then any calls to request.get
will result in
```
ValueError: Timeout value connect was (TIMEOUT, None), but it must
be an int or float.
```
The option to use a tuple of (content timeout,read timeout) was
in troduced in requests 2.4.1. Making this chance restores support
for systems with python-requests < 2.4.1 while still retaining the
support for the timeout feature which now will continue to behave
like the non requests Urllib2UrlReader class.

d58a3a3... by Paride Legovini

Bring the packaging to newer standards.

b936edd... by Adam Collard

Remove requests read timeout, whilst retaining connect timeout

Drive-by: make the negative tests actually test negative sizes

Fix for bug introduced in f37d2ed - the intention there was only
for a connect timeout and not a read timeout.

0fd51ba... by Colin Watson

Add support for setting image visibility

b1f40d9... by Paride Legovini

install-deps: install cargo as a tox dependency

python3-cryptography >= 3.4 contains Rust code [1] and it now
needs a Rust compiler and cargo to be built.

Also: remove duplicate line.

[1] https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst

f37d2ed... by Adam Collard

Add 10s timeout to out-going requests to avoid blocking.

Fixes LP:1908452

9e89dce... by Dan Watkins

simplestreams: fix use of deprecated LOG.warn method