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

[BUG] user.present with groups is broken on 3006.9 #67798

Open
1 task done
MarkoBL opened this issue Mar 7, 2025 · 3 comments
Open
1 task done

[BUG] user.present with groups is broken on 3006.9 #67798

MarkoBL opened this issue Mar 7, 2025 · 3 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior info-needed waiting for more info

Comments

@MarkoBL
Copy link

MarkoBL commented Mar 7, 2025

Description
I have updated a VM to Debian 12 and Salt 3006.9 and user.present does not work anymore when using groups.

Calling the module directy works fine:
salt 'xxx' user.chgroups katba domainusers

Running a salt sate doesn't work:
salt 'xxx' state.sls test

with the following sls file:

add_user_katba:
  user.present:
    - name: katba
    - groups:
      - domainusers

results in the following error:

xxx:
----------
          ID: add_user_katba
    Function: user.present
        Name: katba
      Result: False
     Comment: These values could not be changed: {'groups': ['domainusers']}
     Started: 13:51:35.933437
    Duration: 52.683 ms
     Changes:

Setup
Minion and Master are both on 3006.9.

  • VM (KVM / Debian 12)

Steps to Reproduce the behavior
See above

Expected behavior
It worked before with 3006.1, therefore I reverted back

@MarkoBL MarkoBL added Bug broken, incorrect, or confusing behavior needs-triage labels Mar 7, 2025
Copy link

welcome bot commented Mar 7, 2025

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 [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@MarkoBL MarkoBL changed the title [BUG] user.present with groups is broken on Debian 12 [BUG] user.present with groups is broken on 3006.9 Mar 7, 2025
@dmurphy18 dmurphy18 added this to the Sulfur v3006.10 milestone Mar 11, 2025
@dmurphy18 dmurphy18 added the info-needed waiting for more info label Mar 11, 2025
@dmurphy18
Copy link
Contributor

@MarkoBL Can you please give more information on setup, that is, katba and domainusers group etc.
Want to duplicate your exact initial conditions and can assume user is katba, but would be good to know how you setup the user katba and group domainusers to ensure I test with the same initial conditions, given that are not present in a clean Debian 12 VM.

Also Salt versions report is part of the initial bug template, please fill it out, since much information can be obtained from that, more that just what version of Salt is being used.

@dmurphy18
Copy link
Contributor

@MarkoBL Please retry the issue with the latest Salt 3006.10 release

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 info-needed waiting for more info
Projects
None yet
Development

No branches or pull requests

2 participants