| Summary: | [origin_runtime_245] It is still trying to use mod_rewrite method when setting the OPENSHIFT_FRONTEND_HTTP_PLUGINS to vhost in node.conf | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Meng Bo <bmeng> |
| Component: | Containers | Assignee: | Rob Millner <rmillner> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | dmcphers, mfisher |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-17 13:29:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Meng Bo
2013-09-17 07:34:32 UTC
I can't reproduce the bug on devenv_3802. Apps were created for python-2.6, 2.7 and 3.3 all with non-scaled, scaled, jenkins, and scaled+jenkins. All scaled apps were scaled out to three gears. Aliases for foo.example.com and bar.example.com were added to the python 2.7 scaled+jenkins app. SSL cert+key was added for foo.example.com. (scripts from the python 2.7 project) Verify you can talk to the apps and get the correct SSL certs from foo.example.com. ex: vi /etc/hosts # add "127.0.0.2 foo.example.com" curl -vvv -k https://foo.example.com/ Here's the sequence I used to test it. The yum repository has an older, buggy build of the vhost package but the one in /root/devenv-local. # oo-frontend-plugin-modify --save > file Backing up 25 frontends. # oo-frontend-plugin-modify --delete Delete all web frontend configuration? (yes/no) yes # rpm --nodeps -e rubygem-openshift-origin-frontend-apache-mod-rewrite # rpm -Uvh devenv-local/rubygem-openshift-origin-frontend-apache-vhost-*.el6.noarch.rpm Preparing... ########################################### [100%] 1:rubygem-openshift-origi########################################### [100%] # vi /etc/httpd/conf.d/000000_default.conf Comment out the following line from both vhosts: # include conf.d/openshift_route.include # service httpd restart Stopping httpd: [ OK ] Starting httpd: [Thu Sep 19 14:59:12 2013] [warn] module passenger_module is already loaded, skipping [Thu Sep 19 14:59:12 2013] [warn] NameVirtualHost *:443 has no VirtualHosts [Thu Sep 19 14:59:12 2013] [warn] NameVirtualHost *:80 has no VirtualHosts [ OK ] # vi /etc/openshift/node.conf Change the OPENSHIFT_FRONTEND_HTTP_PLUGINS line at the bottom to use vhost instead of mod-rewrite. OPENSHIFT_FRONTEND_HTTP_PLUGINS=openshift-origin-frontend-apache-vhost,openshift-origin-frontend-nodejs-websocket # service ruby193-mcollective restart Shutting down mcollective: [ OK ] Starting mcollective: [ OK ] # oo-frontend-plugin-modify --restore < file # takes a few minutes... Verify apps are reachable again and you get the correct cert. # curl -vvv -k https://foo.example.com/ Verify that broker is reachable # rhc domain show ... You have 13 applications in your domain. On the same node, I deleted applications+aliases and rebuilt them. The script to add aliases failed with the following error: ould not add job 'newpysj27-build' in Jenkins server: create_job status: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /createItem was not found on this server.</p> <hr> <address>Apache/2.2.15 (Red Hat) Server at jenkins-rmillner0115.dev.rhcloud.com Port 443</address> </body></html> build config does not exist You'll need to correct this error before attempting to embed the Jenkins client again. Could not add job 'newpysj27-build' in Jenkins server: create_job status: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /createItem was not found on this server.</p> <hr> <address>Apache/2.2.15 (Red Hat) Server at jenkins-rmillner0115.dev.rhcloud.com Port 443</address> </body></html> build config does not exist You'll need to correct this error before attempting to embed the Jenkins client again. Alias foo.example.com can't be found in application . Pull request to fix the jenkins error. This will require an updated version of the vhost package. https://github.com/openshift/origin-server/pull/3671 The mcollective service was moved to ruby193-mcollective. It works for me too. Close this bug and use the bug 1010047 to tracking the alias issue. |