Bug 1011748 - Headpin Nightly : User create command fails in cli
Summary: Headpin Nightly : User create command fails in cli
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: Nightly
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Og Maciel
QA Contact: Tazim Kolhar
URL:
Whiteboard:
Depends On:
Blocks: sam20-tracker
TreeView+ depends on / blocked
 
Reported: 2013-09-25 04:29 UTC by Tazim Kolhar
Modified: 2016-04-26 00:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-27 21:33:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Tazim Kolhar 2013-09-25 04:29:39 UTC
Description of problem:
 User create command fails in cli

Version-Release number of selected component (if applicable):
# rpm -qa | grep katello
katello-glue-candlepin-1.4.7-1.el6.noarch
katello-selinux-1.4.4-1.git.1.7abb02b.el6.noarch
katello-cli-1.4.3-1.git.59.d519f2d.el6.noarch
katello-cli-common-1.4.3-1.git.59.d519f2d.el6.noarch
katello-certs-tools-1.4.4-1.el6.noarch
signo-katello-0.0.21-1.el6.noarch
katello-headpin-1.4.7-1.el6.noarch
katello-common-1.4.7-1.el6.noarch
katello-headpin-all-1.4.7-1.el6.noarch
katello-configure-1.4.6-1.git.1.c31ada4.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-elasticsearch-1.4.7-1.el6.noarch
katello-repos-1.4.2-1.el6.noarch


How reproducible:
# yum install -y katello-headpin-all
# katello-configure --deployment=headpin --user-pass=***

Steps to Reproduce:
1.# headpin -u admin -p admin user create --username testuser --password redhat --email testuser
error: Values instance has no attribute 'default_environment' (more in the log file /var/log/katello/client.log)

2.# headpin -u admin -p admin user list
--------------------------------------------------------------------------------
                                   User List

ID Username Email          Disabled Default Organization Default Environment 
--------------------------------------------------------------------------------
1  admin    root@localhost False    None                 None        
       
3. One of the latest automation test report
   - http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/official-headpin-cli/262/ReportNG_Report/

Actual results:


Expected results:


Additional info:

Comment 1 sthirugn@redhat.com 2013-09-25 12:37:10 UTC
I believe this is happening with the fix from https://bugzilla.redhat.com/show_bug.cgi?id=1005429

Comment 2 sthirugn@redhat.com 2014-06-27 21:33:29 UTC
Works fine in SAM 1.4.

# headpin -u admin -p admin user create --username='test1' --password='test' --email='test'
Successfully created user [ test1 ]


]# headpin -u admin -p admin user list
-------------------------------------------------------------------------------------
                                      User List

ID Username                    Email               Disabled Default Organization Default Environment 
-------------------------------------------------------------------------------------
8  test1                       test False    None                 None


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