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
added glance functional test for image-conversion config #582
added glance functional test for image-conversion config #582
Conversation
Codecov Report
@@ Coverage Diff @@
## master #582 +/- ##
==========================================
- Coverage 18.13% 18.08% -0.05%
==========================================
Files 163 163
Lines 10313 10349 +36
==========================================
+ Hits 1870 1872 +2
- Misses 8443 8477 +34
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! See my comments
def import_image_to_glance(glance, local_path, image_name, | ||
disk_format='qcow2', visibility='public', | ||
container_format='bare'): | ||
"""Creates, stages and import an image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not an Glance expert: can you explain in the docstring a bit the difference with upload_image_to_glance()
? What's the difference between "uploading" and "staging/importing" an image?
logging.info('Downloading {} ...'.format(image_url)) | ||
download_image(image_url, local_path) | ||
else: | ||
logging.info('Cached image found at {} - Skipping download'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're duplicating code from create_image()
. Can we refactor in order not to duplicate code?
This needs to be merged at the same time as https://review.opendev.org/c/openstack/charm-glance/+/792065 , when ready |
image-convertion config enables image convertion to raw format this optimizes back-end capabilities while not putting the burden of converting images to their end users func-test-pr: openstack-charmers/zaza-openstack-tests#582 Closes-Bug: 1899767 Change-Id: Id3791721f9e38899c87b88591cdc42e46ffea5c1
* Update charm-glance from branch 'master' to 4aaa2ce5a34679a753e261f90f16c7e5bc0c05f9 - add config to enable convertion to raw format image-convertion config enables image convertion to raw format this optimizes back-end capabilities while not putting the burden of converting images to their end users func-test-pr: openstack-charmers/zaza-openstack-tests#582 Closes-Bug: 1899767 Change-Id: Id3791721f9e38899c87b88591cdc42e46ffea5c1
Functional test for image-conversion feature added in https://review.opendev.org/c/openstack/charm-glance/+/792065
Test does:
raw