Commit Graph

3 Commits

Author SHA1 Message Date
Liam Young 6d8489d8cc Failed action due to locked file made more verbose
Fixes issue where a failed action due to a locked file returns an exit
status of 0 and shows a status of "complete". The failed action now
returns exit status 2, and the message is more verbose. Added actions
file to handle all actions with symbolic links to said file.

Closes-Bug: #1940965
Change-Id: Ie950efee8d1052d33274b0fe07ff81f343e9f3e6
2023-02-24 16:54:28 +04:00
James Page fd3d2b7610 Switch to using snap for simplestreams tools
Switch over to using the new simplestreams snap instead of using
the largely unmaintained packaging in distro (and various PPA's).

This drops direct integration with the simplestreams codebase
in preference to just calling the sstream-mirror-glance command
with the correct parameters.

This commit includes refactoring of 'custom_properties' handling
which was actually broken - there was no loading of the yaml
formatted list, which was probably overkill, so the option now
takes a space separated list of key=value pairs, for example:

 custom_properties="hw_firmware_type=uefi hw_vif_multiqueue_enabled=true"

Fix version comparison in script wrapper.

Drop Trusty support - snaps on Trusty are awkward requiring new
kernel versions and trusty support was only retained for upgrade
purposes anyway.

Drop unsupported Xenial OpenStack versions.

Fixup CA cert handling to use any charm installed CA cert (including
that provided via the certificates relation) and install cert
to snap compatible location for simplestreams to use.

Add basic action to perform image sync on demand an refactor
the glance simplestreams sync wrapper to work within a hook
context to support the action.

Disable automatic scheduling of image syncs by default as this
tends to be racey during deployment resulting in images being
synced to glance unit local storage.

Add bionic-ussuri bundle and make it the default smoke test.

Deprecate source and key options - no longer required for
deployment with snap.

Change-Id: I730df6b7f5955ddfeea5b8de15490ac083823f5a
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/321
2020-06-18 08:50:02 +01:00
Ryan Beisner 718676787a Update tox, requirements, add initial func tests framework 2018-04-06 22:06:49 +00:00