Bug 41178 - No proxy settings in apache cfg's after upgrading non-docker to docker app
No proxy settings in apache cfg's after upgrading non-docker to docker app
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P1 normal (vote)
: UCS 4.1-2-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks: 40552
  Show dependency treegraph
 
Reported: 2016-04-29 10:36 CEST by Felix Botner
Modified: 2016-06-02 13:15 CEST (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 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>