Bug 1048943

Summary: oo-admin-ctl-user bulk provision backport
Product: OpenShift Container Platform Reporter: Jordan Liggitt <jliggitt>
Component: NodeAssignee: Luke Meyer <lmeyer>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: adellape, bleanhar, gpei, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-openshift-origin-controller-1.17.10-1.el6op, openshift-origin-broker-util-1.17.6.2-1.el6op, openshift-origin-broker-1.15.2-1.el6op Doc Type: Enhancement
Doc Text:
The oo-admin-ctl-user tool would only allow administrators to edit user information for one user at a time. This has been fixed and administrators can now update user information for multiple users at a time. See the OpenShift Enterprise Administration Guide for more information on how to use the oo-admin-ctl-user tool.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-28 16:39:18 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:

Description Jordan Liggitt 2014-01-06 15:09:14 UTC
Description of problem:
Three options were added to oo-admin-ctl-user:
-c | --create
-q | --quiet
-f | --logins-file

These are needed for OSE 2.0.2

Changes were implemented in:
https://github.com/openshift/li/pull/2254
https://github.com/openshift/origin-server/pull/4382
https://github.com/openshift/origin-dev-tools/pull/108




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Luke Meyer 2014-01-13 22:38:41 UTC
origin-server
commit f290122b8c0d5cd1a8716dbe4a3351657f67183c
Author: Ravi Sankar <rpenta>
Date:   Mon Dec 2 12:56:59 2013 -0800
    Bug 1035984 - Updated oo-admin-ctl-user man pages with setmaxdomains/allowplanupgrade options

commit 0f56c68356e61a4a75a656d228f2607a4565b1bc
Author: liggitt <jliggitt>
Date:   Mon Dec 23 10:49:56 2013 -0500
    Add --quiet, --create, and --logins-file to oo-admin-ctl-user

origin-dev-tools
commit 1b0b39d9a70e0593b4496170eec67923c9617bac
Author: liggitt <jliggitt>
Date:   Thu Jan 2 14:15:36 2014 -0500

Comment 5 Gaoyun Pei 2014-01-15 05:38:04 UTC
Verify this bug with rubygem-openshift-origin-controller-1.17.10-1.el6op.noarch,
openshift-origin-broker-util-1.17.6.2-1.el6op.noarch

[root@broker action_hooks]# oo-admin-ctl-user  -l gpei --setmaxgears 100 -q
[root@broker ~]# oo-admin-ctl-user  -f user_file --setmaxuntrackedstorage 10


Setting max_untracked_addtl_storage_per_gear to 10... Done.

User huser1:
                            plan: 
                consumed domains: 1
                     max domains: 10
                  consumed gears: 2
                       max gears: 100
    max tracked storage per gear: 0
  max untracked storage per gear: 10
                      gear sizes: small
            sub accounts allowed: false
private SSL certificates allowed: false
              inherit gear sizes: false
                      HA allowed: false

Error: User 'huser2' not found
Setting max_untracked_addtl_storage_per_gear to 10... Done.

User tfeng:
                            plan: 
                consumed domains: 2
                     max domains: 10
                  consumed gears: 1
                       max gears: 100
    max tracked storage per gear: 0
  max untracked storage per gear: 10
                      gear sizes: small
            sub accounts allowed: false
private SSL certificates allowed: false
              inherit gear sizes: false
                      HA allowed: false

Setting max_untracked_addtl_storage_per_gear to 10... Done.

User yujzhang:
                            plan: 
                consumed domains: 3
                     max domains: 10
                  consumed gears: 0
                       max gears: 100
    max tracked storage per gear: 0
  max untracked storage per gear: 10
                      gear sizes: small
            sub accounts allowed: false
private SSL certificates allowed: false
              inherit gear sizes: false
                      HA allowed: false

Errors were encountered
[root@broker ~]# oo-admin-ctl-user --create -l gpei1 --setconsumedgears 1


Setting consumed_gears to 1... Done.

User gpei1:
                            plan: 
                consumed domains: 0
                     max domains: 10
                  consumed gears: 1
                       max gears: 100
    max tracked storage per gear: 0
  max untracked storage per gear: 0
                      gear sizes: small
            sub accounts allowed: false
private SSL certificates allowed: false
              inherit gear sizes: false
                      HA allowed: false

Comment 7 errata-xmlrpc 2014-01-28 16:39:18 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-0102.html