Bug 1132295 - oo-admin-upgrade, oo-admin-usage and oo-admin-ctl-domain should support login normalization
Summary: oo-admin-upgrade, oo-admin-usage and oo-admin-ctl-domain should support login...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-21 05:59 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:44 UTC (History)
6 users (show)

Fixed In Version: openshift-origin-broker-util-1.23.8.12-1.el6op
Doc Type: Bug Fix
Doc Text:
The oo-admin-upgrade, oo-admin-usage, and oo-admin-ctl-domain tools did not normalize user name parameters that were passed in, and the tools could fail to find the intended user name that was normalized in MongoDB. This bug fix updates the tools to now correctly normalize user names before searching for them.
Clone Of:
Environment:
Last Closed: 2014-09-11 20:06:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1183 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.1.6 bug fix and enhancement update 2014-09-12 00:06:21 UTC

Description Ma xiaoqiang 2014-08-21 05:59:32 UTC
Description of problem:
oo-admin-upgrade, oo-admin-usage and oo-admin-ctl-domain should also support normalization user

Version-Release number of selected component (if applicable):
puddle [2.1.z/2014-08-15.1]


How reproducible:
100%

Steps to Reproduce:
1.login with user 'xiama'
#rhc setup -l xiama -p zcxc123
2.Create an app
#rhc app create phpapp php-5.4   
3.Enable normalization of user on the broker
NORMALIZE_USERNAME_METHOD="strip,lowercase,remove_domain"
4.Use these command with ' xiAma '
#oo-admin-usage -l " xiAma "
#oo-admin-ctl-domain -l " xiAma "



Actual results:
Output:
Error: User ' xiAma ' not found


Expected results:
These command should support normalization user

Additional info:

Comment 1 openshift-github-bot 2014-08-28 12:52:27 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/502059a9859a009666ab4369c04348dbf34b8080
broker utils: complete normalization of input logins

https://bugzilla.redhat.com/show_bug.cgi?id=1132295
Bug 1132295 - oo-admin-upgrade, oo-admin-usage and
oo-admin-ctl-domain should support normalization user

Ensure when an admin enters a login with these tools that
it is normalized.

Comment 6 Ma xiaoqiang 2014-08-29 07:10:07 UTC
Check on puddle [2.1.z/2014-08.28.1]

1.login with user 'xiama'
#rhc setup -l xiama -p zcxc123
2.Create an app
#rhc app create phpapp php-5.4   
3.Enable normalization of user on the broker
NORMALIZE_USERNAME_METHOD="strip,lowercase,remove_domain"
4. Run the following command
#oo-admin-ctl-domain -l " xiAma " -c info -n test1
RHLogin: xiama
No domains for xiama match test1
#oo-admin-ctl-domain -l " xiAma " -c info -n test
<--snip-->
scalable: false
secret_token: p6DNctf-GvR0SIYnFMkwsx_D1j7IY7fS8DXaA4kwc0nvortlIxYB-cmgItL99k_QdnDVR_rJ1VN00NXybD3mQ7ySE5P4f8wPgr_9AMo6FUk8g7aA5hPE_w1WRkrcDMpz
updated_at: 2014-08-29 06:44:55.970000000 Z
<--snip-->
#oo-admin-usage -l " xiAma "  -a test

Usage for xiama (Plan: )
-------------------
No usage data found
# oo-admin-usage -l " xiAma "  -a test1 
<--snip-->
Usage Type: GEAR_USAGE (small)
    Gear ID: 54002113db26c8fa2a000060 (test1)
   Duration: 15 minutes and 9 seconds (2014-08-29 06:43:43 - PRESENT)
#oo-admin-upgrade upgrade-gear --app-name=test2 --login="xiamA a  @@adsfaasdfas@@sdfSSS   " --upgrade-gear 5400211cdb26c8e406000001 --version 2.1.5

Run the all the commands successfully.

Comment 8 errata-xmlrpc 2014-09-11 20:06:50 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-1183.html


Note You need to log in before you can comment on or make changes to this bug.