Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Backport 51929, 51954) lvm: be quiet when a pv, lv or vg is not expected #54997

Merged
merged 2 commits into from
Dec 4, 2019

Conversation

aplanas
Copy link
Contributor

@aplanas aplanas commented Oct 14, 2019

What does this PR do?

When we try to create a new pv, lv or vg, there is a chance that
is not present in the system. Also when we want to remove it, we
expect that is absent and the end of the operation.

This patch hide the error messages from pvdisplay, lvdisplay and
vgdisplay commands in those cases.

Tests written?

Yes

(backport #51929 and #51954, already merged in develop)

@aplanas aplanas changed the title (Backport 51929) lvm: be quiet when a pv, lv or vg is not expected (Backport 51929, 51954) lvm: be quiet when a pv, lv or vg is not expected Oct 14, 2019
@dwoz dwoz requested a review from a team as a code owner November 14, 2019 22:12
@ghost ghost requested a review from waynew November 14, 2019 22:12
When we try to create a new pv, lv or vg, there is a chance that
is not present in the system. Also when we want to remove it, we
expect that is absent and the end of the operation.

This patch hide the error messages from pvdisplay, lvdisplay and
vgdisplay commands in those cases.

(cherry picked from commit 922d192)
The LVM module behaves like a state when doing a pvcreate and a
pvremove, checking the previous and last state.  We do not expect
to have a physical volume before creating it, or after removing it.

This patch pass the 'quiet' parameter into pvdisplay to hide the
expected error in those cases.

(cherry picked from commit 46b4577)
@dwoz dwoz merged commit e122469 into saltstack:master Dec 4, 2019
@aplanas aplanas deleted the backport_51929 branch December 4, 2019 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants