Commit Graph

4 Commits

Author SHA1 Message Date
Guilherme Maluf Balzana 98faf67846 Add glance-simplestreams-sync set_latest_property config functest (#853)
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 tests the usage of the `set_latest_property` configuration.

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
2022-10-07 18:35:36 +00:00
Frode Nordahl 38581b70e5 gss: Log Keystone service catalog on failure
The simplestreams service relies on the Keystone Service catalog.
To help debug any issues occurring during test execution, log the
contents of the Keystone service catalog in the event of failure.

Related-Bug: #1930654
2021-06-03 08:11:54 +02:00
Frode Nordahl 7ba3141cdb glance_simplestreams_sync/setup: Add tenacity
The very nature of the action ran by the configure step will cause
it to fail frequently unless it is retried.

Fixes #580
2021-05-27 13:28:24 +02:00
James Page 931fcb4aa7 Add setup for glance-simplestreams-sync
Use action to complete initial image sync for the gss charm.

This avoids races where the images end up in the wrong locations
and allows the tests to actually know when images should be
discoverable.

Update tests to wait for at least four images (20.04 is synced
by default).
2020-06-12 13:47:38 +01:00