canonical / canonical/pycloudlib

BaseInstance.clean: add a remove_seed_directory boolean argument (default False) to run`cloud-init clean --seed`

Open
#502 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
22
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Sometimes, we need to nuke the cloud-init on the instance for some integration tests (more specificfically the once-per-instance modules) . See https://github.com/canonical/cloud-init/issues/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"])`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.