-
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
[BUG] lgpo.set fails when policy is already in desired state #63296
Comments
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.
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. |
Is there anything in the minion log regarding why it failed? |
Here are few lines around the error (see attached debug log for more details), note the first line with 'success': True, is it related to the applied state?:
Full log: minion_debug.log |
This behaviour is not present on Salt Minion 3004.2-1 (Python 3) - executing state repeatedly does not fail with error. |
Seeing this issue also. Please see #63473 (comment). Originally posted there, but this seems to be the more closely related existing open issue. |
The above PRs should fix this issue |
Description
If the group policy already configured as declared in state file, Salt state.apply execution exits with failure.
Note: This behaviour is not limited to the policy given in example below - there are multiple policies(from ADMX template referenced below) with described bug.
Setup
State file hardening-microsoft-test.sls:
Steps to Reproduce the behavior
run second time:
Expected behavior
Salt should exit with "Result: True" and notify there are no changes applied in current state of configured GPO.
Versions Report
MASTER:
$ salt -V
Salt Version:
Salt: 3005.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.6
gitpython: 3.0.7
Jinja2: 2.10.1
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.6.1
pygit2: Not Installed
Python: 3.8.10 (default, Nov 14 2022, 12:59:47)
python-gnupg: 0.4.5
PyYAML: 5.3.1
PyZMQ: 20.0.0
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.15.0-1023-aws
system: Linux
version: Ubuntu 20.04 focal
MINION:
Salt Minion 3005.1 (Tiamat):
3005.1
os_name:
Microsoft Windows 10 Pro
os_type:
Work Station
os_version:
10.0.19045
The text was updated successfully, but these errors were encountered: