Skip to content

Commit

Permalink
Use OpenStack image for Brightbox
Browse files Browse the repository at this point in the history
The special Brightbox image uses the OpenStack userdata in Ignition but
lacked Afterburn usage. It actually works to use the OpenStack image and
directly which also enables Afterburn, thus we can drop the special
image.
Don't build a special image for Brightbox but recommend to use OpenStack
images directly. A symlink is added to help with the download of
hardcoded user scripts.
  • Loading branch information
pothos committed Nov 15, 2023
1 parent 9354473 commit c2db2c8
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 93 deletions.
7 changes: 0 additions & 7 deletions build_library/vm_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ VALID_IMG_TYPES=(
ami
ami_vmdk
azure
brightbox
cloudsigma
cloudstack
cloudstack_vhd
Expand Down Expand Up @@ -242,12 +241,6 @@ IMG_openstack_mini_OEM_PACKAGE=common-oem-files
IMG_openstack_mini_OEM_USE=openstack
IMG_openstack_mini_OEM_SYSEXT=oem-openstack

## brightbox, supports ec2's metadata format so use oem-ec2-compat
IMG_brightbox_DISK_FORMAT=qcow2
IMG_brightbox_DISK_LAYOUT=vm
IMG_brightbox_OEM_PACKAGE=oem-ec2-compat
IMG_brightbox_OEM_USE=brightbox

## pxe, which is an cpio image
IMG_pxe_DISK_FORMAT=cpio
IMG_pxe_PARTITIONED_IMG=0
Expand Down
2 changes: 2 additions & 0 deletions changelog/changes/2023-11-14-brightbox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Brightbox: The regular OpenStack image should now be used, it includes Afterburn for instance metadata attributes
- OpenStack: An uncompressed image is provided for simpler import (since the images use qcow2 inline compression, there is no benefit in using the `.gz` or `.bz2` images)
1 change: 1 addition & 0 deletions ci-automation/vms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ function _vm_build_impl() {

create_digests "${SIGNER}" "images/latest/"*
sign_artifacts "${SIGNER}" "images/latest/"*
( cd images/latest ; ln -s flatcar_production_openstack_image.img.bz2 flatcar_production_brightbox_image.img.bz2 )
copy_to_buildcache "images/${arch}/${vernum}/" "images/latest/"*
}
# --

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c2db2c8

Please sign in to comment.