Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 920135 - CLI - default org and environment does not work for user create
Summary: CLI - default org and environment does not work for user create
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: Nightly
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Katello QA List
URL:
Whiteboard:
: 952667 (view as bug list)
Depends On:
Blocks: 947418
TreeView+ depends on / blocked
 
Reported: 2013-03-11 12:25 UTC by Hayk Hovsepyan
Modified: 2019-09-26 13:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 947418 (view as bug list)
Environment:
Last Closed: 2013-07-18 21:19:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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