Jira (PUP-8495) Ubuntu 16.10 _AND NEWER_ use systemd provider as default

22 views
Skip to first unread message

Kolbjørn Barmen (JIRA)

unread,
Feb 27, 2018, 10:47:03 AM2/27/18
to puppe...@googlegroups.com
Kolbjørn Barmen created an issue
 
Puppet / Bug PUP-8495
Ubuntu 16.10 _AND NEWER_ use systemd provider as default
Issue Type: Bug Bug
Affects Versions: PUP 4.10.10
Assignee: Unassigned
Created: 2018/02/27 7:46 AM
Environment:

Ubuntu

Priority: Normal Normal
Reporter: Kolbjørn Barmen

Puppet Version:
Puppet Server Version:
OS Name/Version:

Detection of systemd fails on Ubuntu releases higher than 16.10

Desired Behavior:

disabling/enabling services should work as normal also on Ubuntu 17.04 and up.

As one can see here:

https://github.com/puppetlabs/puppet/commit/ef342d4ced9bf7aa0489005119bf80a298d094f2

Ubuntu is only supported up to 16.10 - why is this hardcoded in like this, instead of saying Ubuntu with releases from 15.04 and up use systemd, while those below use sysc-rc - the problem is now that puppet tries to use sysv-rc on Ubuntu 17.04 and up as well. 

Actual Behavior:

 

 

ubuntu1710 ~ # puppet resource service ipmievd enable='false'
dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
Notice: /Service[ipmievd]/enable: enable changed 'true' to 'false'
service { 'ipmievd':
   enable => 'true',
}
ubuntu1710 ~ # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
ubuntu1710 ~ #

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)
Atlassian logo

Melissa Stone (JIRA)

unread,
Mar 2, 2018, 12:25:03 PM3/2/18
to puppe...@googlegroups.com
Melissa Stone assigned an issue to Melissa Stone
Change By: Melissa Stone
Assignee: Melissa Stone
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Melissa Stone (JIRA)

unread,
Mar 2, 2018, 12:27:04 PM3/2/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
Sub-team: Coremunity
Labels: community
Team: Platform Core
Sprint: Platform Core KANBAN

Melissa Stone (JIRA)

unread,
Mar 2, 2018, 12:27:06 PM3/2/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
Labels: community type_and_provider

Craig Gomes (JIRA)

unread,
Mar 5, 2018, 5:07:03 PM3/5/18
to puppe...@googlegroups.com
Craig Gomes updated an issue
Change By: Craig Gomes
Fix Version/s: PUP 5.3.z

PegaS (JIRA)

unread,
Mar 12, 2018, 6:15:03 AM3/12/18
to puppe...@googlegroups.com
PegaS commented on Bug PUP-8495
 
Re: Ubuntu 16.10 _AND NEWER_ use systemd provider as default

It would be great if this was made available on both 4.x and 5.x versions of the agent.

Our situation: we're planning a migration to 18.04 (from 14.04, skipping 16.04) and would love to upgrade just the OS and not the server/agent at first.

Vladimir Tyshkevich (JIRA)

unread,
Mar 13, 2018, 12:45:02 PM3/13/18
to puppe...@googlegroups.com

FTR ubuntu/debian maintained sources/packages have needed patches for particular distros, but as usual version is frozen (and there is no puppetserver packaged)  and since it's patches for packages for specific distro series it contains pretty hardcode style.

E.g.: https://git.launchpad.net/ubuntu/+source/puppet/tree/debian/patches/0005-use-systemd-as-the-default-service-provider.patch?h=ubuntu/bionic-devel&id=41ef90141a8baab438651447cd23efd408d62997

Jacob Helwig (JIRA)

unread,
Mar 14, 2018, 3:08:02 PM3/14/18
to puppe...@googlegroups.com

Melissa Stone (JIRA)

unread,
Mar 14, 2018, 3:09:04 PM3/14/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
 
Change By: Melissa Stone
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 5.3.z
Fix Version/s: PUP 4.10.z
Fix Version/s: PUP 6.0.0
Fix Version/s: PUP 4.10.11

Jacob Helwig (JIRA)

unread,
Mar 14, 2018, 3:09:05 PM3/14/18
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Fix Version/s: PUP 6.0.0
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 4.10.z

Melissa Stone (JIRA)

unread,
Mar 14, 2018, 3:10:04 PM3/14/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
Fix Version/s: PUP 4.10.11
Fix Version/s: PUP 6.0.0
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 4.10.z

Melissa Stone (JIRA)

unread,
Mar 14, 2018, 3:11:04 PM3/14/18
to puppe...@googlegroups.com

Melissa Stone (JIRA)

unread,
Mar 15, 2018, 1:39:03 PM3/15/18
to puppe...@googlegroups.com
Melissa Stone commented on Bug PUP-8495
 
