~mfo/maas:lp2020397-validation-preseed

Last commit made on 2023-07-06
Get this branch:
git clone -b lp2020397-validation-preseed https://git.launchpad.net/~mfo/maas
Only Mauricio Faria de Oliveira can upload to this branch. If you are Mauricio Faria de Oliveira please log in for upload directions.

Branch merges

Branch information

Name:
lp2020397-validation-preseed
Repository:
lp:~mfo/maas

Recent commits

dfe7795... by Mauricio Faria de Oliveira

LP: #2020397 - preseed overrides for custom image dependency validation

Custom images without package manager (chiselled/locked-down)
fail the (curtin) late_commands for dependency validation as
of MAAS 3.2 (but worked before).

These validations are an improvement for MAAS robustness, but
unfortunately are a regression for some users/images, and may
not allow them to upgrade MAAS (deployments now fail).

This is a corner case for a few expert users with deployments
that are significantly reliant on MAAS, so a contained change
would do.

MAAS could allow them to use the curtin_userdata preseed to
override the default commands for validations with commands
that work in their images. (Note: validations still needed!)

Tests:
=====

Steps: download centos70 image, upload as custom, deploy.
       (do not set base_image to centos on purpose.)

No overrides (default):

 start: cmd-install/stage-late/98-validate-custom-image-has-cloud-init: running 'curtin in-target -- bash -c dpkg-query -s cloud-init || (echo "cloud-init not detected, MAAS will not be able to configure this machine properly" && exit 1)'
 ...
 bash: dpkg-query: command not found
 cloud-init not detected, MAAS will not be able to configure this machine properly
 ...
 finish: cmd-install/stage-late: FAIL: executing late commands

Override 1 out of 2 checks:

 late_commands:
   98-validate-custom-image-has-cloud-init: ['ls', '/usr/bin/cloud-init']

 start: cmd-install/stage-late/98-validate-custom-image-has-cloud-init: running 'ls /usr/bin/cloud-init'
 /usr/bin/cloud-init
 finish: cmd-install/stage-late/98-validate-custom-image-has-cloud-init: SUCCESS: running 'ls /usr/bin/cloud-init'

 start: cmd-install/stage-late/99-validate-custom-image-has-netplan.io: running 'curtin in-target -- bash -c dpkg-query -s netplan.io || (echo "netplan.io not detected, MAAS will not be able to configure this machine properly" && exit 1)'
 ...
 bash: dpkg-query: command not found
 netplan.io not detected, MAAS will not be able to configure this machine properly
 ...
 finish: cmd-install/stage-late: FAIL: executing late commands

Override 2 out of 2 checks:

 late_commands:
   98-validate-custom-image-has-cloud-init: ['ls', '/usr/bin/cloud-init']
   99-validate-custom-image-has-netplan.io: ['echo', 'this custom image does not use netplan']

 start: cmd-install/stage-late/98-validate-custom-image-has-cloud-init: running 'ls /usr/bin/cloud-init'
 /usr/bin/cloud-init
 finish: cmd-install/stage-late/98-validate-custom-image-has-cloud-init: SUCCESS: running 'ls /usr/bin/cloud-init'

 start: cmd-install/stage-late/99-validate-custom-image-has-netplan.io: running 'echo this custom image does not use netplan'
 this custom image does not use netplan
 finish: cmd-install/stage-late/99-validate-custom-image-has-netplan.io: SUCCESS: running 'echo this custom image does not use netplan'
 ...
 finish: cmd-install/stage-late: SUCCESS: executing late commands

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

b88d4d8... by Bill Wear

Update maas-offline-docs to 4d030401
Updated how-to-troubleshoot-maas-5333.md to current discourse version

01d493b... by Bill Wear

Update maas-offline-docs to 240b67c0
[how-to-troubleshoot-maas-5333.md] add troubleshooting tips for configurable session timeout

830874b... by Bill Wear

Update maas-offline-docs to 74254d52
Updated how-to-troubleshoot-maas-5333.md to current discourse version

45bbbc8... by Bill Wear

Update maas-offline-docs to 7adda96a
[what-is-new-with-maas-3-4-7071.md] since the UI new layout permeates the product, all the explanatory material has been added to the release notes

55a3626... by Bill Wear

Update maas-offline-docs to 1b732a0a
Updated what-is-new-with-maas-3-4-7071.md to current discourse version

db614d3... by Adam Collard

LP:2026283 fix flaky test - just pick an ip

999b376... by Björn Tillenius

Extract the non-Django database setup into its own pytest plugin.

The new database plugin still uses Django to setup the database,
but it doesn't import Django directly.

This allows the same fixtures to be used for sqlalchemy-based tests.

e6f5c17... by Bill Wear

Update maas-offline-docs to 9343d41e
[what-is-new-with-maas-3-4-7071.md] update release notes with better feature descriptions; comment out image sorting until working

af70357... by Bill Wear

Update maas-offline-docs to c3064bb0
Updated what-is-new-with-maas-3-4-7071.md to current discourse version