Skip to content

[DEV] support configurable cloud-init kernel parameters #67

@rainest

Description

@rainest

Short Description

BSS provides a means to set cloud-init kernel parameters in machine boot configuration.

Definition of Done

  1. BSS exposes a new API endpoint or new API endpoint field for per-machine cloud-init parameters.
  2. (Optional) BSS exposes a new API endpoint to set default cloud-init parameters.
  3. Absent explicit cloud-init configuration, BSS appends the same cloud-init parameters as it does in 1.32.
  4. (Optional) Unit tests verify that cloud-init configuration propagates to generated boot scripts.

Additional context

BSS currently adds a standard cloud-init data source kernel parameter. This parameter indicates that a nocloud server is available at a configurable address.

In traditional CSM, this is used for some types of non-compute nodes. Compute nodes do not run cloud-init, but BSS does still include the parameter regardless.

Custom configuration allows using a different data source (in my case, I have a VM testing platform that wants to mount a configuration disk), provide additional settings, or strip cloud-init parameters altogether.

I don't currently see any test for the buildBootScript() function that insert the cloud-init parameters (and all other parameters) or its BootScriptGet() parent. Testing this would need a new unit test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions