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:
I believe this is happening with the fix from https://bugzilla.redhat.com/show_bug.cgi?id=1005429
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