Bug 35721

Summary: Fix apache2 startsite timing issue in EC2 appliance mode
Product: UCS Reporter: Erik Damrose <damrose>
Component: System setupAssignee: Erik Damrose <damrose>
Status: CLOSED FIXED QA Contact: Janek Walkenhorst <walkenhorst>
Severity: normal    
Priority: P5 CC: damrose, gohmann
Version: UCS 3.2   
Target Milestone: UCS 3.2-3-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 35726, 37147    
Attachments: Move the configuration of UCRV apache2/startsite to an earlier initscript

Description Erik Damrose univentionstaff 2014-08-27 12:53:28 CEST
Created attachment 6074 [details]
Move the configuration of UCRV apache2/startsite to an earlier initscript

Errata 160 introduced a "first steps" site, which is shown on unjoined ec2 instances when accessing http://<ucs>/

There is a timing issue with the original solution. A time window exists when apache is running with the startsite set to the old UMC login.

Solution: Move the configuration of UCRV apache2/startsite to an earlier initscript, before apache2 is started: univention-system-setup-boot-prepare

Patch attached

After this has been fixed, update http://wiki.univention.de/index.php?title=UCS_Appliance#Preparing_Amazon_EC2_Images and remove the workaround.

+++ This bug was initially created as a clone of Bug #34388 +++
Comment 1 Erik Damrose univentionstaff 2014-08-28 17:39:05 CEST
Patch applied. The startsite is now configured at an earlier stage in the boot process.

r53138 univention-system-setup 7.0.69-53
r53140 2014-08-28-univention-system-setup.yaml
r53141 Merge to UCS4 (v8.0.32-2)
Comment 2 Janek Walkenhorst univentionstaff 2014-09-10 11:59:17 CEST
Code review: OK
Merge: OK
Race condition gone: OK
Advisory: OK
Comment 3 Janek Walkenhorst univentionstaff 2014-09-10 17:46:00 CEST
http://errata.univention.de/ucs/3.2/204.html