Hide Forgot
Description of problem: Recent Katello policy needs to have an org prepared when there is going to be created new org. But seems that the default "ACME_Corporation" is exception - it does not come with default env. there. Please adjust this. (one might need to have configured the name of default env for the default org as well) This issue brings the CLI `repo create` command to get failed with exception: --- *** ERROR: Organization ACME_Corporation has 'Locker' environment only. Please create an environment for system registration. (400) *** REQUEST URL: /katello/api/consumers?owner=ACME_Corporation HttpErrors::BadRequest: Organization ACME_Corporation has 'Locker' environment only. Please create an environment for system registration. /usr/share/katello/app/controllers/api/systems_controller.rb:182:in `find_only_environment' --- Version-Release number of selected component (if applicable): katello-0.1.116-1.el6.x86_64 How reproducible: always. Steps to Reproduce: 1. Using CLI create repo on default org (which still have no env. there). 2. 3. Actual results: error: "Name or service not known", more details in: /var/log/katello/production.log (see above) Expected results: no error, default env should get prepared in the DB init stage during installation. Additional info:
# COMMENT Please disregard the log part - it was from another operation. But we need to have default environment created anyway. BTW: repo creation without having an env to the org - works!
You are not allowed to register systems in the Locker. Katello comes without any environment. The first step is to create an environment. This is documented.
ok, just posting a note: in UI each org creation have a *must" to prepare an environment. I was just thinking not to bring ACME_Corporation be *special*