Bug 32095 - "Marktplatz" share has always "dc$OU-01" as share host
"Marktplatz" share has always "dc$OU-01" as share host
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Import scripts
unspecified
Other Linux
: P1 normal (vote)
: UCS@school 3.1 R2 Errata
Assigned To: Janek Walkenhorst
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-26 14:15 CEST by Felix Botner
Modified: 2013-10-07 20:18 CEST (History)
2 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

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2013-07-26 14:15:29 CEST
single server environment 

create_ou always sets the not existing host "dc$OU-01" as share host for the "Marktplatz" share
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-07-26 14:29:04 CEST
The create_ou.post.d hook should read the fileserver in charge from the OU object before creating the Marktplatz share.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2013-10-01 13:01:19 CEST
Technical background:
create_ou tests for the UCR variable "ucsschool/defaultschoolname" which is de-facto unused since UCS@school 3.0. create_ou (or to be more precise verify_school_ou()) then sets the UCR variable to the name of the first OU ever created on a singlemaster.
If "ucsschool/defaultschoolname" is unset on a singlemaster, the local hostname is passed to verify_school_ou() if no dcname has been given to the script. If the variable is set and no dcname has been specified, no hostname is passed to verify_school_ou() → the default "dc${OU}-01" is used as fileserver.

Solution for UCS 3.1R2:
Remove the test of "ucsschool/defaultschoolname" and always pass the local hostname to verify_school_ou() in single server environments.

Solution for UCS 3.2:
Same as 3.1R2. Remove also the definition of "ucsschool/defaultschoolname" within verify_school_ou(), but do not unset the variable.

The variable is not used for any other function in UCS@school as described above.
If a customer relies on that variable, a short post-ou hook script may be written to set the variable during create_ou if still unset.
Comment 3 Janek Walkenhorst univentionstaff 2013-10-02 15:15:30 CEST
(In reply to Sönke Schwardt-Krummrich from comment #2)
> Solution for UCS 3.1R2:
> Remove the test of "ucsschool/defaultschoolname" and always pass the local
> hostname to verify_school_ou() in single server environments.
ucs-school-import (10.0.3-2)

> Solution for UCS 3.2:
> Same as 3.1R2. Remove also the definition of "ucsschool/defaultschoolname"
> within verify_school_ou(), but do not unset the variable.
ucs-school-import (10.0.4-1)

changelog-ucsschool-3.1R2-2.tex: Updated
changelog-ucsschool-3.2.xml: Updated
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2013-10-04 12:12:34 CEST
OK: 3.1 code diff
FIXED: 3.1 changelog
OK: 3.1 package version
OK: 3.1 test
OK: 3.1 package in repo

OK: 3.2 code diff
FIXED: 3.2 changelog
OK: 3.2 package version

→ VERIFIED
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2013-10-07 20:18:01 CEST
UCS@school 3.1 R2-2 has been released:
http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2-2.pdf

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