Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup for glance-simplestreams-sync #321

Merged
merged 1 commit into from Jun 17, 2020

Conversation

javacruft
Copy link
Contributor

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).

@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2020

Codecov Report

Merging #321 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
- Coverage   19.23%   19.22%   -0.02%     
==========================================
  Files         149      150       +1     
  Lines        8051     8056       +5     
==========================================
  Hits         1549     1549              
- Misses       6502     6507       +5     
Impacted Files Coverage Δ
...ack/charm_tests/glance_simplestreams_sync/setup.py 0.00% <0.00%> (ø)
...ack/charm_tests/glance_simplestreams_sync/tests.py 0.00% <ø> (ø)
zaza/openstack/charm_tests/tempest/setup.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a94e4a...931fcb4. Read the comment docs.

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).
Copy link
Contributor

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Will land simultaneously with https://review.opendev.org/#/c/733097

@thedac
Copy link
Contributor

thedac commented Jun 17, 2020

Actually, this can land now as nothing is calling it.

@thedac thedac merged commit d063586 into openstack-charmers:master Jun 17, 2020
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Jun 18, 2020
* Update charm-glance-simplestreams-sync from branch 'master'
  - 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: openstack-charmers/zaza-openstack-tests#321
openstack-mirroring pushed a commit to openstack/charm-glance-simplestreams-sync that referenced this pull request Jun 18, 2020
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: openstack-charmers/zaza-openstack-tests#321
openstack-mirroring pushed a commit to openstack/charm-glance-simplestreams-sync that referenced this pull request Jun 18, 2020
Drop support for sending sync status messages to a RMQ exchange.

This was used by conjure-up which is no longer maintained so
drop the supporting code, metadata and options and remove
RabbitMQ from all test bundles.

Change-Id: I504508a64e50a9d331f6c5d69b292d9ccc20da3d
Func-Test-PR: openstack-charmers/zaza-openstack-tests#321
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Jun 18, 2020
* Update charm-glance-simplestreams-sync from branch 'master'
  - Drop RabbitMQ support
    
    Drop support for sending sync status messages to a RMQ exchange.
    
    This was used by conjure-up which is no longer maintained so
    drop the supporting code, metadata and options and remove
    RabbitMQ from all test bundles.
    
    Change-Id: I504508a64e50a9d331f6c5d69b292d9ccc20da3d
    Func-Test-PR: openstack-charmers/zaza-openstack-tests#321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants