I have tested on maas 3.1 and 3.2 beta 5
I have a custom commissioning script with the following metadata:
# --- Start MAAS 1.0 script metadata ---
# name: 90-mellanox_lldp
# title: Mellanox fix lldp MT27710 Family [ConnectX-4 Lx]
# description: Disable internal lldp to allow the usage from the machine.
# type: commissioning
# script_type: commissioning
# tags: noauto
# for_hardware: pci:15b3:1015
# parallel: disabled
# packages:
# apt:
# - gcc
# - make
# - dkms
# - linux-headers-generic
# timeout: 00:08:00
# --- End MAAS 1.0 script metadata ---
This script only runs when the machine is in the state New
, if the machine is Ready
, no matter how much you select it on the web, it does not run.
The next image shows, that in the ‘Commissioning’ from New
to Ready
it fails, later I commission the machine without the script (state of the machine now it’s Ready
), and now I can’t relaunch the script again.
But if I commission a machine from the cli, it launches:
maas xxxxxx machine commission yyyyyy commissioning_scripts=90-mellanox_lldp