Re: Ubuntu 16.10 _AND NEWER_ use systemd provider as default

This has passed ci in puppet-agent 1.10.10.102.g2369782

Melissa Stone (JIRA)

unread,
Mar 15, 2018, 1:39:04 PM3/15/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
Fix Version/s: PUP 4.10.z
Fix Version/s: PUP 4.10.11

Melissa Stone (JIRA)

unread,
Mar 15, 2018, 1:41:03 PM3/15/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 5.3.z
Fix Version/s: PUP 5.5.0
Fix Version/s: PUP 5.3.6

Melissa Stone (JIRA)

unread,
Mar 15, 2018, 1:43:06 PM3/15/18
to puppe...@googlegroups.com
Melissa Stone updated an issue
Change By: Melissa Stone
QA Risk Assessment: Needs Assessment No Action
Release Notes Summary: SystemD is now set as the default provider for Ubuntu 17.04 and 17.10.
Release Notes: New Feature

Melissa Stone (JIRA)

unread,
Mar 15, 2018, 2:08:04 PM3/15/18
to puppe...@googlegroups.com
Melissa Stone commented on Bug PUP-8495
 
Re: Ubuntu 16.10 _AND NEWER_ use systemd provider as default

I opened https://tickets.puppetlabs.com/browse/PUP-8552 to make sure we do implement the blacklist, or something similar at least, that PegaS suggested. It would be really great to reduce the maintenance cost for both systemd and dnf. However, we will likely target that work at puppet 6.0.0.

PegaS (JIRA)

unread,
Mar 16, 2018, 2:48:03 PM3/16/18
to puppe...@googlegroups.com

Melissa Stone (JIRA)

unread,
Mar 16, 2018, 2:50:03 PM3/16/18
to puppe...@googlegroups.com

Enis Inan (JIRA)

unread,
Apr 13, 2018, 4:34:04 PM4/13/18
to puppe...@googlegroups.com
Enis Inan updated an issue
 
Change By: Enis Inan
Fix Version/s: PUP 5.5.1

Kolbjørn Barmen

unread,
Jul 10, 2019, 5:54:04 AM7/10/19
to puppe...@googlegroups.com
Kolbjørn Barmen commented on Bug PUP-8495
 
Re: Ubuntu 16.10 _AND NEWER_ use systemd provider as default

And now the same for Debian 10... yikes!

https://puppet.com/docs/puppet/5.5/types/service.html#service-provider-systemd

  • operatingsystem == debian and operatingsystemmajrelease == 8, stretch/sid, 9, buster/sid

And no buster is not "buster/sid", but "10", and again puppet is trying to use ancient update-rc.d and complains about lacking init-scripts.

How about fixing this once and for all? The future of both Debian and Ubuntu is "systemd", the "debian" provider can be retired, or specified only for equally ancient Debian/Ubuntu releases older than Debian 7 and old than Ubuntu 15.10.

 

Pretty please!?!

Josh Cooper (JIRA)

unread,
Jul 15, 2019, 7:38:03 PM7/15/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 5.5.1
Fix Version/s: PUP 5.5.0
Fix Version/s: PUP 4.10.11
Fix Version/s: PUP 6.0.0
Fix Version/s: PUP 5.5.z

Josh Cooper (JIRA)

unread,
Jul 15, 2019, 7:38:04 PM7/15/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 5.5.z

Josh Cooper (JIRA)

unread,
Jul 15, 2019, 7:39:03 PM7/15/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 5.3.6
Fix Version/s: PUP 5.5.z

Karsten Heymann (JIRA)

unread,
Sep 11, 2019, 5:05:04 AM9/11/19
to puppe...@googlegroups.com

Karsten Heymann (JIRA)

unread,
Sep 11, 2019, 5:11:03 AM9/11/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 12:12:04 AM10/1/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform Core Night's Watch

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 12:12:04 AM10/1/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 12:12:05 AM10/1/19
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Unassigned
Change By: Josh Cooper
Assignee: Melissa Stone

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 12:12:05 AM10/1/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Platform Core KANBAN

Josh Cooper (Jira)

unread,
Oct 23, 2020, 7:58:03 PM10/23/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 6.y
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 9, 2021, 10:02:02 PM6/9/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-8495
 
Re: Ubuntu 16.10 _AND NEWER_ use systemd provider as default

Puppet 5 is EOL and AFAICT this issue is fixed in 6 and up. The systemd/debian/upstart service providers now confine themselves to old versions and make use of notdefaultfor (for example systemd is not selected on Ubuntu 14.04, while upstart is not selected on 18.04). This way we don't need to change the provider(s) every time a new version is released. As a result I'm going to close this. Please reopen if I'm missing something.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages