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

SSSD missing on first run CentOS - domain join fails #57

Open
spacetourist opened this issue Dec 13, 2018 · 2 comments
Open

SSSD missing on first run CentOS - domain join fails #57

spacetourist opened this issue Dec 13, 2018 · 2 comments

Comments

@spacetourist
Copy link
Contributor

spacetourist commented Dec 13, 2018

When performing first Puppet run on a minimal CentOS 1804 installation, joining realm using password fails due to missing dependencies.

Notice: /Stage[main]/Realmd::Install/Package[sssd]/ensure: created Info: Class[Realmd::Config]: Scheduling refresh of Class[Realmd::Join] Info: Class[Realmd::Join]: Scheduling refresh of Class[Realmd::Join::Password] Info: Class[Realmd::Join::Password]: Scheduling refresh of Exec[realm_join_with_password] Notice: /Stage[main]/Realmd::Join::Password/File[/usr/libexec/realm_join_with_password]/ensure: defined content as '{md5}12341234123412341234123412341234' Notice: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns: Password for Administrator: See: journalctl REALMD_OPERATION=r796.54132 Notice: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns: realm: Couldn't join realm: Necessary packages are not installed: oddjob, oddjob-mkhomedir, sssd, samba-common-tools Error: '/usr/libexec/realm_join_with_password realm join production.network --unattended --user=Administrator --computer-name=FR-P-RTP-2' returned 1 instead of one of [0] Error: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns: change from 'notrun' to ['0'] failed: '/usr/libexec/realm_join_with_password realm join production.network --unattended --user=Administrator --compute r-name=FR-P-RTP-2' returned 1 instead of one of [0] Notice: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns: Password for Administrator: See: journalctl REALMD_OPERATION=r796.54150 Notice: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns: realm: Couldn't join realm: Necessary packages are not installed: oddjob, oddjob-mkhomedir, sssd, samba-common-tools Error: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]: Failed to call refresh: '/usr/libexec/realm_join_with_password realm join production.network --unattended --user=Administrator --computer-name=FR-P-RTP-2' ret urned 1 instead of one of [0] Error: /Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]: '/usr/libexec/realm_join_with_password realm join production.network --unattended --user=Administrator --computer-name=FR-P-RTP-2' returned 1 instead of one o f [0]

@walkamongus
Copy link
Owner

The sssd package should be installed by

package { $::realmd::sssd_package_name:
, which references data at
realmd::sssd_package_name: sssd
.

The first line of the output indicates this occurred: Notice: /Stage[main]/Realmd::Install/Package[sssd]/ensure: created -- it seems like there is something else going on here besides the sssd package not being installed.

@spacetourist
Copy link
Contributor Author

I agree, however I presumed it was a matter of this not being part of the ensure_packages() check during install. I might be wrong but I have been having mixed results on a number of server installations, sometimes we are there in time with SSSD, sometimes not. I hoped this would be solved through use of stdlib function as our means of installation.

ensure_packages($::realmd::required_packages)

Having said that I am not so sure that this would make any difference to the Puppet behaviour. Do you know of any other way to make the package wait for SSSD installation to complete / have any other ideas?

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