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

Suppress invalid mdadm flag #1

Closed
wants to merge 1 commit into from

Conversation

prutschman
Copy link
Owner

All kwargs are passed to raid.assemble, but '--chunks' is invalid in assembly mode.

What does this PR do?

Drops "--chunk" as a keyword argument to raid.assemble

What issues does this PR fix or reference?

saltstack#43517

Previous Behavior

raid.assemble was invoked with chunks in kwarg if specified in the state configuration. This resulted in a failure to assemble an array

New Behavior

chunk kwarg is removed if it's present and assembly rather than creation is requested.

Tests written?

No
Manually checked that applying a raid.present state works when whether the underlying device is running, stopped, or gone (via raid.destroy).

All kwargs are passed to raid.assemble, but '--chunks' is invalid in assembly mode.
@prutschman prutschman changed the base branch from 2017.7.2 to develop June 14, 2018 02:21
@prutschman prutschman changed the base branch from develop to 2017.7.2 June 14, 2018 02:22
@prutschman prutschman closed this Jan 19, 2019
@prutschman prutschman deleted the prutschman-mdadm-chunks-error branch January 19, 2019 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant