[Pkg-puppet-devel] Bug#918779: r10k: uninitialized constant Cri::Error

Bart-Jan Vrielink bartjan at vrielink.net
Wed Jan 9 09:44:49 GMT 2019


Package: r10k
Version: 2.6.3-1
Severity: important

Dear Maintainer,

When running r10k I get the following error today;
Traceback (most recent call last):
        11: from /usr/bin/r10k:3:in `<main>'
        10: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         9: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         8: from /usr/lib/ruby/vendor_ruby/r10k/cli.rb:3:in `<top (required)>'
         7: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         6: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         5: from /usr/lib/ruby/vendor_ruby/r10k/cli/ext/logging.rb:1:in `<top (required)>'
         4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         3: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         2: from /usr/lib/ruby/vendor_ruby/cri/command_dsl.rb:3:in `<top (required)>'
         1: from /usr/lib/ruby/vendor_ruby/cri/command_dsl.rb:6:in `<module:Cri>'
/usr/lib/ruby/vendor_ruby/cri/command_dsl.rb:9:in `<class:CommandDSL>': uninitialized constant Cri::Error (NameError)
Did you mean?  IOError
               Errno

This is because the package ruby-cri was upgraded on this system today (from 2.10.1-1 to 2.15.2-1).

Upstream this error/behavior is already reported (https://github.com/puppetlabs/r10k/issues/853) and fixed (https://github.com/puppetlabs/r10k/pull/854).
Please upgrade the r10k package to a newer version with this fix included, or
change the require in lib/r10k/cli/ext/logging.rb to require 'cri' (as
described in https://github.com/puppetlabs/r10k/issues/853#issuecomment-424608028)

I've tested changing the require to 'cri' myself, and this works.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: default

Versions of packages r10k depends on:
ii  ruby                1:2.5.1
ii  ruby-colored        1.2-2
ii  ruby-cri            2.15.2-1
ii  ruby-gettext-setup  0.30-2
ii  ruby-log4r          1.1.10-4
ii  ruby-minitar        0.6.1-1
ii  ruby-multi-json     1.12.1-1
ii  ruby-puppet-forge   2.2.9-2
ii  ruby-rugged         0.27.4+ds-1

Versions of packages r10k recommends:
ii  git  1:2.20.1-1

r10k suggests no packages.

-- no debconf information


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-puppet-devel/attachments/20190109/2b0daaac/attachment.html>


More information about the Pkg-puppet-devel mailing list