Skip to content

[New Feature] Add option to run "Automated Cleaning" only for initial provisioning #2589

@mauhau

Description

@mauhau

We are provisioning a larger set of machines with CAPM3. In these machines we have several disks:

  • Small disk for operating system
  • Disk for local storage
  • For storage nodes: Several disks for Ceph

For a proper lifecycle management the following workflow is necessary:

Initial provisioning

  1. Add server to Metal3 and inspect it
  2. Boot server into IPA
  3. Cleanup all disks
  4. Provision node image

Node update

  1. Boot server into IPA
  2. Cleanup only operating system disk
  3. Provision node image

We read the documentation for CAPM3 automatic cleanup and for BMO Cleaning According to this we decided to set automatedCleaningMode to metadata as

When enabled (metadata), automated cleaning kicks off when a node is in the first provisioning and on every deprovisioning

With the expectation, that there is no deprovisioning for node updates.

Unfortunately this is not the case: At node update all disks are cleaned and data is lost!

We found a workaround by setting in the property skip_block_devices'='[{"size":"> 300"}] in Ironic for all nodes after first provisioning.

Of course this is not a real solution.

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue is ready to be actively worked on.

    Projects

    Status

    BMO WIP

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions