Skip to content

Safeguards

Cleaning safeguards

Ironic allows users to list disks which should not be touched during cleaning, choosing root device, etc.

So far, the feature works only for non-RAID scenarios, but support for RAID is planned in the near future.

To use this feature, one must have a way of identifying the disks in question - ideally by WWN. The identifiers are used as hints in a property of the baremetal node called skip_block_devices. For each disk (or group of disks) to be untouched by Ironic, one must create a dictionary of hints (same hints as for root device hints), for example:

{'wwn': '0x5002e10000000000'}

or for multiple disks

{'vendor': ‘'Oxlaf4', ‘size': '>100'}

The property skip_block_devices is then a list of these dictionaries and can look, for example, as follows:

'skip_block_devices': [{'wwn': '0x5002e10000000001'}, {‘wwn': '0x5002e10000000002'}]

The command to set the example property above would be

openstack baremetal node set --property 'skip_block_devices'='[{"wwn":"0x5002e10000000001"},{"wwn":"0x5002e10000000001"}]' $NODE