Project

General

Profile

Actions

Bug #7429

closed

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

Added by dustin tsang over 9 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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

Actions #1

Updated by dustin tsang over 9 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>'

Actions #2

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 14
  • Difficulty set to easy
  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release changed from 14 to 23
Actions #4

Updated by Eric Helms about 9 years ago

  • translation missing: en.field_release changed from 23 to 31
Actions #5

Updated by Eric Helms about 9 years ago

  • translation missing: en.field_release deleted (31)
Actions #6

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 86
Actions #7

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release changed from 86 to 114
Actions #8

Updated by James Jeffers over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to James Jeffers
  • Triaged set to No

Testing with hammer-cli-katello 0.20.pre-master and katello 3.13:

hammer-cli-katello]$ bundle exec hammer lifecycle-environment info --organization-id 1 --name Library
ID:                          1
Name:                        Library
Label:                       Library
Description:                 
Organization:                Default Organization
Library:                     true
Prior Lifecycle Environment: 
Unauthenticated Pull:        false
Registry Name Pattern:

Actions #9

Updated by Ian Ballou over 4 years ago

  • Target version deleted (Katello Backlog)
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF