Skip to content

BaseInstance.clean: add a remove_seed_directory boolean argument (default False) to runcloud-init clean --seed #502

@mostafaCamel

Description

@mostafaCamel

Sometimes, we need to nuke the cloud-init on the instance for some integration tests (more specificfically the once-per-instance modules) . See canonical/cloud-init#6885

We can add this argument to BaseInstance.clean so that this method becomes a "nuclear" clean (we will keep the default as false)

Workaround is to execute the execute method client.execute(["cloud-init", "clean", "--logs", "--seed"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions