2022-04-22 14:04:35 |
Hadmut Danisch |
bug |
|
|
added bug |
2022-04-27 15:18:56 |
Lucas Kanashiro |
tags |
amd64 apport-bug jammy |
amd64 apport-bug jammy server-todo |
|
2022-04-27 15:19:03 |
Lucas Kanashiro |
bug |
|
|
added subscriber Ubuntu Server |
2022-04-27 15:19:10 |
Lucas Kanashiro |
puppet (Ubuntu): assignee |
|
Lucas Kanashiro (lucaskanashiro) |
|
2022-04-27 23:29:44 |
Mario |
bug |
|
|
added subscriber Mario |
2022-04-27 23:30:06 |
Launchpad Janitor |
puppet (Ubuntu): status |
New |
Confirmed |
|
2022-04-28 20:46:37 |
Lucas Kanashiro |
nominated for series |
|
Ubuntu Kinetic |
|
2022-04-28 20:46:37 |
Lucas Kanashiro |
bug task added |
|
puppet (Ubuntu Kinetic) |
|
2022-04-28 20:46:37 |
Lucas Kanashiro |
nominated for series |
|
Ubuntu Jammy |
|
2022-04-28 20:46:37 |
Lucas Kanashiro |
bug task added |
|
puppet (Ubuntu Jammy) |
|
2022-04-28 20:47:11 |
Lucas Kanashiro |
puppet (Ubuntu Jammy): status |
New |
Triaged |
|
2022-04-28 20:47:14 |
Lucas Kanashiro |
puppet (Ubuntu Kinetic): status |
Confirmed |
Triaged |
|
2022-04-28 20:47:21 |
Lucas Kanashiro |
puppet (Ubuntu Jammy): assignee |
|
Lucas Kanashiro (lucaskanashiro) |
|
2022-04-29 20:42:17 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/puppet/+git/puppet/+merge/420947 |
|
2022-04-29 21:14:42 |
Anders Kaseorg |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009643 |
|
2022-04-29 21:14:42 |
Anders Kaseorg |
bug task added |
|
puppet (Debian) |
|
2022-04-29 21:33:23 |
Bug Watch Updater |
puppet (Debian): status |
Unknown |
New |
|
2022-04-29 21:35:13 |
Anders Kaseorg |
bug |
|
|
added subscriber Anders Kaseorg |
2022-05-04 15:00:11 |
Lucas Kanashiro |
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) |
[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 <<EOF > 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) |
|
2022-05-04 15:01:37 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/puppet/+git/puppet/+merge/421342 |
|
2022-05-04 19:56:08 |
Lucas Kanashiro |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-05-06 08:08:29 |
Timo Aaltonen |
puppet (Ubuntu Jammy): status |
Triaged |
Fix Committed |
|
2022-05-06 08:08:31 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2022-05-06 08:08:35 |
Timo Aaltonen |
tags |
amd64 apport-bug jammy server-todo |
amd64 apport-bug jammy server-todo verification-needed verification-needed-jammy |
|
2022-05-06 19:42:18 |
TIG |
bug |
|
|
added subscriber TIG |
2022-05-06 21:54:04 |
Adrián Pablo José Sedoski Croce |
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 |
|
2022-05-09 20:28:40 |
Lucas Kanashiro |
puppet (Ubuntu Kinetic): status |
Triaged |
Fix Committed |
|
2022-05-18 02:59:20 |
Launchpad Janitor |
puppet (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|
2022-05-19 08:26:03 |
Marcel Gast |
bug |
|
|
added subscriber Marcel Gast |
2022-05-24 21:25:09 |
Lucas Kanashiro |
tags |
amd64 apport-bug jammy server-todo verification-needed verification-needed-jammy |
amd64 apport-bug jammy server-todo verification-done verification-done-jammy |
|
2022-05-27 12:24:57 |
Lucas Kanashiro |
puppet (Ubuntu Kinetic): status |
Fix Released |
In Progress |
|
2022-05-30 09:27:29 |
Łukasz Zemczak |
tags |
amd64 apport-bug jammy server-todo verification-done verification-done-jammy |
amd64 apport-bug jammy server-todo verification-needed verification-needed-jammy |
|
2022-06-07 20:09:40 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/puppet/+git/puppet/+merge/424107 |
|
2022-06-08 14:55:19 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/puppet/+git/puppet/+merge/424205 |
|
2022-06-08 20:32:07 |
Launchpad Janitor |
puppet (Ubuntu Kinetic): status |
In Progress |
Fix Released |
|
2022-06-10 18:41:22 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/puppet/+git/puppet/+merge/424206 |
|
2022-06-14 12:40:33 |
Lucas Kanashiro |
tags |
amd64 apport-bug jammy server-todo verification-needed verification-needed-jammy |
amd64 apport-bug jammy server-todo verification-done verification-done-jammy |
|
2022-06-20 14:38:42 |
Launchpad Janitor |
puppet (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2022-06-20 14:38:47 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2022-10-25 00:46:18 |
Bug Watch Updater |
puppet (Debian): status |
New |
Fix Released |
|
2022-11-24 08:56:43 |
Miriam España Acebal |
tags |
amd64 apport-bug jammy server-todo verification-done verification-done-jammy |
amd64 apport-bug jammy verification-done verification-done-jammy |
|