Skip to content

Bug 1770441: OpenStack: unpack compressed image data #2645

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Fedosin:uncompress_image
Nov 11, 2019
Merged

Bug 1770441: OpenStack: unpack compressed image data #2645
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Fedosin:uncompress_image

Conversation

@Fedosin
Copy link
Copy Markdown
Contributor

@Fedosin Fedosin commented Nov 8, 2019

Now we always download unpacked image data to the local filesystem and then upload it to Glance without any modifications.

In the future we plan to provide only compressed data, but unfortunately OpenStack Glance is not able to work with it. So, we have to decompress the data first.

This patch allows the installer to work with both compressed and uncompressed images.
When compressed image is downloaded the installer decompresses the data into local cache and returns its path. For compressed images the workflow stays the same.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 8, 2019
@cgwalters
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2019
Copy link
Copy Markdown
Member

@mandre mandre left a comment

Choose a reason for hiding this comment

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

We likely want a valid bug ID to merge this commit. I've created bz#1770441 for this.

Comment thread pkg/tfvars/openstack/openstack.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: future releases of OpenStack (starting with train) will be able to work with compressed images. Could you perhaps add a note as "Possible future improvement"? I'm sure a lot of people would appreciate to only have to upload 700MB instead of 2GB if their glance service supports this feature.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yep, I'll update the patch in a minute

@mandre
Copy link
Copy Markdown
Member

mandre commented Nov 9, 2019

/retitle Bug 1770441: OpenStack: unpack compressed image data

@openshift-ci-robot openshift-ci-robot changed the title OpenStack: unpack compressed image data Bug 1770441: OpenStack: unpack compressed image data Nov 9, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@Fedosin: This pull request references Bugzilla bug 1770441, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Bug 1770441: OpenStack: unpack compressed image data

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 9, 2019
@mandre
Copy link
Copy Markdown
Member

mandre commented Nov 9, 2019

/bugzilla refresh

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@mandre: This pull request references Bugzilla bug 1770441, which is valid.

Details

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Now we always download unpacked image data to the local filesystem
and then upload it to Glance without any modifications.

In the future we plan to provide only compressed data, but
unfortunately OpenStack Glance is not able to work with it. So, we
have to decompress the data first.

This patch allows the installer to work with both compressed and
uncompressed images.
When compressed image is downloaded the installer decompresses the
data into local cache and returns its path. For compressed images
the workflow stays the same.
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2019
@mandre
Copy link
Copy Markdown
Member

mandre commented Nov 9, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2019
@Fedosin
Copy link
Copy Markdown
Contributor Author

Fedosin commented Nov 9, 2019

@mandre thanks for your help!
@sdodson can you please look at the patch, this is a fix for OpenStack in #2633

@Fedosin
Copy link
Copy Markdown
Contributor Author

Fedosin commented Nov 9, 2019

/test e2e-openstack

@pierreprinetti
Copy link
Copy Markdown
Contributor

/label platform/openstack

@Fedosin
Copy link
Copy Markdown
Contributor Author

Fedosin commented Nov 9, 2019

/test e2e-aws

@nee1esh
Copy link
Copy Markdown

nee1esh commented Nov 10, 2019

/assign @sdodson

@sdodson
Copy link
Copy Markdown
Member

sdodson commented Nov 11, 2019

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 11, 2019
@openshift-merge-robot openshift-merge-robot merged commit c85edfd into openshift:master Nov 11, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@Fedosin: All pull requests linked via external trackers have merged. Bugzilla bug 1770441 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1770441: OpenStack: unpack compressed image data

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. platform/openstack size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants