PR: https://github.com/openshift/origin-server/pull/5460 +++ This bug was initially created as a clone of Bug #1102430 +++ Description of problem: The ActiveMQ routing plug-in cannot be configured with more than one ActiveMQ broker. How reproducible: Readily. Steps to Reproduce: 1. Install a fresh OpenShift Enterprise 2.0 or 2.1 PaaS with multiple ActiveMQ brokers. 2. Install and configure the ActiveMQ routing plug-in on the OpenShift broker and ActiveMQ broker hosts per Procedure 7.20 "To Enable and Configure the Sample Routing Plug-in" in the Deployment Guide: https://access.redhat.com/site/documentation/en-US/OpenShift_Enterprise/2/html-single/Deployment_Guide/index.html#sect-Using_an_External_Load_Balancer_for_High-Availability_Applications 3. Run a listener on the routing plug-in's topic and create, delete, scale up, or scale down an application using rhc. 4. On each OpenShift broker host, edit /etc/openshift/plugins.d/openshift-origin-routing-activemq.conf by changing ACTIVEMQ_HOST to include multiple hosts; for example, ACTIVEMQ_HOST='10.0.0.7:61613,10.0.0.8:61613,10.0.0.9:61613'. 5. On each OpenShift broker host, restart broker: `service openshift-broker restart`. 6. Tail /var/log/openshift/broker/httpd/error_log. 7. Run a listener on the routing plug-in's topic and create, delete, scale up, or scale down an application using rhc. Actual results: After Steps 1 through 3, the routing plug-in works fine, and application create/delete/scaling work fine. At Step 6, there are errors: connect to 10.0.0.7:61613,10.0.0.8:61613,10.0.0.9:61613 failed: getaddrinfo: Name or service not known will retry(#0) in 5 This error repeats every 5 seconds with the retry # incremented. At Step 7, rhc hangs for several minutes and then reports an error: # rhc -k cartridge scale php -a testapp1 3 You have not yet configured the OpenShift client tools. Please run 'rhc setup'. An error occurred while communicating with the server. This problem may only be temporary. Check that you have correctly specified your OpenShift server 'https://broker01.hosts.example.com/broker/rest/application/53866ea62c165f5769000037/cartridge/php-5.3'. Expected results: There should be no errors at Step 6, and Step 7 should work just as well as Step 3. Additional info: This bug impacts HA.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/00e9410897a8381dac4d8b6518ea630a6a3577ae plugins/routing/activemq: Take array of hosts In the ActiveMQ routing plug-in, interpret ACTIVEMQ_HOST as a comma-separated list of host:port pairs, and use this list of hosts when connecting to ActiveMQ for redundancy. This commit fixes bug 1102432.