Project

General

Profile

Bug #7429

hammer lifecycle-environment info --name Library --organization-id x fails to find environment

Added by dustin tsang almost 5 years ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

hammer lifecycle-environment info --name Library --organization-id x fails to find environment

History

#1 Updated by dustin tsang almost 5 years ago

hammer -vd lifecycle-environment info --organization-id 3 --name Library
[ INFO 2014-09-12 15:48:41 Init] Initialization of Hammer CLI (0.1.3) has started...
[DEBUG 2014-09-12 15:48:41 Init] Running at ruby 1.9.3-p448
[ INFO 2014-09-12 15:48:41 Init] Configuration from the file /home/dustin/.hammer/cli_config.yml has been loaded
[ INFO 2014-09-12 15:48:41 Init] Configuration from the file /home/dustin/.hammer/cli.modules.d/foreman.yml has been
loaded
[DEBUG 2014-09-12 15:48:41 Connection] Registered: foreman
[DEBUG 2014-09-12 15:48:41 API] Global headers: {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en"
}
[ INFO 2014-09-12 15:48:41 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[ INFO 2014-09-12 15:48:42 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was remov
ed.
[ INFO 2014-09-12 15:48:42 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was creat
ed.
[ INFO 2014-09-12 15:48:42 Modules] Extension module hammer_cli_katello (0.0.6) loaded
[DEBUG 2014-09-12 15:48:42 Init] Using locale 'en'
[DEBUG 2014-09-12 15:48:42 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/home/dustin/hammer/hammer-cl
i/locale'
[DEBUG 2014-09-12 15:48:42 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
[DEBUG 2014-09-12 15:48:42 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/home/dustin/hammer/h
ammer-cli-foreman/locale'
[DEBUG 2014-09-12 15:48:42 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/loc
ale'
[DEBUG 2014-09-12 15:48:42 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/home/dustin/hammer/h
ammer-cli-katello/locale'
[ INFO 2014-09-12 15:48:42 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true
}
[ INFO 2014-09-12 15:48:42 HammerCLIKatello::LifecycleEnvironmentCommand] Called with options: {}
[ INFO 2014-09-12 15:48:42 HammerCLIKatello::LifecycleEnvironmentCommand::InfoCommand] Called with options: {"option_
name"=>"Library", "option_organization_id"=>"3"}
[ INFO 2014-09-12 15:48:42 API] GET /katello/api/organizations/3/environments
[DEBUG 2014-09-12 15:48:42 API] Params: {
"name" => "Library"
}
[DEBUG 2014-09-12 15:48:42 API] Headers: {
:params => {
"name" => "Library"
}
}
[DEBUG 2014-09-12 15:48:42 API] Response {
"total" => 0,
"subtotal" => 0,
"page" => 1,
"per_page" => 20,
"search" => nil,
"sort" => {
"by" => nil,
"order" => nil
},
"results" => []
}
[ERROR 2014-09-12 15:48:42 Exception] Error: lifecycle_environment not found
Error: lifecycle_environment not found
[ERROR 2014-09-12 15:48:42 Exception]

HammerCLIForeman::ResolverError (lifecycle_environment not found):
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:140:in `pick_result'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:136:in `find_resource'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:114:in `get_id'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:108:in `block (2 levels) in define_i
d_finders'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:143:in `get_resource_id'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:132:in `get_identifier'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:180:in `customized_options'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:185:in `request_params'
/home/dustin/hammer/hammer-cli/lib/hammer_cli/apipie/command.rb:42:in `send_request'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:164:in `send_request'
/home/dustin/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:306:in `send_request'
/home/dustin/hammer/hammer-cli/lib/hammer_cli/apipie/command.rb:33:in `execute'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/dustin/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/dustin/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/dustin/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
/home/dustin/hammer/hammer-cli/bin/hammer:106:in `<top (required)>'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/bin/hammer:23:in `load'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/bin/hammer:23:in `<main>'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/bin/ruby_executable_hooks:15:in `eval'
/home/dustin/.rvm/gems/ruby-1.9.3-p448@hammer/bin/ruby_executable_hooks:15:in `<main>'

#2 Updated by Eric Helms almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 14
  • Difficulty set to easy
  • Triaged changed from No to Yes

#3 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 14 to 23

#4 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 23 to 31

#5 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) deleted (31)

#6 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 86

#7 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 114

Also available in: Atom PDF