Skip to content

Add a prune-instances command #991

Open

Description

@mr-cal

What needs to get done

  • Add a new command, prune-instances that removes all non-base instances for the active provider using the ProviderService. The following parameters are optional:
    • --all-providers to prune instances from all providers
    • --provider=<provider> to prune for a specific provider
      • If this isn’t specified, use the same business logic that lifecycle commands use to determine the provider.
    • --include-templates to prune base instances
  • Unit tests
  • A testcraft spread test that runs this command to prune LXD and Multipass instances

Why it needs to get done

To allow users to prune instances.

Requires canonical/craft-providers#639
Requires canonical/craft-providers#893
Required for canonical/charmcraft#1042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions