~cgrabowski/maas:fix_preseed_metadata_urls

Last commit made on 2022-05-12
Get this branch:
git clone -b fix_preseed_metadata_urls https://git.launchpad.net/~cgrabowski/maas
Only Christian Grabowski can upload to this branch. If you are Christian Grabowski please log in for upload directions.

Branch merges

Branch information

Name:
fix_preseed_metadata_urls
Repository:
lp:~cgrabowski/maas

Recent commits

06b509b... by Christian Grabowski

move metadata url building into function

63dab5c... by Christian Grabowski

move routes into local variables

3f86f24... by Christian Grabowski

use rack url in commissioning preseed as well

d6035ad... by Christian Grabowski

always use rack controller url for metadata when present instead of proxied address

2557b9f... by Bill Wear

Update maas-offline-docs to ca47e3ec
[what-is-new-with-maas-3-2.html] improve the depth of the feature discussions

ba8a429... by Bill Wear

Update maas-offline-docs to 8c19ec7d
Updated what-is-new-with-maas-3-2-5962.md to current discourse version

9eef25a... by Mauricio Faria de Oliveira

LP:1958433 curtin workaround for xfs in centos70

The XFS implementation in CentOS 7 does not support the reflink feature,
and refuses to mount with it, leaving the system boot in emergency mode.

So, if 'mkfs.xfs' in the commissioning image (used for deployment) knows
about 'reflink=0|1', create a wrapper to use '-m reflink=0' for CentOS 7.

The commands to generate the wrapper are general, long, and unoptimized,
for better compatibility between Bionic/Focal/Jammy comissioning images.

Example with Focal:

 ...
 Welcome to Ubuntu 20.04.4 LTS!
 ...
 [ 53.426717] cloud-init[1423]: start: cmd-install/stage-early: preparing for installation
 [ 53.432717] cloud-init[1423]: start: cmd-install/stage-early/centos70_xfs_lp1958433: running '/bin/sh -c if [ "centos70" = "centos70" ] && mkfs.xfs 2>&1 | grep -q "reflink=0|1"; then WRAPPER=/usr/local/sbin/mkfs.xfs; echo "#!/bin/sh" >$WRAPPER && echo "exec $(which mkfs.xfs) -m reflink=0 \"\$@\"" >>$WRAPPER && chmod +x $WRAPPER && echo "Wrapper: $WRAPPER" && cat $WRAPPER; fi'
 [ 53.476110] cloud-init[1423]: Wrapper: /usr/local/sbin/mkfs.xfs
 [ 53.478272] cloud-init[1423]: #!/bin/sh
 [ 53.478767] cloud-init[1423]: exec /usr/sbin/mkfs.xfs -m reflink=0 "$@"
 [ 53.479615] cloud-init[1423]: finish: cmd-install/stage-early/centos70_xfs_lp1958433: SUCCESS: running '/bin/sh -c if [ "centos70" = "centos70" ] && mkfs.xfs 2>&1 | grep -q "reflink=0|1"; then WRAPPER=/usr/local/sbin/mkfs.xfs; echo "#!/bin/sh" >$WRAPPER && echo "exec $(which mkfs.xfs) -m reflink=0 \"\$@\"" >>$WRAPPER && chmod +x $WRAPPER && echo "Wrapper: $WRAPPER" && cat $WRAPPER; fi'
 [ 53.485237] cloud-init[1423]: centos70_xfs_lp1958433 took 0.053 seconds
 [ 53.485435] cloud-init[1423]: stage_early took 0.053 seconds
 [ 53.485889] cloud-init[1423]: finish: cmd-install/stage-early: SUCCESS: preparing for installation
 ...
 [ 63.756098] cloud-init[1423]: Running command ['mkfs.xfs', '-f', '-L', '', '-m', 'uuid=42e5ad8a-f078-48d2-8d42-60ee2ef10641', '/dev/vda3'] with allowed return codes [0] (capture=True)
 [ 63.758788] cloud-init[1423]: Formated device type: partition
 [ 63.763745] cloud-init[1423]: finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring format: vda-part3_format
 ...

Signed-off-by: Mauricio Faria de Oliveira <email address hidden>

c5fa599... by Bill Wear

Update maas-offline-docs to 6004d145
[how-to-build-maas-images.html] fix verb tense mistake; make jq machine listing more compact

2efdbba... by Bill Wear

Update maas-offline-docs to fdf4faf4
[how-to-build-maas-images.html] updated packer section with hands-on raw image example; removed tar.gz text (currently not working properly) until can review with MAAS engineering

3115dca... by Bill Wear

Update maas-offline-docs to 593db13d
[how-to-build-maas-images.html] add qemu-system to prerequisites and install instructions under packer section