Skip to content

automatedCleaning : add Ironic erase_devices and erase_devices_express #2721

@jaxklag

Description

@jaxklag

Hello,

The metal3 automatedcleaning documentation indicates that erase_devices is still not implemented :

Note: Ironic supports full data removal, which is not currently exposed in Metal3.

Would it be possible to implement the "erase_devices_express" and even "erase_devices" provided by Ironic ?

As to me erase_devices_express is the best compromise but erase_devices still need to be implemented to let the choice to the user the way he wants to wipe disks.
Also if data disks do not support hardware assisted erasure.

As asked by @alanmeadows, be able to choose which disks (those who don't support hardware assisted erasure) will be wiped in each modes would be very usefull to.

Regards,

Originally posted by @jaxklag in #32

The BMH resources could be :

Automated cleaning

apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
  name: example-host
spec:
  automatedCleaningMode: express | deep | metadata
  bootMACAddress: 00:8a:b6:8e:ac:b8
  bmc:
    address: ipmi://192.168.111.1:6230
    credentialsName: example-node-bmc-secret
  online: true
  • automatedCleaningMode: express # for erase_devices_express in automated cleaning
  • automatedCleaningMode: deep # for erase_devices in automated cleaning

Manual cleaning

manualCleaningMode with capability to use the 3 erasure mode with their priority and if possible the disks associated which each erasure mode.

This lets the user choose which modes he wants to execute thanks to priority and on which disks.

apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
  name: example-host
spec:
  manualCleaningMode:
     express:
         priority: 95
     deep:
         priority: 80
         data-disks: # list of data disk which do not support hardware assisted erasure. Avoid to clean twice data disk which support hardware assisted erasure.
             - disk id 1
             - disk id 2
      metadata:
         priority: 0 # allow to disable metadata cleaning to avoid disk to be cleaned twice. express fall back to metadata if disk does not support hardware assisted erasure
  bootMACAddress: 00:8a:b6:8e:ac:b8
  bmc:
    address: ipmi://192.168.111.1:6230
    credentialsName: example-node-bmc-secret
  online: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/acceptedIndicates an issue is ready to be actively worked on.

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions