Skip to content

pool deleted state - #55200

Merged
dwoz merged 2 commits into
saltstack:masterfrom
cbosdo:master-pool-deleted-state
Dec 19, 2019
Merged

dwoz merged 2 commits into
saltstack:masterfrom
cbosdo:master-pool-deleted-state

Conversation

@cbosdo

@cbosdo cbosdo commented Nov 5, 2019

Copy link
Copy Markdown
Contributor

What does this PR do?

Add a virt.pool_deleted state to use to ensure a virtual storage pool and optionally its volumes are deleted. This state handles the various libvirt storage backends specific implementations to avoid triggering exceptions if an function is not implemented on the libvirt side.

Tests written?

Yes

Commits signed with GPG?

Yes

@cbosdo
cbosdo requested a review from a team as a code owner November 5, 2019 09:53
@ghost
ghost requested a review from cmcmarrow November 5, 2019 09:53
@cbosdo

cbosdo commented Nov 5, 2019

Copy link
Copy Markdown
Contributor Author

Note that this PR is based on PR #54475

@cbosdo
cbosdo force-pushed the master-pool-deleted-state branch 2 times, most recently from d3b3112 to 75da553 Compare November 5, 2019 10:08
There are two reasons to remove this parameter without deprecating it:
 * the meaning has been mistakenly inversed
 * fast=True will raise an exception for every libvirt storage backend
since that flag has never been implemented in any of those.

Fixes issue saltstack#54474
@cbosdo
cbosdo force-pushed the master-pool-deleted-state branch from 75da553 to caa4f52 Compare December 6, 2019 08:58
The new virt.pool_deleted state takes care of removing a virtual storage
pool and optionally the contained volumes.
@cbosdo
cbosdo force-pushed the master-pool-deleted-state branch from caa4f52 to d2194f0 Compare December 16, 2019 17:35
@dwoz
dwoz merged commit 6b8fa5c into saltstack:master Dec 19, 2019
@cbosdo
cbosdo deleted the master-pool-deleted-state branch December 20, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants