puppet broken after upgrade to ruby 2.7

Problems with packages? Post here, using [tags] of the package name.

puppet broken after upgrade to ruby 2.7

Postby que » Wed Jan 08, 2020 2:07 pm

I have two raspberry pi's running archlinux arm. One uses puppet5, the other puppet (v6).

Following this morning's update puppet is not working on either system.

**** system #1 ****
$this->bbcode_second_pass_code('', '
[me@pi1 ~]
$ sudo /usr/bin/puppet agent --detailed-exitcodes --test
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/indirector.rb:49: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/indirector/indirection.rb:95: warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/util.rb:463: warning: URI.escape is obsolete
cannot load such file -- sync

[me@pi1 ~]
$ sudo tail -30 /var/log/pacman.log | grep upgraded
[2020-01-08T05:26:30-0500] [ALPM] upgraded dhcpcd (8.1.4-1 -> 8.1.5-1)
[2020-01-08T05:26:30-0500] [ALPM] upgraded rubygems (3.1.2-1 -> 3.1.2-4)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby (2.6.5-1 -> 2.7.0-1)
[2020-01-08T05:26:31-0500] [ALPM] upgraded hiera (3.6.0-1 -> 3.6.0-1.1)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-semantic_puppet (1.0.2-2 -> 1.0.2-3)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-augeas (0.5.0-3 -> 0.5.0-4)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-shadow (2.5.0-4 -> 2.5.0-5)
[2020-01-08T05:26:32-0500] [ALPM] upgraded ruby-concurrent (1.1.5-1 -> 1.1.5-2)
[2020-01-08T05:26:32-0500] [ALPM] upgraded ruby-multi_json (1.14.1-1 -> 1.14.1-2)
[2020-01-08T05:26:33-0500] [ALPM] upgraded puppet (6.10.1-1 -> 6.10.1-2)
[2020-01-08T05:26:35-0500] [ALPM] upgraded vim-runtime (8.2.0033-1 -> 8.2.0100-1)
[2020-01-08T05:26:35-0500] [ALPM] upgraded vim (8.2.0033-1 -> 8.2.0100-1)
')

**** system #2 ****
$this->bbcode_second_pass_code('', '[me@pi2 ~]
$ sudo /usr/bin/puppet agent --detailed-exitcodes --test
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/indirector.rb:49: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/indirector/indirection.rb:95: warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/2.7.0/puppet/util.rb:463: warning: URI.escape is obsolete
cannot load such file -- sync

[me@pi2 ~]
$ sudo tail -30 /var/log/pacman.log | grep upgraded
[2020-01-08T05:26:30-0500] [ALPM] upgraded dhcpcd (8.1.4-1 -> 8.1.5-1)
[2020-01-08T05:26:30-0500] [ALPM] upgraded rubygems (3.1.2-1 -> 3.1.2-4)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby (2.6.5-1 -> 2.7.0-1)
[2020-01-08T05:26:31-0500] [ALPM] upgraded hiera (3.6.0-1 -> 3.6.0-1.1)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-semantic_puppet (1.0.2-2 -> 1.0.2-3)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-augeas (0.5.0-3 -> 0.5.0-4)
[2020-01-08T05:26:31-0500] [ALPM] upgraded ruby-shadow (2.5.0-4 -> 2.5.0-5)
[2020-01-08T05:26:32-0500] [ALPM] upgraded ruby-concurrent (1.1.5-1 -> 1.1.5-2)
[2020-01-08T05:26:32-0500] [ALPM] upgraded ruby-multi_json (1.14.1-1 -> 1.14.1-2)
[2020-01-08T05:26:33-0500] [ALPM] upgraded puppet (6.10.1-1 -> 6.10.1-2)
[2020-01-08T05:26:35-0500] [ALPM] upgraded vim-runtime (8.2.0033-1 -> 8.2.0100-1)
[2020-01-08T05:26:35-0500] [ALPM] upgraded vim (8.2.0033-1 -> 8.2.0100-1)')
que
 
Posts: 3
Joined: Thu Oct 10, 2019 3:44 pm

Re: puppet broken after upgrade to ruby 2.7

Postby que » Thu Jan 09, 2020 3:21 pm

from the ruby 2.7 release notes:

The following libraries are no longer bundled gems. Install corresponding gems to use these features.
CMath (cmath gem)
Scanf (scanf gem)
Shell (shell gem)
Synchronizer (sync gem)
ThreadsWait (thwait gem)
E2MM (e2mmap gem)

Since the puppet package requires the sync gem, I think there should be sync gem package created ( I couldn't find one ) and that package should be added to the puppet packages, as a dependency.

If this is not the correct place to report this issue, please point me in the correct direction.
que
 
Posts: 3
Joined: Thu Oct 10, 2019 3:44 pm

Re: puppet broken after upgrade to ruby 2.7

Postby moonman » Fri Jan 10, 2020 1:04 am

This is not ARM specific. You should report this to upstream ArchLinux. Changes will propagate to us automatically
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 20 guests