Bug 26146 - Kein shares.conf.d nach Update auf Samba 4
Kein shares.conf.d nach Update auf Samba 4
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Tobias Peters
Felix Botner
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-15 16:52 CET by Janis Meybohm
Modified: 2012-07-20 15:24 CEST (History)
3 users (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
Log vom univention-install univention-samba4 (122.67 KB, text/x-log)
2012-02-15 16:52 CET, Janis Meybohm
Details
join.log (34.17 KB, text/x-log)
2012-02-15 16:52 CET, Janis Meybohm
Details
listener.log des updates von univention-samba auf univention-samba4 (179.10 KB, application/octet-stream)
2012-07-05 14:09 CEST, Tobias Peters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2012-02-15 16:52:02 CET
Created attachment 4181 [details]
Log vom univention-install univention-samba4

Ich habe einen 3.0 DC-Slave von Samba 3 auf Samba 4 aktualisiert. Anschließend
war kein /etc/samba/shares.conf.d vorhanden weshalb der Listener keine Shares
anlegen konnte.
Comment 1 Janis Meybohm univentionstaff 2012-02-15 16:52:40 CET
Created attachment 4182 [details]
join.log
Comment 2 Arvid Requate univentionstaff 2012-02-15 18:41:07 CET
Das Verzeichnis wird vom Paket univention-samba-local-config mitgebracht, das in ucs3.0-1 als Dependency von univention-samba4 installiert wird und in der  getesteten Umgebung deinstalliert worden war.

Normalerweise sollte das Verzeichnis aber auch vom samba-shares.py Listener angelegt werden, wenn es fehlt.
Comment 3 Tobias Peters univentionstaff 2012-06-29 15:06:14 CEST
Wenn der Ordner nicht vorhanden ist und ein Update von Samba3 auf Samba4 gemacht wird, wird er auch nicht erstellt, da univention-samba-local-config schon vorhanden ist und der Ordner nur bei der Installation dieses Pakets erstellt wird.

Am Ende der Installation von univention-samba4 wird zwar der Univention Directory Listener neu gestartet, aber dabei werden die Module des Listeners nicht neu initialisiert. Da der Ordner nur bei der Initialisierung des Moduls der Ordner erstellt wird, fehlt er weiterhin und die vorhandenen Shares können nicht angelegt werden( Zeile 1088 - 1250 )

Soll nun eine Freigabe erstellt werden, schlägt auch dies fehl, da der Ordner nicht vorhanden ist. (Zeile 1582 - 1608)

Nachdem der samba-shares Listener manuell initialisiert wurde mit "univention-directory-listener-ctrl resync samba-shares" wird auch der Ordner shares.conf.d erstellt und die Shares synchronisiert. (Zeile 1610 -1804)
Comment 4 Tobias Peters univentionstaff 2012-07-05 14:09:13 CEST
Created attachment 4504 [details]
listener.log des updates von univention-samba auf univention-samba4
Comment 5 Tobias Peters univentionstaff 2012-07-06 15:08:35 CEST
Wenn der Ordner /etc/samba/shares.conf.d nicht vorhanden ist, erstellt der samba-shares.py Listener ihn nun wenn ein neuer Share angelegt wird.
Comment 6 Felix Botner univentionstaff 2012-07-12 14:56:47 CEST
ok, nach Update auf samba4 gibt es shares.conf.d (wird im samba3 und samba4 samba-shares.py listener beim Start angelegt).

Changelog vorhanden.
Comment 7 Stefan Gohmann univentionstaff 2012-07-20 15:24:52 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

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