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:
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.
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.
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