functional-container: use different root-disk label

For the reasons described in the inline comment, use a different
root-disk label when building dib test images.

Change-Id: I3b518802d681b888916a5cc6a3dcf7e1b537da1e
Depends-On: https://review.opendev.org/c/openstack/diskimage-builder/+/853573
This commit is contained in:
Ian Wienand 2022-08-18 11:19:14 +10:00
parent 95b3d4c302
commit fb736fac7d
1 changed files with 16 additions and 0 deletions

View File

@ -69,6 +69,22 @@ diskimages:
release: '{{ nodepool_diskimage.release }}'
env-vars:
TMPDIR: '{{ NODEPOOL_DIB_BASE_PATH }}/tmp'
# We have seen multiple instances of dib's bootloader not
# setting the LABEL= command correctly for the installed kernel.
# If the command line from current kernel on the the builder
# system leaks into the test build we can hide the problem --
# when on a gate node (built by dib) the running kernel has in
# it's command-line LABEL=cloudimg-rootfs. The test image
# copies this and boots correctly in the gate; but when it hits
# the production builders, which don't boot like this, we are
# left with an unbootable image that can't find it's root
# partition.
#
# Thus we override the default root label during tests. This
# should ensure the root disk gets made with a different label,
# and if the bootloader doesn't correctly direct the kernel to
# this, we should get gate failures.
ROOT_LABEL: 'gate-rootfs'
DIB_CHECKSUM: '1'
DIB_SHOW_IMAGE_USAGE: '1'
DIB_IMAGE_CACHE: '{{ NODEPOOL_DIB_BASE_PATH }}/cache'