Description of problem: When an application is made HA and MANAGE_HA_DNS=true in the broker.conf, the HA routing DNS is created twice. Then, it is created again whenever another haproxy instance is added. This is due to the following patch: https://github.com/openshift/origin-server/commit/d15a9d2aad33cd3ae0723ee9ac2c126c1ab1966e Version-Release number of selected component (if applicable): 2.2.6 How reproducible: Always Steps to Reproduce: 1. In an HA environment, create a scaled application 2. Make the application HA with the API call or `rhc app enable-ha APP_NAME` 3. Review the /var/log/openshift/broker/production.log Actual results: The `RegisterRoutingDnsOp` pending operation is run twice during the make-ha process: 2015-04-08 17:53:53.929 [DEBUG] Execute SetHaOp (pid:10517) [...] 2015-04-08 17:53:53.990 [DEBUG] Execute RegisterRoutingDnsOp (pid:10517) [...] 2015-04-08 17:54:05.938 [DEBUG] Execute RegisterRoutingDnsOp (pid:10517) Expected results: The routing DNS is registered once. Additional info: This works without issue when the nsupdate dns plugin is used. This is because nsupdate has no problem updating an existing record to the same existing record. In some DNS plugins, such as a plugin that makes HTTP requests to manage DNS, attempting to add the same entry twice can cause an error to be returned.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b818cc793dfa78602cdd37adc3f792a0da3c8201 BZ1210489 - Enable-HA registers routing appliaction DNS twice, breaking functionality for some custom DNS plugins Bug 1210489 Bugzilla link https://bugzilla.redhat.com/show_bug.cgi?id=1210489 The routing dns entry is added twice. This addition, added in d15a9d2aad33cd3ae0723ee9ac2c126c1ab1966e, is not needed as a method to create an HA application in a single API call is not used except for in tests.
Check on puddle [2.2.6/2015-05-18.1] 1. create an app # rhc app create xiaom1 php-5.4 -s 2. enable ha the app rhc app anable-ha xiaom1 3. check the log #grep -r RegisterRoutingDnsOp /var/log/openshift/broker/development.log 2015-05-19 17:04:00.659 [DEBUG] Execute RegisterRoutingDnsOp (pid:12219) The routing DNS is registered once.
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-1463.html