Description of problem: user has no default org: [root@ec2-54-216-130-111 ~]# katello --path /sam -u admin -p admin user info --username admin ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- User Information ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ID : 1 Username : admin Email : root@localhost Disabled : False Default Organization : None Default Environment : None Default Locale : None Trying to set it up with cli: [root@ec2-54-216-130-111 ~]# katello --path /sam -u admin -p admin user update --default_organization "Red Hat (Internal Use Only)" --username admin --default_environment "Library" Successfully updated user [ admin ] Looks like we succeeded. Checking... [root@ec2-54-216-130-111 ~]# katello --path /sam -u admin -p admin user info --username admin ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- User Information ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ID : 1 Username : admin Email : root@localhost Disabled : False Default Organization : None Default Environment : None Default Locale : None Default Organization is still empty. Version-Release number of selected component (if applicable): katello-cli-1.4.2-8.el6sat katello-headpin-1.4.2-17.el6sam_splice How reproducible: always Steps to Reproduce: 1. Try modifying default org with cli Actual results: Default org is not modified Expected results: Default org is modified Additional info:
This is likely working as intended behind the scenes since Headpin only has a single valid environment (Library). The options for default env should be hidden both in update and info.
(In reply to Tom McKay from comment #1) > This is likely working as intended behind the scenes since Headpin only has > a single valid environment (Library). The options for default env should be > hidden both in update and info. I'm interested in default org only. But when I try to set it without setting default env I got the following: # katello --path /sam -u admin -p admin user update --default_organization "Red Hat (Internal Use Only)" --username admin Usage: katello <options> user update <options> katello: error: Option --default_environment is required; please see --help
Branch: refs/heads/master Home: https://github.com/Katello/katello Commit: 4861578f8fc776b8cf0da295fad12f44925459a2 https://github.com/Katello/katello/commit/4861578f8fc776b8cf0da295fad12f44925459a2 Author: Tom McKay <thomasmckay> Date: 2013-07-03 (Wed, 03 Jul 2013) Branch: refs/heads/master Home: https://github.com/Katello/katello-cli Commit: fb524b44149290adbf159b316a707c7e48383e63 https://github.com/Katello/katello-cli/commit/fb524b44149290adbf159b316a707c7e48383e63 Author: Tom McKay <thomasmckay> Date: 2013-07-03 (Wed, 03 Jul 2013)
SNAP0 contains these bug fixes. Moving to ON_QA.
VERIFIED : # rpm -qa | grep katello katello-selinux-1.4.4-2.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-certs-tools-1.4.2-2.el6sat.noarch katello-common-1.4.3-5.el6sam_splice.noarch katello-configure-1.4.4-2.el6sat.noarch katello-cli-common-1.4.3-4.el6sat.noarch katello-glue-elasticsearch-1.4.3-5.el6sam_splice.noarch katello-headpin-all-1.4.3-5.el6sam_splice.noarch katello-cli-1.4.3-4.el6sat.noarch katello-glue-candlepin-1.4.3-5.el6sam_splice.noarch signo-katello-0.0.10-2.el6sat.noarch katello-headpin-1.4.3-5.el6sam_splice.noarch # headpin --path /sam -u admin -p admin user info --username admin -------------------------------------------------------------------------------- User Information -------------------------------------------------------------------------------- ID : 1 Username : admin Email : root@localhost Disabled : False Default Organization : None Default Environment : None Default Locale : None # headpin --path /sam -u admin -p admin user update --default_organization "test" --username admin Successfully updated user [ admin ] # headpin --path /sam -u admin -p admin user info --username admin -------------------------------------------------------------------------------- User Information -------------------------------------------------------------------------------- ID : 1 Username : admin Email : root@localhost Disabled : False Default Organization : test Default Environment : Library Default Locale : None
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1390.html