Bug 1123337
Summary: | Should not print 'member|add' message to out-file if no team member need to sync from LDAP | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | zhaozhanqi <zzhao> |
Component: | oc | Assignee: | Rory Thrasher <rthrashe> |
Status: | CLOSED WONTFIX | QA Contact: | zhaozhanqi <zzhao> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | aos-bugs, jokerman, mmccomas, rthrashe, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-31 18:22:11 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
zhaozhanqi
2014-07-25 11:12:06 UTC
Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/37a930d958c2fe08cc267567cb6523e256c58479 oo-admin-ctl-team: check to avoid output if no members Bug 1123337 BZ https://bugzilla.redhat.com/show_bug.cgi?id=1123337 The oo-admin-ctl-team script was printing "MEMBER|ADD|groupname|" even if there were no members being added. This will now only output if there are members in the members_to_add variable. https://github.com/openshift/origin-server/commit/2c03c3e31c696bf9c5caf722f520837aff279434 Merge pull request #6343 from thrasher-redhat/bug1123337 Merged by openshift-bot QA, The oo-admin-ctl-team script should no longer be printing "MEMBER|ADD|teamname|" if there are no members being added. Please verify that this is the case based on the original steps to reproduce. 1. Setup LDAP server and add one group named 'openshift' which include one member "test" 2. Sync this group to openshift global team oo-broker oo-admin-ctl-team -c create --config-file /usr/local/config.yml --groups "openshift" 3. Add one member to this team by sync-from-file #cat /usr/local/user.txt <<EOF USER|ADD|test2 MEMBER|ADD|all|test2 EOF #oo-broker oo-admin-ctl-team -c sync-from-file --in-file /usr/local/user.txt 4. print the user which is in team but not in LDAP group to file remove.txt #oo-broker oo-admin-ctl-team -c sync-to-file --config-file /usr/local/config.yml --out-file /usr/local/remove.txt --remove-old-users 5. Check the remove.txt to ensure there is no line that has "MEMBERS|ADD|openshift|" with no members listed. Verified this bug on devenv_5764 [root@ip-172-18-7-156 local]# cat remove.txt MEMBER|REMOVE|first ten|test2 We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause. |