Jira (PUP-10949) Puppet cannot parse systemd instances when list-unit-files output has an additional column

8 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Mar 4, 2021, 10:54:03 AM3/4/21
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Puppet / Bug PUP-10949
Puppet cannot parse systemd instances when list-unit-files output has an additional column
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/03/04 7:53 AM
Priority: Normal Normal
Reporter: Gabriel Nagy

Puppet Version: 6.21.1/7.4.1
Puppet Server Version: n/a
OS Name/Version: Fedora 32/Ubuntu 20.04

Some time ago the output of systemctl list-unit-files changed to include an additional column. Previous output (on CentOS 8):

UNIT FILE                                   STATE          
arp-ethers.service                          disabled       
auditd.service                              enabled        
auth-rpcgss-module.service                  static         

Current output (on Fedora 32 and Ubuntu 20.04):

UNIT FILE                                  STATE           VENDOR PRESET
arp-ethers.service                         disabled        disabled     
auditd.service                             enabled         enabled      
auth-rpcgss-module.service                 static          disabled     

Desired Behavior:

puppet resource service produces a list of services

Actual Behavior:

puppet resource service does not print anything

The following regex should be updated to allow for both types of output: https://github.com/puppetlabs/puppet/blob/3df444559245c3fd9e3e78f58ade40e256a756ba/lib/puppet/provider/service/systemd.rb#L33

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Mar 17, 2021, 7:20:04 AM3/17/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Mar 17, 2021, 7:20:04 AM3/17/21
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
Apr 12, 2021, 2:48:01 AM4/12/21
to puppe...@googlegroups.com
Luchian Nemes updated an issue
Change By: Luchian Nemes
Fix Version/s: PUP 7.6.0
Fix Version/s: PUP 6.22.0
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Claire Cadman (Jira)

unread,
Apr 13, 2021, 9:13:04 AM4/13/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages