Bug 920135

Summary: CLI - default org and environment does not work for user create
Product: Red Hat Satellite Reporter: Hayk Hovsepyan <hhovsepy>
Component: APIAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: NightlyCC: gkhachik, mmccune
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 947418 (view as bug list) Environment:
Last Closed: 2013-07-18 21:19:54 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:
Bug Depends On:    
Bug Blocks: 947418    

Description Hayk Hovsepyan 2013-03-11 12:25:40 UTC
Description of problem:
On CLI level when creating user by specifying default org and environment, it creates successfully, but in 'user info' and 'user list' it does not show default values.

Version-Release number of selected component (if applicable):
katello-selinux-1.3.1-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-repos-1.3.2-1.el6.noarch
katello-cli-common-1.3.4-1.git.908.7e3bcff.el6.noarch
katello-configure-1.3.6-1.git.838.2dc1245.el6.noarch
katello-glue-pulp-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-glue-elasticsearch-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-agent-1.3.1-1.git.476.f8f2f08.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-certs-tools-1.1.9-1.el6.noarch
katello-cli-1.3.4-1.git.908.7e3bcff.el6.noarch
katello-common-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-glue-foreman-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-all-1.3.14-1.git.907.71ccfd2.el6.noarch
katello-glue-candlepin-1.3.14-1.git.907.71ccfd2.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. Create some org and environment in it.
2. Create user in CLI by specifying "--default_organization" and "--default_environment" options. It will create successfully.
3. List users in CLI or execute "user info" command by specifying just created username. You will see that it shows "None" for default values, which is bug.
  
Actual results:
default values are not saved

Expected results:
it should save and show them

Additional info:
on UI side it works fine while creating user.

Comment 2 Garik Khachikyan 2013-04-16 12:09:21 UTC
applying as 6.0.1 candidate: as it's a regression caught by automation.

Comment 3 Garik Khachikyan 2013-04-16 12:09:49 UTC
*** Bug 952667 has been marked as a duplicate of this bug. ***

Comment 4 Eric Helms 2013-05-07 14:13:11 UTC
The user was not being saved when provided with the default environment. The fix is being tracked here: https://github.com/Katello/katello/pull/2183

Comment 5 Eric Helms 2013-05-08 20:24:14 UTC
commit d36b75f5c283d728797dd6b4cf522d1d19d98e6d
Merge: 79eaaf7 ba31d6d
Author: Eric D Helms <ericdhelms>
Date:   Tue May 7 16:34:01 2013 -0700

    Merge pull request #2183 from ehelms/bug-920135
    
    Bug 920135 - Adds missing save if default environment is specified

Comment 6 Hayk Hovsepyan 2013-05-13 08:23:06 UTC
Verified in:
signo-katello-0.0.7-1.el6.noarch
katello-selinux-1.4.3-1.git.3.ce8227b.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.4.2-1.git.47.c7ac869.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-configure-1.4.3-1.git.12.bc3684c.el6.noarch
katello-common-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-glue-candlepin-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-glue-elasticsearch-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-all-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-cli-common-1.4.2-1.git.47.c7ac869.el6.noarch
katello-repos-1.4.2-1.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-glue-pulp-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-1.4.2-1.git.313.0d31cdb.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch

Now it saves default values.

Comment 7 Mike McCune 2013-07-18 21:19:54 UTC
mass move to CLOSED:CURRENTRELEASE since MDP1 has been released.