Nsdc provisioning fails with CentOS 7.3

I set up a completly new VM from iso and did the update to el7.3. To bring up the new kernel I did a reboot.
Then I installed nsdc, but it stucks at 57%. Tried it twice, but same result.
This is from journalctl -M- nsdc:

Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: Setting up sam.ldb data
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: Setting up well known security principals
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: Setting up sam.ldb users and groups
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: ERROR(ldb): uncaught exception - operations error at ../source4/dsdb/samdb/ldb_modules/password_hash.c:2241
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: return self.run(*args, **kwargs)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 461, in run
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 2171, in provision
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: skip_sysvolacl=skip_sysvolacl)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1794, in provision_fill
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: next_rid=next_rid, dc_rid=dc_rid)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1452, in fill_samdb
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le'))
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/provision/common.py", line 55, in setup_add_ldif
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: ldb.add_ldif(data, controls)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: File "/usr/lib64/python2.7/site-packages/samba/__init__.py", line 225, in add_ldif
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan samba-tool[26]: self.add(msg, controls)
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan systemd[1]: samba-provision.service: main process exited, code=exited, status=255/n/a
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan systemd[1]: Failed to start Domain controller provisioning.
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan systemd[1]: Unit samba-provision.service entered failed state.
Dec 13 12:05:53 nsdc-ns7test2.ns7.lan systemd[1]: samba-provision.service failed.

Provisioning failed. Problem with upsteam packages? :thinking:
I’ll do another installation and try to install nsdc before update to 7.3. Will report later.

EDIT: I’ll better wait for the fix. :smile:

Yes, @giacomo has already found a fix: we’re working on it!

1 Like

Do you have some news?
At the moment it’s not possible to install a nsdc at all. I tried it, but failed with your workaround, because there is no realm. I tried to install nsdc on new vm from rc2-iso before update to el 7.3, but same result. Provisioning failed also.

The testing package is verified: update will be available soon!

Good to know! Please close the bug when it will be released.

Fixed in rc3 (nethserver-dc-1.1.0-1.ns7.x86_64.rpm)