Project

General

Profile

Actions

Bug #10154

closed

hammer does not work on fresh 2.2: taglist.rb:94:in `to_simple': undefined method `to_simple' for nil:NilClass (NoMethodError)

Added by J C over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
Hammer core
Target version:
Difficulty:
medium
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

$ hammer 
/usr/lib/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/taglist.rb:94:in `to_simple': undefined method `to_simple' for nil:NilClass (NoMethodError)
        from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/i18n.rb:119:in `locale'
        from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/i18n.rb:151
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/bin/hammer:9
        from /usr/bin/hammer:19:in `load'
        from /usr/bin/hammer:19

Installed Packages (from UI):

candlepin-0.9.45-1.el6.noarch
candlepin-common-1.0.22-1.el6.noarch
candlepin-selinux-0.9.45-1.el6.noarch
candlepin-tomcat6-0.9.45-1.el6.noarch
elasticsearch-0.90.10-7.el6.noarch
katello-2.2.0-3.el6.noarch
katello-certs-tools-2.0.1-1.el6.noarch
katello-common-2.2.0-3.el6.noarch
katello-debug-2.2.0-3.el6.noarch
katello-default-ca-1.0-1.noarch
katello-installer-2.2.0-3.el6.noarch
katello-installer-base-2.2.0-3.el6.noarch
katello-repos-2.2.0-3.el6.noarch
katello-selinux-2.2.1-1.el6.noarch
katello-server-ca-1.0-1.noarch
kmaster.lan-qpid-broker-1.0-1.noarch
kmaster.lan-qpid-client-cert-1.0-1.noarch
kmaster.lan-qpid-router-client-1.0-1.noarch
kmaster.lan-qpid-router-server-1.0-1.noarch
libqpid-dispatch-0.4-2.20150402.el6.x86_64
m2crypto-0.21.1.pulp-8.el6.x86_64
mod_wsgi-3.4-2.pulp.el6.x86_64
pulp-docker-plugins-0.2.2-1.el6.noarch
pulp-katello-0.4-1.el6.noarch
pulp-nodes-common-2.6.0-1.el6.noarch
pulp-nodes-parent-2.6.0-1.el6.noarch
pulp-puppet-plugins-2.6.0-1.el6.noarch
pulp-puppet-tools-2.6.0-1.el6.noarch
pulp-rpm-plugins-2.6.0-1.el6.noarch
pulp-selinux-2.6.0-1.el6.noarch
pulp-server-2.6.0-1.el6.noarch
python-gofer-qpid-2.5.3-1.el6.noarch
python-isodate-0.5.0-4.pulp.el6.noarch
python-kombu-3.0.24-5.pulp.el6.noarch
python-pulp-bindings-2.6.0-1.el6.noarch
python-pulp-common-2.6.0-1.el6.noarch
python-pulp-docker-common-0.2.2-1.el6.noarch
python-pulp-puppet-common-2.6.0-1.el6.noarch
python-pulp-rpm-common-2.6.0-1.el6.noarch
python-qpid-0.30-7.el6.noarch
python-qpid-qmf-0.30-5.el6.x86_64
python-rhsm-1.8.0-2.pulp.el6.x86_64
qpid-cpp-client-0.30-7.proton.0.9.el6.x86_64
qpid-cpp-client-devel-0.30-7.proton.0.9.el6.x86_64
qpid-cpp-server-0.30-7.proton.0.9.el6.x86_64
qpid-cpp-server-linearstore-0.30-7.proton.0.9.el6.x86_64
qpid-dispatch-router-0.4-2.20150402.el6.x86_64
qpid-proton-c-0.9-1.20150219.el6.x86_64
qpid-qmf-0.30-5.el6.x86_64
qpid-tools-0.30-4.el6.noarch
ruby193-rubygem-katello-2.2.0-7.el6.noarch
ruby193-rubygem-qpid_messaging-0.30.0-1.el6.x86_64
rubygem-hammer_cli_katello-0.0.11-1.el6.noarch
rubygem-smart_proxy_pulp-1.0.1-1.el6.noarch

$ rpm -qa | grep hammer
rubygem-hammer_cli_foreman_docker-0.0.3-2.el6.noarch
rubygem-hammer_cli_gutterball-1.0.0-1.el6.noarch
rubygem-hammer_cli-0.1.4-1.el6.noarch
rubygem-hammer_cli_foreman_tasks-0.0.5-1.el6.noarch
rubygem-hammer_cli_import-0.10.10-1.el6.noarch
rubygem-hammer_cli_katello-0.0.11-1.el6.noarch
rubygem-hammer_cli_foreman-0.1.4-2.el6.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2-1.el6.noarch
Actions #1

Updated by Justin Sherrill over 9 years ago

  • Priority changed from Normal to Urgent
  • Difficulty set to medium
  • Triaged changed from No to Yes
Actions #2

Updated by Eric Helms over 9 years ago

  • Status changed from New to Need more information

This appears to be an issue with attempting to determine the language on the system. Hammer is using the locale library to determine the current locale of the machine that hammer is being run on. Can you check the values of:

$LANGUAGE
$LANG
$LC_ALL
$LC_CTYPE

Actions #3

Updated by J C over 9 years ago

Got you. Here you go:

# locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8" 
LC_NUMERIC="en_GB.UTF-8" 
LC_TIME="en_GB.UTF-8" 
LC_COLLATE="en_GB.UTF-8" 
LC_MONETARY="en_GB.UTF-8" 
LC_MESSAGES="en_GB.UTF-8" 
LC_PAPER="en_GB.UTF-8" 
LC_NAME="en_GB.UTF-8" 
LC_ADDRESS="en_GB.UTF-8" 
LC_TELEPHONE="en_GB.UTF-8" 
LC_MEASUREMENT="en_GB.UTF-8" 
LC_IDENTIFICATION="en_GB.UTF-8" 
LC_ALL=
Actions #4

Updated by Justin Sherrill over 9 years ago

you might try upgrading the version of rubygem-locale that is installed.

You have 2.0.5 installed it appears, yet katello 2.2 and foreman 1.8 come with 2.0.9.

Actions #5

Updated by Martin Bacovsky over 9 years ago

I reproduced the error with locale = 2.0.5, rubygem locale >= 2.0.6 works fine.

Actions #6

Updated by Martin Bacovsky over 9 years ago

  • Project changed from Katello to Hammer CLI
  • Category changed from Hammer to Hammer core
  • Status changed from Need more information to Assigned
  • Assignee set to Martin Bacovsky
Actions #7

Updated by The Foreman Bot over 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/168 added
  • Pull request deleted ()
Actions #8

Updated by J C over 9 years ago

Great. Should I update one of my repo baseurl entries to 'nightly' to test?

Actions #9

Updated by Anonymous over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #10

Updated by Dominic Cleal over 9 years ago

  • Translation missing: en.field_release changed from 23 to 28

J C wrote:

Great. Should I update one of my repo baseurl entries to 'nightly' to test?

Yeah, you can point to the nightly repo and update later today (around 2pm UTC) to get the fixes, or download the new rubygem-locale straight from the nightly repo (http://yum.theforeman.org/nightly/el6/x86_64/) and install it. It'll be in the final 1.8.0 push too.

Actions

Also available in: Atom PDF