Bug 1048943 - oo-admin-ctl-user bulk provision backport
Summary: oo-admin-ctl-user bulk provision backport
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-06 15:09 UTC by Jordan Liggitt
Modified: 2017-03-08 17:36 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2014-01-28 16:39:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0102 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.0.2 bug fix and enhancement update 2014-01-28 21:38:01 UTC

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


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