You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Error while running openscap from saltmaster to windows minion
Setup
Used the saltmaster vagrant box from the get started guide for the salt master.
Used my local Windows 11 as salt windows minion.
Salt-Minion-3006.3-Py3-AMD64-Setup.exe and OpenSCAP-1.3.4-win32.msi have been installed on the local windows machine.
Windows windows minion correctly registered on salt master (and this test command salt 'winminion' cmd.run 'dir c:\' is running successfully).
Steps to Reproduce the behavior
execute this command on salt master:
salt 'winminion' openscap.xccdf "eval --profile MAC-3_Sensitive 'c:\temp\U_MS_Windows_10_STIG_V2R7_Manual-xccdf.xml'"
fails with following error:
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\modules\openscap.py", line 100, in xccdf
success = _OSCAP_EXIT_CODES_MAP[proc.returncode]
KeyError: 255
ERROR: Minions returned with non-zero exit code
Expected behavior
should print out on master the passed rules.
should create an openscap report.
Additional context
I have added some output debug in openscap.py file, and it confirmed the passed arguments are ok.
Here is the command printed out:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
anilsil
changed the title
openscap[BUG]
[BUG]Error while running openscap from saltmaster to windows minion
Sep 14, 2023
twangboy
changed the title
[BUG]Error while running openscap from saltmaster to windows minion
[BUG] Error while running openscap from saltmaster to windows minion
Nov 20, 2023
Description
Error while running openscap from saltmaster to windows minion
Setup
Used the saltmaster vagrant box from the get started guide for the salt master.
Used my local Windows 11 as salt windows minion.
Salt-Minion-3006.3-Py3-AMD64-Setup.exe and OpenSCAP-1.3.4-win32.msi have been installed on the local windows machine.
Windows windows minion correctly registered on salt master (and this test command
salt 'winminion' cmd.run 'dir c:\'
is running successfully).Steps to Reproduce the behavior
execute this command on salt master:
fails with following error:
Expected behavior
should print out on master the passed rules.
should create an openscap report.
Additional context
I have added some output debug in openscap.py file, and it confirmed the passed arguments are ok.
Here is the command printed out:
The text was updated successfully, but these errors were encountered: