Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

ore/aws/upload: --disk-size-gib and --disk-size-inspect, revisited #959

Merged
merged 1 commit into from
Dec 13, 2018
Merged

ore/aws/upload: --disk-size-gib and --disk-size-inspect, revisited #959

merged 1 commit into from
Dec 13, 2018

Conversation

bgilbert
Copy link
Contributor

We were uploading the full disk image (4.5 GiB for CL) but hardcoding an 8 GiB disk size in AMI metadata. This worked until RHCOS images became larger than 8 GiB. Continue defaulting ore aws upload and plume to an 8 GiB AMI disk, but allow overriding from the ore command line, and add an ore option to autodetect the size from a local image file.

Based on, and obsoletes, #954. Tested with a CL image and:

  • ore aws upload, autodetected file
  • ore aws upload --disk-size-gib, autodetected file
  • ore aws upload --disk-size-inspect, autodetected file
  • ore aws upload --disk-size-inspect --file
  • ore aws upload --disk-size-inspect --source-object (fails)
  • ore aws upload --disk-size-inspect --source-snapshot (fails)
  • bin/plume pre-release --platform aws -C user

cc @cgwalters for review (GitHub isn't letting me request one from you directly)

We were uploading the full disk image (4.5 GiB for CL) but hardcoding
an 8 GiB disk size in AMI metadata.  This worked until RHCOS images
became larger than 8 GiB.  Continue defaulting `ore aws upload` and
plume to an 8 GiB AMI disk, but allow overriding from the ore command
line, and add an ore option to autodetect the size from a local
image file.

Co-authored-by: Colin Walters <walters@verbum.org>
Copy link
Contributor

@arithx arithx left a comment

Choose a reason for hiding this comment

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

LGTM

@cgwalters
Copy link
Member

LGTM! Tested and works here.

@bgilbert bgilbert merged commit 490b74e into coreos:master Dec 13, 2018
@bgilbert bgilbert deleted the size branch December 13, 2018 21:36
@cgwalters
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants