Bug 1109549

Summary: enhance oo-admin-ctl-app with ability to add/remove alias
Product: OpenShift Container Platform Reporter: Brenton Leanhardt <bleanhar>
Component: NodeAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1.0CC: adellape, agrimm, anli, jialiu, jliggitt, jokerman, libra-onpremise-devel, mmccomas, tvvocold, xiama
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: openshift-origin-broker-util-1.23.8.9-1.el6op Doc Type: Enhancement
Doc Text:
The oo-admin-ctl-app command now has the --alias option which allows administrators to add or remove an alias from an application.
Story Points: ---
Clone Of: 1105843 Environment:
Last Closed: 2014-08-26 13:52:31 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: 1105843    
Bug Blocks:    

Comment 1 Brenton Leanhardt 2014-08-01 13:08:30 UTC
Upstream commit:

commit c197c5a07f2e36c8c9cd359e71e2d0d2e885732c
Author: Lili Nader <lnader>
Date:   Thu Jun 12 22:03:44 2014 -0700

    Bug 1105843 - added add/remove alias functionality to oo-admin-ctl-app

Comment 4 Ma xiaoqiang 2014-08-04 06:10:23 UTC
Check on puddle[2.1.5/2014-08-01.1]

1. Create 2 apps named app1, app2.
# rhc app-create app1 $CART 
# rhc create-app app2 $CART
2. Create alias for app1 via rhc.
# rhc alias-add app1  app.alias
Alias added successfully.
3. Add above alias to app2 via oo-admin-ctl-app
# oo-broker oo-admin-ctl-app  -l LOGIN -a app2 -c add-alias --alias app.alias
Show alias already registered.
4. Remove alias from app1 via oo-admin-ctl-app
# oo-broker oo-admin-ctl-app -l LOGIN -a app1 -c remove-alias --alias app.alias
Alias removed successfully.
5. Add above alias to app2 via oo-admin-ctl-app
# oo-broker oo-admin-ctl-app  -l LOGIN -a app2 -c add-alias --alias app.alias
 Alias added successfully.
6. Add above alias to app1 via rhc
# rhc alias-add app1 app.alias
 Show alias already registered.

Comment 6 errata-xmlrpc 2014-08-26 13:52:31 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-1095.html