Project

General

Profile

Actions

Bug #4696

closed

hammer CLI with latest nightly build does not show katello related commands

Added by Mike McCune almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Hammer
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

updated to the latest nightly build of rubygem-hammer_cli_katello-0.0.3-1.201403182248git62f913f.git.0.087e5ab.el6.noarch

updated the cli_config.yaml:

/etc/foreman/cli_config.yml
:modules:
- hammer_cli_foreman
- hammer_cli_katello

running hammer only shows Foreman commands:

  1. hammer
    Warning: An error occured while loading module hammer_cli_katello
    Usage:
    hammer [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments

Subcommands:
shell Interactive shell
global_parameter Manipulate global parameters.
architecture Manipulate architectures.
compute_resource Manipulate compute resources.
domain Manipulate domains.
sc_param Manipulate smart class parameters.
environment Manipulate environments.
fact Search facts.
report Browse and read reports.
puppet_class Search puppet modules.
host Manipulate hosts.
hostgroup Manipulate hostgroups.
location Manipulate locations.
medium Manipulate installation media.
model Manipulate hardware models.
os Manipulate operating system.
organization Manipulate organizations.
partition_table Manipulate partition tables.
proxy Manipulate smart proxies.
subnet Manipulate subnets.
template Manipulate config templates.
user Manipulate users.

Actions #1

Updated by Mike McCune over 10 years ago

more verbose error:

  1. hammer -v
    [ERROR 2014-03-19 06:53:54 Modules] Error while loading module hammer_cli_katello
    [ERROR 2014-03-19 06:53:54 Modules] <NameError> uninitialized constant HammerCLIForeman::ReadCommand
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman_tasks-0.0.1/lib/hammer_cli_foreman_tasks/task.rb:3
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman_tasks-0.0.1/lib/hammer_cli_foreman_tasks.rb:5
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.3/lib/hammer_cli_katello.rb:6
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:47:in `require_module'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:24:in `load!'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:41:in `load'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:52:in `load_all'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:51:in `each'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/modules.rb:51:in `load_all'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/bin/hammer:54
    /usr/bin/hammer:19:in `load'
    /usr/bin/hammer:19
    Warning: An error occured while loading module hammer_cli_katello
    Usage:
Actions #2

Updated by Og Maciel over 10 years ago

A package that seems to have regressed (as in its versions are now older than what it should be):

  • rubygem-hammer_cli-0.0.18-1.el6.noarch should be at least rubygem-hammer_cli-0.0.18-6.el6sat.noarch or better
Actions #3

Updated by Garik Khachikyan over 10 years ago

cc-ed

Actions #4

Updated by Anonymous over 10 years ago

This is probably due to the new dependencies that we could not get added to the rpm spec in the foreman-packaging repo. We need somewhere to pull an updated rpm spec file from with the new dependencies or it will remain broken.

In the short term you should be able to yum install rubygem-locale from epel, get fast_gettext here (if not just a yum install from the foreman repo): http://koji.katello.org/koji/buildinfo?buildID=8697, apipie-bindings here: http://koji.katello.org/koji/buildinfo?buildID=8718, and i18n for apipie-bindings here: http://koji.katello.org/koji/buildinfo?buildID=8716

After those 4 are installed you may also have to do 'foreman-rake apipie:cache' before it will actually work.

I did a PR to get fast_gettext added to the comps file for foreman earlier this week. I'll take care of apipie-bindings now, but mbacovsk was just saying the i18n dep for apipie-bindings should go away very soon so I'm not sure it's worth adding it at all.

Actions #5

Updated by Mike McCune over 10 years ago

  • Triaged set to Yes
Actions #6

Updated by Adam Price over 10 years ago

  • Status changed from New to Ready For Testing
Actions #7

Updated by Mike McCune over 10 years ago

  • Status changed from Ready For Testing to Closed

works perfectly now

Actions #8

Updated by Eric Helms over 10 years ago

  • Translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF