Version-Release number of selected component (if applicable): === - OSE 2.2 How reproducible === - After set up /etc/openshift/routing-daemon.conf with F5 BIG-IP and routing daemon, when creating applications with -s option(Enable scaling), following error appeared. Actual results === ~~~ I, [2015-03-03T18:09:48.608660 #21430] INFO -- : Requesting list of monitors from load balancer... W, [2015-03-03T18:09:48.782913 #21430] WARN -- : Got an exception: 415 Unsupported Media Type D, [2015-03-03T18:09:48.783050 #21430] DEBUG -- : Backtrace: /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `block in transmit' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/models/f5-icontrol-rest.rb:40:in `rest_request' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/models/f5-icontrol-rest.rb:57:in `post' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/models/f5-icontrol-rest.rb:112:in `create_monitor' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/controllers/simple.rb:100:in `create_monitor' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/daemon.rb:307:in `create_application' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/daemon.rb:342:in `add_endpoint' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/daemon.rb:254:in `handle' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.22.1.2/lib/openshift/routing/daemon.rb:226:in `listen' /etc/init.d/openshift-routing-daemon:94:in `block (2 levels) in <main>' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:215:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:215:in `block in start_proc' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/daemonize.rb:192:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/daemonize.rb:192:in `call_as_daemon' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:219:in `start_proc' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:255:in `start' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/controller.rb:69:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:188:in `block in run_proc' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `catch_exceptions' /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:187:in `run_proc' /etc/init.d/openshift-routing-daemon:93:in `block in <main>' /etc/init.d/openshift-routing-daemon:37:in `block (2 levels) in locked' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.3.0/lib/openshift-origin-common/utils/path_utils.rb:93:in `block in flock' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.3.0/lib/openshift-origin-common/utils/path_utils.rb:88:in `open' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.3.0/lib/openshift-origin-common/utils/path_utils.rb:88:in `flock' /etc/init.d/openshift-routing-daemon:36:in `block in locked' /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' /etc/init.d/openshift-routing-daemon:35:in `locked' /etc/init.d/openshift-routing-daemon:80:in `<main>' ~~~ Expected results: === - Create application without any error.
PR opened upstream for origin-server https://github.com/openshift/origin-server/pull/6092
It is really weird, I have an existing env on which rubygem-openshift-origin-routing-daemon-0.22.1.2-1.el6op.noarch already is installed. (I also used this env to test "F5 listener support for load balancer" new feature). Toady I tried to reproduce this bug on the same env, but can not. After I upgraded it to rubygem-openshift-origin-routing-daemon-0.22.2.2-1.el6op.noarch, then created an scalable app, and downgraded it to the old version (rubygem-openshift-origin-routing-daemon-0.22.1.2-1.el6op.noarch), from then on, this bug always could be reproduced. I can not figure out that is why. Whatever, verified this bug with rubygem-openshift-origin-routing-daemon-0.22.2.2-1.el6op.noarch, and PASS. After upgrade it to rubygem-openshift-origin-routing-daemon-0.22.2.2-1.el6op.noarch, the error disappeared.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0779.html