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

Failure adding a user that is a member of the "users" group. #1601

Closed
arizvisa opened this issue Apr 9, 2023 · 1 comment
Closed

Failure adding a user that is a member of the "users" group. #1601

arizvisa opened this issue Apr 9, 2023 · 1 comment

Comments

@arizvisa
Copy link

arizvisa commented Apr 9, 2023

Bug

It appears you can't use the "users" group within passwd.users because it doesn't exist, or within passwd.groups because the group already exists. I assume that this part of ignition is not idempotent.

{"ignition":{"version":"3.3.0"},"passwd":{"users":[{"groups":["users"],"name":"core","noUserGroup":true,"passwordHash":"$1$$PsuPeH6mHmKdRxC/yQ6a0.","primaryGroup":"wheel","shell":"/bin/bash","shouldExist":true}]}}

Emits:

CRITICAL : ignition failed: failed to create users/groups: failed to configure users: failed to create user "core": exist status 6: Cmd: "useradd" "--root" "/sysroot" "--create-home" "--no-user-group" "--password" "$1$$PsuPeH6mHmKdRxC/yQ6a0." "--comment" "CoreOS Admin" "--gid" "wheel" "--groups" "adm,sudo,systemd-journal,wheel,users" "--shell" "/bin/bash" "core" Stdout: "" Stderr: "useradd: group 'users' does not exist
"

Whereas:

{"ignition":{"version":"3.3.0"},"passwd":{"groups":[{"name":"users"}],"users":[{"groups":["users"],"name":"core","noUserGroup":true,"passwordHash":"$1$$PsuPeH6mHmKdRxC/yQ6a0.","primaryGroup":"wheel","shell":"/bin/bash","shouldExist":true}]}}

Emits:

CRITICAL : Ignition failed: failed to create users/groups: failed to configure groups: failed to create group "users": exist status 9: Cmd: "groupadd" "--root" "/sysroot" "--password" "*" "users" Stdout: "" Stderr: "groupadd: group 'users' already exists
"

Operating System Version

CoreOS 37.20230218.3.0 (1 month old, most recent is v37.20230322.3.0)

Ignition Version

2.14.0, (most recent is v2.15.0)

Environment

What hardware/cloud provider/hypervisor is being used to run Ignition?
VMware ESXi

Expected Behavior

Should create the "core" user as a member of the "users" group.

Actual Behavior

Ignition failure.

Reproduction Steps

Please review "Bug" section.

Other Information

@bgilbert
Copy link
Contributor

bgilbert commented Apr 9, 2023

Thanks for the report. This a duplicate of #1596.

@bgilbert bgilbert closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants