-
Notifications
You must be signed in to change notification settings - Fork 183
cosalib/aws: don't require build artifact for AWS WinLI builds #4315
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
Conversation
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.
Code Review
This pull request refactors the build artifact check to support AWS Windows License Included (WinLI) builds, which are created from an existing snapshot and do not require a build artifact. The changes correctly move the artifact check from a generic wrapper to individual cloud provider implementations, with a special exception for AWS WinLI. The AWS ore command is also updated to not require a file when a source snapshot is used. The implementation is solid, with just one minor suggestion to improve a command-line error message for better user experience.
The build artifact is not needed in the AWS WIndows License Included (WinLI) case because the image is built from an existing snapshot. To allow individual cloud providers to override this requirement, move the build artifact check to each provider's wrapper. Don't perform the check in the AWS wrapper if building a winli image. Also modify the AWS ore upload code to not require an upload file when a source snapshot is used, which allows the WinLI image to be built without the need for an upload file.
3f9942d to
641aa63
Compare
The AWS ore wrapper relies on information from image.json. Buildfetch the ostree artifact before creating and replicating the AWS Windows License Included (winli) image to be consistent and use the same values as the original AMI. Also, remove the hack to get around buildfetch'ing the vmdk image since the build artifact is no longer required in the winli build case. See: coreos/coreos-assembler#4315
|
|
dustymabe
left a comment
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.
LGTM
The AWS ore wrapper relies on information from image.json. Buildfetch the ostree artifact before creating and replicating the AWS Windows License Included (winli) image to be consistent and use the same values as the original AMI. Also, remove the hack to get around buildfetch'ing the vmdk image since the build artifact is no longer required in the winli build case. See: coreos/coreos-assembler#4315
The AWS ore wrapper relies on information from image.json. Buildfetch the ostree artifact before creating and replicating the AWS Windows License Included (winli) image to be consistent and use the same values as the original AMI. Also, remove the hack in libcloud.groovy to get around buildfetch'ing the vmdk image since the build artifact is no longer required in the winli build case. See: coreos/coreos-assembler#4315
The AWS ore wrapper relies on information from image.json. Buildfetch the ostree artifact before creating and replicating the AWS Windows License Included (winli) image to be consistent and use the same values as the original AMI. Also, remove the hack in libcloud.groovy to get around buildfetch'ing the vmdk image since the build artifact is no longer required in the winli build case. See: coreos/coreos-assembler#4315
The AWS ore wrapper relies on information from image.json. Buildfetch the ostree artifact before creating and replicating the AWS Windows License Included (winli) image to be consistent and use the same values as the original AMI. Also, remove the hack in libcloud.groovy to get around buildfetch'ing the vmdk image since the build artifact is no longer required in the winli build case. See: coreos/coreos-assembler#4315
The build artifact is not needed in the AWS WIndows License Included (WinLI) case because the image is built from an existing snapshot. To allow individual cloud providers to override this requirement, move the build artifact check to each provider's wrapper. Don't perform the check in the AWS wrapper if building a winli image.
Also modify the AWS ore upload code to not require an upload file when a source snapshot is used, which allows the WinLI image to be built without the need for an upload file.