Bug 41178

Summary: No proxy settings in apache cfg's after upgrading non-docker to docker app
Product: UCS Reporter: Felix Botner <botner>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P1 CC: wiesenthal
Version: UCS 4.1   
Target Milestone: UCS 4.1-2-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: 40552    

Description Felix Botner univentionstaff 2016-04-29 10:36:58 CEST
exmaple app: dudle

After the upgrade to the dudle docker app (appcenter-test) the proxy settings in the apache configs are missing. UCR config seems to be OK though (after committing the apache cfg's, the settings are there). 

-> more /etc/apache2/sites-enabled/000-default 
...
NameVirtualHost *:80
<VirtualHost *:80>
        Include /etc/apache2/ucs-sites.conf.d


</VirtualHost>

-> ucr commit /etc/apache2/sites-available/default
NameVirtualHost *:80
<VirtualHost *:80>
        Include /etc/apache2/ucs-sites.conf.d


        ProxyPass /dudle http://127.0.0.1:40000/dudle retry=0
        ProxyPassReverse /dudle http://127.0.0.1:40000/dudle


</VirtualHost>
Comment 1 Dirk Wiesenthal univentionstaff 2016-05-13 11:15:36 CEST
r69316

The problem was that the port was set correctly in UCR, but the template did not write the proxy setting:

It uses the installed apps. But during the upgrade, both versions are installed: The Docker App version, because the docker container is running (technically: because some UCR variables are set) and the Non-Docker App version because the DefaultPackages are still installed when the port UCR variables are set.

Prior to the patch, in this case the lowest version was considered as installed. Now it is the latest version.

As the latest version is the Docker App, the proxy setting will now be written.
Comment 2 Felix Botner univentionstaff 2016-05-13 12:43:29 CEST
OK - proxy settings after docker migration
OK - yaml
Comment 3 Janek Walkenhorst univentionstaff 2016-06-02 13:15:47 CEST
<http://errata.software-univention.de/ucs/4.1/187.html>