Project

General

Profile

Actions

Bug #22696

closed

Content view incremental update fails when --packages option used

Added by Greg Koch about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When using hammer content-view version incremental-update, if the --packages options is used hammer fails with error message:

An error occurred incrementally updating the content view:
Error: Could not find package, please set one of options --packages, --package-ids.

Debug output:
12:04 $ hammer -vd content-view version incremental-update --content-view-version-id 10605 --packages <PACKAGENAME> --lifecycle-environment-ids 1,2,3,4,5
[ INFO 2018-02-26T12:05:40 Init] Initialization of Hammer CLI (0.11.0) has started...
[DEBUG 2018-02-26T12:05:40 Init] Running at ruby 2.3.3-p222
[ INFO 2018-02-26T12:05:40 Init] Configuration from the file /.hammer/cli_config.yml has been loaded
[ WARN 2018-02-26T12:05:40 Modules] Legacy configuration of modules detected. Check section about configuration in user manual
[ INFO 2018-02-26T12:05:40 SSLoptions] Matching CA cert was found in local CA store ~/.hammer/certs/<HOSTNAME>_443.pem
[DEBUG 2018-02-26T12:05:40 SSLoptions] SSL options: {
:verify_ssl => true,
:ssl_ca_file => "
/.hammer/certs/<HOSTNAME>_443.pem"
}
[DEBUG 2018-02-26T12:05:40 API] Global headers: {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en"
}
[DEBUG 2018-02-26T12:05:40 API] Follow redirects: never
[DEBUG 2018-02-26T12:05:40 Connection] Registered: foreman
[ INFO 2018-02-26T12:05:40 Modules] Extension module hammer_cli_foreman (0.11.0) loaded
[ INFO 2018-02-26T12:05:40 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
[ INFO 2018-02-26T12:05:41 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2018-02-26T12:05:41 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2018-02-26T12:05:41 Modules] Extension module hammer_cli_katello (0.11.3) loaded
[DEBUG 2018-02-26T12:05:41 Init] Using locale 'en'
[DEBUG 2018-02-26T12:05:41 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/locale'
[DEBUG 2018-02-26T12:05:41 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/Library/Ruby/Gems/2.3.0/gems/hammer_cli_foreman-0.11.0/locale'
[DEBUG 2018-02-26T12:05:41 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/Library/Ruby/Gems/2.3.0/gems/hammer_cli_foreman_docker-0.0.4/locale'
[DEBUG 2018-02-26T12:05:41 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/Library/Ruby/Gems/2.3.0/gems/hammer_cli_katello-0.11.3/locale'
[ INFO 2018-02-26T12:05:41 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true}
[ INFO 2018-02-26T12:05:41 HammerCLIKatello::ContentView] Called with options: {}
[ INFO 2018-02-26T12:05:41 HammerCLIKatello::ContentViewVersion] Called with options: {}
[ INFO 2018-02-26T12:05:41 HammerCLIKatello::ContentViewVersion::IncrementalUpdate] Called with options: {"option_lifecycle_environment_ids"=>["1", "2", "3", "4", "5"], "option_content_view_version_id"=>10605, "option_package_names"=>["<PACKAGENAME>"]}
[ INFO 2018-02-26T12:05:41 HammerCLIKatello::ContentViewVersion::IncrementalUpdate] Error occured while searching for packages
[DEBUG 2018-02-26T12:05:41 Exception] Using exception handler HammerCLIKatello::ExceptionHandler#handle_general_exception
[ERROR 2018-02-26T12:05:41 Exception] Error: Could not find package, please set one of options --packages, --package-ids.
An error occurred incrementally updating the content view:
Error: Could not find package, please set one of options --packages, --package-ids.
[ERROR 2018-02-26T12:05:41 Exception]

HammerCLIForeman::MissingSearchOptions (Could not find package, please set one of options --packages, --package-ids.):
/Library/Ruby/Gems/2.3.0/gems/hammer_cli_foreman-0.11.0/lib/hammer_cli_foreman/commands.rb:179:in `rescue in send_request'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli_foreman-0.11.0/lib/hammer_cli_foreman/commands.rb:166:in `send_request'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli_foreman_tasks-0.0.12/lib/hammer_cli_foreman_tasks/async_command.rb:14:in `execute'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/lib/hammer_cli/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/lib/hammer_cli/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/lib/hammer_cli/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/lib/hammer_cli/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.3.0/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
/Library/Ruby/Gems/2.3.0/gems/hammer_cli-0.11.0/bin/hammer:147:in `<top (required)>'
/usr/local/bin/hammer:22:in `load'
/usr/local/bin/hammer:22:in `<main>'


Related issues 1 (1 open0 closed)

Related to Katello - Refactor #26027: hammer_cli_katello resolvers interfere with foreman onces on katello-extended resourcesNewChristine FouantActions
Actions

Also available in: Atom PDF