Re: [Bug 1969939] Re: puppet 5 package incompatible with ruby 3 / ubuntu 22.04

2022-05-25 Thread Serge Olkhovik
Chris, I think the main functionality works OK (i.e. it creates a link),
but I'm confused what are those errors and what do they mean?
Also I'm going to continue with more configuration and see if we get any
more errors or all this is fine.

ср, 25 трав. 2022 р. о 06:16 Chris Halse Rogers <1969...@bugs.launchpad.net>
пише:

> As an SRU team member, it's unclear to me whether the errors reported in
> this verification are introduced by this update or are merely existing
> problems that the code now hits because it's getting further.
>
> It's also not clear to me what the effect of these errors is - if these
> are just harmless warnings printed, that's ok, but if they are exposing
> real problems that's an issue. Even more if they're exposing problems
> that might hit users that are not already broken by this bug.
>
> Can we please get an analysis of what - if anything - is broken here?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1969939
>
> Title:
>   puppet 5 package incompatible with ruby 3 / ubuntu 22.04
>
> Status in puppet package in Ubuntu:
>   Fix Released
> Status in puppet source package in Jammy:
>   Fix Committed
> Status in puppet source package in Kinetic:
>   Fix Released
> Status in puppet package in Debian:
>   New
>
> Bug description:
>   [Impact]
>
>   puppet crashes if one tries to create/ensure symlinks via a puppet
>   manifest. I believe this is an feature broadly used by our users.
>
>   [Test Plan]
>
>   $ lxc launch ubuntu-daily:jammy puppet-test
>   $ lxc shell puppet-test
>   # apt update && apt install -y puppet
>   # cat < hellopuppet.pp
>   file { '/tmp/link-to-motd':
>  ensure => 'link',
>  target => '/etc/motd',
>   }
>   EOF
>   # puppet apply hellopuppet.pp
>   Notice: Compiled catalog for k1.lxd in environment production in 0.01
> seconds
>   Error: Could not set 'link' on ensure: wrong number of arguments (given
> 3, expected 2) (file: /home/ubuntu/hellopuppet.pp, line: 1)
>   Error: Could not set 'link' on ensure: wrong number of arguments (given
> 3, expected 2) (file: /home/ubuntu/hellopuppet.pp, line: 1)
>   Wrapped exception:
>   wrong number of arguments (given 3, expected 2)
>   Error: /Stage[main]/Main/File[/tmp/link-to-motd]/ensure: change from
> 'absent' to 'link' failed: Could not set 'link' on ensure: wrong number of
> arguments (given 3, expected 2) (file: /home/ubuntu/hellopuppet.pp, line: 1)
>   Notice: Applied catalog in 0.02 seconds
>
>   With the proposed fix the crash should not happen and the link
>   created.
>
>   [Where problems could occur]
>
>   The risk of the patch introduce a bug is quite low, what might happen
>   is some more occurrences of this issue throughout the codebase. I went
>   through upstream git repo and issue tracker and I think this is
>   enough.
>
>   [Original description]
>
>   Hi,
>
>   the puppet package that comes with ubuntu 22.04 is not completely
>   working under ubuntu 22.04, since it is (outdated) puppet 5 which is
>   not compatible with ruby versions above ruby 2.7, where ubuntu 22.04
>   comes with ruby 3.
>
>   The problem seems to be just a minor problem, it can't set logical
>   links :
>
>  Could not set 'link' on ensure: wrong number of arguments (given 3,
>   expected 2)
>
>   The bug is known and discussed in upstream debian under
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009643
>
>   but they do believe that it is not worth wasting time to fix that old
>   version and rather update to puppet 7.
>
>   From what they tell, it takes at least puppet 7.8 to run under ruby 3.
>
>   So as a workaround, one could use the regular puppet gem (which is not
>   a server anymore, just the client since 6) on the client side
>   (currently 7.16.0) and use the docker image from
>
>   https://hub.docker.com/r/puppet/puppetserver
>
>   on the server side. Maybe worth considering to turn this into a snap.
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 22.04
>   Package: puppet 5.5.22-4 [modified: usr/bin/puppet]
>   ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
>   Uname: Linux 5.15.0-25-generic x86_64
>   ApportVersion: 2.20.11-0ubuntu82
>   Architecture: amd64
>   CasperMD5CheckResult: unknown
>   CurrentDesktop: LXQt
>   Date: Fri Apr 22 15:52:08 2022
>   InstallationDate: Installed on 2022-04-02 (19 days ago)
>   InstallationMedia: Lubuntu 22.04 LTS "Jammy Jellyfish" - Beta amd64
> (20220329.1)
>   PackageArchitecture: all
>   SourcePackage: puppet
>   UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1969939/+subscriptions
>
>

-- 
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 1969939] Re: puppet 5 package incompatible with ruby 3 / ubuntu 22.04

2022-05-18 Thread Serge Olkhovik
Hi! I did several tests and looks like the symlink problem is resolved.
However still see those error messages listed above.

-- 
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

2022-05-09 Thread Serge Olkhovik
and this one:
Error: /Stage[main]/Linux::Common/File[/etc/apt/apt.conf.d]: Failed to generate 
additional resources using 'eval_generate': undefined method `to_sym' for 
nil:NilClass

-- 
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

2022-05-09 Thread Serge Olkhovik
Hi! Just created a test VM with 22.04 (updated to latest), and I have
such code:

file { '/etc/localtime':
ensure => 'link',
target => $osfamily ? {
'Debian' => 
'/usr/share/zoneinfo/posix/America/Los_Angeles',
default  => '/usr/share/zoneinfo/America/Los_Angeles',
},


and initially I had this and only this error:

Error: wrong number of arguments (given 3, expected 2)
Error: /Stage[main]/Linux::Vm/File[/etc/localtime]/target: change from 
'/usr/share/zoneinfo/Etc/UTC' to 
'/usr/share/zoneinfo/posix/America/Los_Angeles' failed: wrong number of 
arguments (given 3, expected 2)

but now, with proposed version I'm getting something different:

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
Error: /File[/var/cache/puppet/lib]: Failed to generate additional resources 
using 'eval_generate': undefined method `to_sym' for nil:NilClass
Error: /File[/var/cache/puppet/locales]: Failed to generate additional 
resources using 'eval_generate': undefined method `to_sym' for nil:NilClass

I enabled proposed repo and update puppet to that version:

puppet:
  Installed: 5.5.22-4ubuntu0.1
  Candidate: 5.5.22-4ubuntu0.1
  Version table:
 *** 5.5.22-4ubuntu0.1 400
500 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 
Packages
100 /var/lib/dpkg/status
 5.5.22-4 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

-- 
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