for_hardware: pci:vvvv:dddd - running on all hosts regardless device presence

Hi all,

I have configure_hba script with meta:

#!/bin/bash -ex
# --- Start MAAS 1.0 script metadata ---
# name: update_LSI_9305-16e
# title: Firmware 16.00.11.00
# description: Firmware upgrade for LSI 9305-16e
# script_type: commissioning
# tags: configure_hba
# packages:
#  url: ["http://maas/tools/sas3flash", "http://maas/firmware/SAS9305_16e_IT_P.bin"]
#  for_hardware: pci:1000:00c9 
# may_reboot: True
# parallel: disabled
# --- End MAAS 1.0 script metadata ---

When I run this on multiple host (some of them have HBA, other don’t) this script is executed regardless of HBA present.

I have similar scripts for FW upgrade of various PCI cards and all of them behaves as above.

Have anyone observed the same?

*MAAS version: 2.9.0~beta5 (8994-g.8eaf8a312)

You have wrong indent in for_hardware (an extra space), your example will be:

#!/bin/bash -ex
# --- Start MAAS 1.0 script metadata ---
# name: update_LSI_9305-16e
# title: Firmware 16.00.11.00
# description: Firmware upgrade for LSI 9305-16e
# script_type: commissioning
# tags: configure_hba
# packages:
#  url: ["http://maas/tools/sas3flash", "http://maas/firmware/SAS9305_16e_IT_P.bin"]
# for_hardware: pci:1000:00c9 
# may_reboot: True
# parallel: disabled
# --- End MAAS 1.0 script metadata ---
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.