redhat-cop/infra.osbuild

Builder role - Kickstart install fails on missing user error

zjpeterson opened this issue · 0 comments

If I use the defaults for the builder role, creating a user called core with builder_pub_key and no builder_password set, I get an error near the end of the install: dasbus.error.DBusError: set_user_ssh_key: user core does not exist

I found this matching this bugzilla report: https://bugzilla.redhat.com/show_bug.cgi?id=1838859

The user does not appear to exist before the install process tries to apply an SSH key to it.

Workaround: I can get the install to succeed if I get the sshkey line out of the kickstart. Since the user's password is set elsewhere (in builder_compose_customizations) you can still log in. Currently, you can't avoid having a sshkey line by omitting builder_pub_key because the role's kickstart template looks for it to be empty, which it won't be, because the role supplies a default. Supplying builder_pub_key: '' works but doesn't solve the underlying issue of not being able to set up key login.