[Bug 1969939] Re: puppet 5 package incompatible with ruby 3 / ubuntu 22.04
Hi Lucas! Here's the output of puppet agent --test --verbose --debug, near the error messages. puppet agent does exit with 0 and otherwise does the run properly (my test was to delete one of the symlinks I have in my node specification and it is correctly recreated). I'll try to build a new container to test this further, as I only have the one Jammy container and it was already fully configured (FWIW, when I only hand- applied the fix for the symlink function -- Puppet::FileSystem::symlink IIRC -- it didn't throw these errors). Thanks for the follow-up! ** Attachment added: "puppet agent ---test --verbose --debug output" https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1969939/+attachment/5587463/+files/puppet-agent-test-verbose-debug.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1969939 Title: puppet 5 package incompatible with ruby 3 / ubuntu 22.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1969939/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1969939] Re: puppet 5 package incompatible with ruby 3 / ubuntu 22.04
Can confirm the package solves this issue. When running puppet agent --test I now have other error messages like this: Error: /File[/var/cache/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass Error: /File[/var/cache/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///pluginfacts (and same with some modules I'm using from puppet forge) but the agent finishes its run. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1969939 Title: puppet 5 package incompatible with ruby 3 / ubuntu 22.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1969939/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1968203] Re: Setting a symbolic link via puppet doesn't work on Ubuntu22
The problem is that puppet is not yet compatible with Ruby >= 3.0 (what Ubuntu 22.04 uses). I have the same problem, and this upstream patch fixes it: https://github.com/puppetlabs/puppet/commit/6af09225b3b962547a2564a9d34ccd6832e60558?diff=unified (The patch touches multiple files, but the file in question for this problem is lib/puppet/file_system/file_impl.rb). That said, it might probably be a good idea to apply the entire pull request (https://github.com/puppetlabs/puppet/pull/8179), not just this patch. Note this discussion in Debian, where they will wait for a Ruby 3.x compatible version for Bookworm: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=1009643 (and which got me on the right track, although the solution is wrong). PD: I've isolated the patch for the symlink issue and attatched it to this message PPD: Full upstream patch as a unified diff: https://github.com/puppetlabs/puppet/commit/6af09225b3b962547a2564a9d34ccd6832e60558.patch PPPD: Any resolution for jammy should also be backported to focal, as the lack of this/these patches generate a prodigious amount of ruby warnings when running puppet agent --test ... ** Bug watch added: Debian Bug tracker #1009643 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009643 ** Patch added: "Cropped version of upstream commit 6af09225b3b962547a2564a9d34ccd6832e60558 to fix symlink creation" https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1968203/+attachment/5583141/+files/fix-symlink-creation-with-ruby3.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968203 Title: Setting a symbolic link via puppet doesn't work on Ubuntu22 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1968203/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs