Description of problem: hammer subscription upload timeouts Version-Release number of selected component (if applicable): Satellite 6.2.0-beta-snap2.1 How reproducible: Always Steps to Reproduce: hammer> content-view version promote --content-view='rhel7cv' --organization-id=1 --to-lifecycle-environment='QE' --asyncCould not promote the content view: Error: found more than one lifecycle_environment hammer> content-view version promote --content-view='rhel7cv' --organization-id=1 --to-lifecycle-environment-id=2 Could not promote the content view: Error: found more than one lifecycle_environment hammer> content-view version promote --content-view='rhel7cv' --organization-id=1 --to-lifecycle-environment='QE' --from-lifecycle-environment='Library' Could not promote the content view: Error: found more than one lifecycle_environment Actual results: Error as shown above Expected results: No error and successful promotion Additional info:
Also in the same box, hammer activation-key create failed: hammer> activation-key create --name=testak1 --organization-id=3 Could not create the activation key: Error: found more than one lifecycle_environment Note: please make sure to have multiple lifecycle environments
For Comment 2, I got the following error in hammer debug mode: [ERROR 2016-04-06 14:40:00 Exception] Error: found more than one lifecycle_environment Could not create the activation key: Error: found more than one lifecycle_environment [ERROR 2016-04-06 14:40:00 Exception] HammerCLIForeman::ResolverError (found more than one lifecycle_environment): /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/id_resolver.rb:209:in `pick_result' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/id_resolver.rb:168:in `find_resource' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.22.5/lib/hammer_cli_katello/id_resolver.rb:52:in `environment_id' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:153:in `get_resource_id' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:222:in `block in customized_options' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:219:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:219:in `customized_options' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:243:in `request_params' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/lib/hammer_cli/apipie/command.rb:43:in `send_request' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.3/lib/hammer_cli_foreman/commands.rb:189:in `send_request' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/lib/hammer_cli/apipie/command.rb:34:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/lib/hammer_cli/abstract.rb:22:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/lib/hammer_cli/abstract.rb:22:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/lib/hammer_cli/abstract.rb:22:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.4/bin/hammer:125:in `<top (required)>' /usr/bin/hammer:23:in `load' /usr/bin/hammer:23:in `<main>'
Created redmine issue http://projects.theforeman.org/issues/14538 from this bug
Upstream bug component is WebUI
I hit the same issue of multiple environments while attempting hammer repository list. #hammer repository list --organization-id 1 Error: found more than one lifecycle_environment
VERIFIED sat 6.2.0 snap 8.2 hammer> content-view version promote --content-view='rhel7cv' --organization-id=1 --to-lifecycle-environment='QE' --async Content view is being promoted with task 54f9fc4f-48d6-420c-968d-474fe8205bce hammer> repository list --organization-id 1 ---|-----------|--------|- -|----------------------------------------------- ID | NAME | PRODUCT | CONTENT TYPE | URL ---|-----------|--------|---|----------------------------------------------- 7 | Satellite 6 Tools | satellite-beta | yum | http://<hostname>/pulp/repos/Sat6-CI/QA/Tools_RH... 6 | Satellite 6 Capsule | satellite-beta | yum | http://<hostname>/pulp/repos/Sat6-CI/QA/Capsule
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. https://access.redhat.com/errata/RHBA-2016:1500