Bug 27153 - Fehlermeldung beim erneuten Joinen
Fehlermeldung beim erneuten Joinen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Tobias Peters
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-16 20:58 CEST by Stefan Gohmann
Modified: 2012-12-12 21:11 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-05-16 20:58:07 CEST
Beim erneuten Joinen tritt die folgende Exception in der Joinlog auf:

File: /etc/init.d/slapd
Setting slapd/port/ldaps
File: /etc/init.d/slapd
Restarting ldap server(s).
Stopping ldap server(s): slapd.
done.
Check database: done
  Starting ldap server(s): slapd.
.
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 10.201.32.3
Traceback (most recent call last):
  File "/usr/share/univention-samba4/scripts/univention-samba4-site-tool.py", line 120, in <module>
    print >> sys.stderr, "site already exists" % opts.site
TypeError: not all arguments converted during string formatting
Create samba/autostart
Create winbind/autostart
Comment 1 Stefan Gohmann univentionstaff 2012-06-01 10:25:53 CEST
Ist bzw. wird Bestandteil von UCS.
Comment 2 Stefan Gohmann univentionstaff 2012-07-17 17:09:48 CEST
UCS 3.1 will be the next release.
Comment 3 Arvid Requate univentionstaff 2012-08-13 15:22:20 CEST
Der traceback ("not all arguments converted") wurde behoben, UCS 3.1-0 Changelog ist angepasst.
Comment 4 Stefan Gohmann univentionstaff 2012-09-10 14:16:53 CEST
Ich bekomme aber immer noch einen Traceback:

root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test1" --createsite  --ignore-exists
created site test1
root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test1" --createsite  --ignore-exists
site test1 already exists
Traceback (most recent call last):
  File "/usr/share/univention-samba4/scripts/univention-samba4-site-tool.py", line 155, in <module>
    samdb.add_ldif(site_add_ldif)
  File "/usr/lib/python2.6/dist-packages/samba/__init__.py", line 224, in add_ldif
    self.add(msg, controls)
_ldb.LdbError: (68, 'LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -  <Entry CN=test1,CN=Sites,CN=Configuration,DC=deadlock2,DC=local already exists> <>')
root@master21:~# 

Ohne --ignore_exists:

root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test2" --createsite 
created site test2
root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test2" --createsite 
site test2 already exists
root@master21:~# 

IMHO müsste bei --ignore_exists der Return Code auch korrekt sein.
Comment 5 Tobias Peters univentionstaff 2012-09-12 10:07:18 CEST
Der Traceback wurde behoben. Falls der LDAP Eintrag schon existiert und univention-samba4-site-tool.py mit --ignore-exists aufgerufen wird, wird es nun mit sys.exit(0) beendet.
Comment 6 Stefan Gohmann univentionstaff 2012-09-12 10:44:44 CEST
OK, das funktioniert jetzt.
Comment 7 Stefan Gohmann univentionstaff 2012-12-12 21:11:00 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".