[Bug 1969939] Re: puppet 5 package incompatible with ruby 3 / ubuntu 22.04
Thanks Lucas. LGTM. We tried the PPA. No errors during puppet apply. File resources, both symlinks and regular files, are being created as expected. Our full 5kloc puppet manifest applied without any puppet errors, and we haven't noticed any other regressions. If you have any specific functionality you like us to double check, please let me know. -- 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
My test is also unnecessarily complex -- there's no needs for the class + include: file { '/tmp/issue': ensure => file, source => '/etc/issue', } -- 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
Hi Lucas, the new to_sym error seems to be related to use of the File resource with `ensure => file` instead of link. Unless there's another change introduced in 5.5.22-4ubuntu0.1, it seems like it has to be caused by your patch. Here's my test scenario that you should be able to use to reproduce: issue.pp: ``` class issue { file { '/tmp/issue': ensure => file, source => '/etc/issue', } } include issue ``` # Using puppet (5.5.22-4): % puppet apply issue.pp Notice: Compiled catalog for dev-vagrant22 in environment production in 0.01 seconds Notice: /Stage[main]/Issue/File[/tmp/issue]/ensure: defined content as '{md5}d5faf84af6529c6e6a364f164e953ff6' Notice: Applied catalog in 0.01 seconds # Using puppet (5.5.22-4ubuntu0.1): % puppet apply issue.pp Notice: Compiled catalog for dev-vagrant22 in environment production in 0.01 seconds Error: /Stage[main]/Issue/File[/tmp/issue]: Could not evaluate: Could not retrieve file metadata for file:///etc/issue: undefined method `to_sym' for nil:NilClass Notice: Applied catalog in 0.01 seconds Thanks for your help fixing this, Lucas! -- 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