-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[fcos] support xz-encoded images #3008
Conversation
/cc @LorbusChris |
/hold |
/hold cancel |
/override ci/prow/vsphere Known issues, skipping |
/override ci/prow/e2e-vsphere |
@vrutkovs: Overrode contexts on behalf of vrutkovs: ci/prow/e2e-vsphere In response to this:
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. |
@vrutkovs: /override requires a failed status context to operate on.
Only the following contexts were expected:
In response to this:
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. |
pkg/rhcos/qemu.go
Outdated
@@ -31,7 +32,11 @@ func QEMU(ctx context.Context, arch types.Architecture) (string, error) { | |||
// Attach sha256 checksum to the URL. Always provide the |
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.
Comment is not accurate anymore.
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.
Good catch, fixed
pkg/tfvars/internal/cache/cache.go
Outdated
} | ||
|
||
// decompressFile decompresses data in the cache | ||
func decompressFile(src, dest string) error { |
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.
What calls decompressFile
?
https://github.com/openshift/installer/pull/3008/files#diff-9b6f80c907f7bc24013cc46e73583067R119-R146 should be updated too.
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.
decompressor
func is detected from compressorMap
and called (see below)
Trying to keep the delta between master and fcos small: Can we get this into master already as well? /retest |
pkg/tfvars/internal/cache/cache.go
Outdated
} | ||
defer xzfile.Close() | ||
|
||
reader, err := xz.NewReader(xzfile) |
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.
Tangentially see coreos/mantle@c7b6994
Of course the mantle codebase has a lot of stuff around this area, including now signature checking...maybe at some point we could try to make it a shared library.
/approve |
/hold It's still not clear to me what calls |
/retest |
@vrutkovs: The decompression code must be called in pkg/tfvars/azure/azure.go I think. Also the type of blob storage must be page instead of block. Terraform will complain about that later. Currently I prepare a PR for that including that the decompression code will be called. |
@vrutkovs @LorbusChris The proof that in principle the upload should work: This screenshot tells you that Microsoft recommends to use page blobs for VHD files: For the conversion of the VHD file into an Azure image it seems to be necessary that the VHD file is in fixed size. The fcos image provided by the core os team seems to be in dynamic size which breaks Terraform during the creation of the image. |
Uses github.com/ulikunitz/xz to uncompress artifacts, identified by application/octet-stream
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, LorbusChris The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/override ci/prow/e2e-vsphere known bootstrap issue |
@vrutkovs: Overrode contexts on behalf of vrutkovs: ci/prow/e2e-vsphere In response to this:
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. |
/retest Please review the full test history for this PR and help us cut down flakes. |
10 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/override ci/prow/e2e-vsphere known bootstrap issue |
@vrutkovs: Overrode contexts on behalf of vrutkovs: ci/prow/e2e-vsphere In response to this:
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. |
@vrutkovs: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/cherry-pick master |
@LorbusChris: #3008 failed to apply on top of branch "master":
In response to this:
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. |
Some FCOS images are xz-compressed, however RHCOS is gzipped