Bug 1158704
Summary: | Broker fails to create HA DNS entry for application created highly available | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Miciah Dashiel Butler Masters <mmasters> |
Component: | Node | Assignee: | chris alfonso <calfonso> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.2.0 | CC: | adellape, bleanhar, hbrock, jokerman, misalunk, mmccomas, pruan, xiama |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-openshift-origin-controller-1.31.5.2-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
Due a bug in the broker's controller library, DNS entries for high-availability applications were not created properly at creation time when using the broker REST API. This was inconsistent with the behavior when creating an application then performing the enable-ha or make-ha action on the existing application. This bug fix updates the controller, as a result the DNS entries are created properly. After applying this update, the openshift-broker service must be restarted.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-12-10 13:24:43 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: | 1131518 |
Description
Miciah Dashiel Butler Masters
2014-10-29 22:07:27 UTC
I'm fixing this upstream https://github.com/openshift/origin-server/pull/5956 and will update once the patch is merged, and pulled into enterprise. This has been built in brew https://brewweb.devel.redhat.com/buildinfo?buildID=398700 Check on puddle [2.2.z/2014-11-20.1] 1. Allow ha and ha-dns on broker # grep HA /etc/openshift/broker.conf DEFAULT_ALLOW_HA="false" ALLOW_HA_APPLICATIONS="true" MANAGE_HA_DNS="true" HA_DNS_PREFIX="ha-" #oo-admin-ctl-user -l user --allowha true 2. Create two apps #rhc app create phpapp1 php-5.4 -s #rhc app create phpapp2 php-5.4 -s 3. make ha #rhc app enable-ha phpapp1 #rhc app enable-ha phpapp2 4. Check the ha-dns #host ha--phpapp2-xiaom.ose22-auto.com.cn #host ha--phpapp1-xiaom.ose22-auto.com.cn The output: ha-phpapp2-xiaom.ose22-auto.com.cn is an alias for www.example.com. www.example.com has address 93.184.216.119 www.example.com has IPv6 address 2606:2800:220:6d:26bf:1447:1097:aa7 ha-phpapp2-xiaom.ose22-auto.com.cn is an alias for www.example.com. www.example.com has address 93.184.216.119 www.example.com has IPv6 address 2606:2800:220:6d:26bf:1447:1097:aa7 (In reply to Ma xiaoqiang from comment #5) > Check on puddle [2.2.z/2014-11-20.1] > > 1. Allow ha and ha-dns on broker > # grep HA /etc/openshift/broker.conf > DEFAULT_ALLOW_HA="false" > ALLOW_HA_APPLICATIONS="true" > MANAGE_HA_DNS="true" > HA_DNS_PREFIX="ha-" > #oo-admin-ctl-user -l user --allowha true > 2. Create two apps > #rhc app create phpapp1 php-5.4 -s > #rhc app create phpapp2 php-5.4 -s > > 3. make ha > #rhc app enable-ha phpapp1 > #rhc app enable-ha phpapp2 > > 4. Check the ha-dns > #host ha--phpapp2-xiaom.ose22-auto.com.cn > #host ha--phpapp1-xiaom.ose22-auto.com.cn > > The output: > ha-phpapp2-xiaom.ose22-auto.com.cn is an alias for www.example.com. > www.example.com has address 93.184.216.119 > www.example.com has IPv6 address 2606:2800:220:6d:26bf:1447:1097:aa7 > > ha-phpapp2-xiaom.ose22-auto.com.cn is an alias for www.example.com. > www.example.com has address 93.184.216.119 > www.example.com has IPv6 address 2606:2800:220:6d:26bf:1447:1097:aa7 5. create app with ha option #vim /usr/lib/ruby/gems/1.8/gems/rhc-1.31.3.1/lib/rhc/commands/app.rb + 604 app_options[:ha] = true # rhc app create phpapp5 php-5.4 -s --no-git 6. # host ha-phpapp5-xiaom.ose22-auto.com.cn ha-phpapp5-xiaom.ose22-auto.com.cn is an alias for www.example.com. www.example.com has address 93.184.216.119 www.example.com has IPv6 address 2606:2800:220:6d:26bf:1447:1097:aa7 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-2014-1979.html |