-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Setting properties with state zfs.filesystem_present causes python errors in PY3 #54448
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Core
relates to code central or existential to Salt
Execution-Module
P4
Priority 4
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Comments
DmitryKuzmenko
added
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Execution-Module
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
P4
Priority 4
Core
relates to code central or existential to Salt
labels
Sep 10, 2019
Same problem here:
|
Merged
Is there a workaround? |
Why are you looking for a workaround? This has already been fixed by #55374 |
For use on environments that still use version 2019.02, a workaround is necessary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Core
relates to code central or existential to Salt
Execution-Module
P4
Priority 4
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Description of Issue
Using the state zfs.filesystem_present with properties under PY3 causes the execution module function zfs.set to pass dict_values and dict_keys types through to zfs.utils.zfs_command which causes any non-list type to be wrapped in a list. Casting the dict_values and dict_keys to a list fixes this issue in PY3
Setup
Here is a salt state salt/observium/fs.sls that I created. It tries to create a filesystem (root) from a pre-existing zpool called observium, and set a specific mount point for the filesystem.
By applying this patch, I was able to successfully apply the state above
Steps to Reproduce Issue
Apply the state above results in the error below
Versions Report
Master and minion are running the same version of salt.
The text was updated successfully, but these errors were encountered: