Bug 1027629
Summary: | Failed to create application when using vhost as frontend http server | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> | |
Component: | Containers | Assignee: | Brenton Leanhardt <bleanhar> | |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 2.0.0 | CC: | libra-onpremise-devel, mfisher | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1058849 (view as bug list) | Environment: | ||
Last Closed: | 2013-12-16 09:11:13 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: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1058849 |
Description
Gaoyun Pei
2013-11-07 08:49:31 UTC
This might be a configuration error. I'll test later today with a new puddle. For an OpenShift Online devenv I had to do the following: https://github.com/openshift/origin-server/blob/master/plugins/frontend/README.frontend_httpd_plugins.md#changing-configuration oo-frontend-plugin-modify --save > file oo-frontend-plugin-modify --delete # --nodeps won't be required for OSE rpm -e --nodeps rubygem-openshift-origin-frontend-apache-mod-rewrite yum install rubygem-openshift-origin-frontend-apache-vhost # remove all the lines that have 'include conf.d/openshift_route.include' vim /etc/httpd/conf.d/000000_default.conf service httpd restart # change the OPENSHIFT_FRONTEND_HTTP_PLUGINS setting and swap mod-rewrite for vhost vim /etc/openshift/node.conf service ruby193-mcollective restart oo-frontend-plugin-modify --restore < file service httpd restart Those are the exact commands I ran. Afterwards both my previously created apps still worked as well as new app creations. This is odd. I'm getting a similar error on OSE when I followed the commands in Comment #2. The following patch works around the issue: diff --git a/plugins/frontend/apache-vhost/lib/openshift/runtime/frontend/http/plugins/apache-vhost.rb b/plugins/frontend/apache-vhost/lib index 1c24977..a4d7cb1 100644 --- a/plugins/frontend/apache-vhost/lib/openshift/runtime/frontend/http/plugins/apache-vhost.rb +++ b/plugins/frontend/apache-vhost/lib/openshift/runtime/frontend/http/plugins/apache-vhost.rb @@ -419,8 +419,8 @@ module OpenShift ::OpenShift::Runtime::Frontend::Http::Plugins::reload_httpd end - def with_lock_and_reload - self.class.with_lock_and_reload + def with_lock_and_reload(&block) + self.class.with_lock_and_reload(&block) end end Just so anyone testing this is aware, if you are running an environment with a Broker and Node on the same machine you will have to do the following: cd /etc/httpd/conf.d mv 000001_openshift_origin_frontend_vhost.conf 000003_openshift_origin_frontend_vhost.conf mv 000001_openshift_origin_node_servername.conf 000003_openshift_origin_node_servername.conf Test this on puddle 2.0/2013-11-07.2, vhost configuration could work well on both all-in-one env and independent broker/node env. Plugin switch could also be done successfully on the two env. After changing frontend http server from mod-rewrite to vhost, or from vhost to mod-rewrite, old apps could be accessed, and new apps could be created. So move it to VERIFIED. Thanks for the detailed description. |