Jira (PUP-7750) puppet resource service fails on FreeBSD 11

2 views
Skip to first unread message

Gene Liverman (JIRA)

unread,
Jul 4, 2017, 1:52:03 PM7/4/17
to puppe...@googlegroups.com
Gene Liverman created an issue
 
Puppet / Bug PUP-7750
puppet resource service fails on FreeBSD 11
Issue Type: Bug Bug
Affects Versions: PUP 5.0.0, PUP 4.10.0
Assignee: Unassigned
Attachments: freebsd11-bluetooth.txt, freebsd11-sshd.txt
Created: 2017/07/04 10:51 AM
Environment:

FreeBSD 11

Priority: Normal Normal
Reporter: Gene Liverman

I was playing around with FreeBSD 11 today and found that running puppet resource service failed with the error Error: Could not run: undefined method `gsub' for nil:NilClass. After doing some testing I believe it is due to Puppet not handling the results of running /etc/rc.d/bluetooth rcvar. Details and related examples below:

# note that there is not a line that says anything about enable in this service
➜  ~ service bluetooth rcvar
# bluetooth : Bluetooth setup script
#
 
➜  ~ service sshd rcvar
# sshd : Secure Shell Daemon
#
sshd_enable="YES"
#   (default: "")
 
➜  ~ service ntpd rcvar
# ntpd : Network Time Protocol daemon
#
ntpd_enable="NO"
#   (default: "")
 
➜  ~ puppet resource service bluetooth
Error: Could not run: undefined method `gsub' for nil:NilClass

Initially I was using the version of Puppet installed by running pkg install puppet4 which brought in Puppet 4.10.0. I uninstalled that and installed the Puppet 5.0.0 gem and got the same results.

When looking in /etc/rc.d/bluetooth I noticed that rcvar= isn't set to anything whereas /etc/rc.d/sshd is set to rcvar="sshd_enable". Attached are copies of both files.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Geoff Nichols (JIRA)

unread,
Jul 6, 2017, 1:09:02 PM7/6/17
to puppe...@googlegroups.com
Geoff Nichols commented on Bug PUP-7750
 
Re: puppet resource service fails on FreeBSD 11

Thank you for filing this issue. We agree it is likely an improvement, but due to other issues demanding precedence, we don’t anticipate being able to address this any time soon. If you are interested in submitting a patch to the repository for this project at https://github.com/puppetlabs, please open a pull request.

Geoff Nichols (JIRA)

unread,
Jul 6, 2017, 1:09:03 PM7/6/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
 
Change By: Geoff Nichols
Labels: help_wanted

Geoff Nichols (JIRA)

unread,
Jul 6, 2017, 1:09:03 PM7/6/17
to puppe...@googlegroups.com

Gene Liverman (JIRA)

unread,
Jul 6, 2017, 4:24:02 PM7/6/17
to puppe...@googlegroups.com
Gene Liverman commented on Bug PUP-7750
 
Re: puppet resource service fails on FreeBSD 11

Geoff Nichols Can you point me in the direction of where in the code base to look for the code related to this?

Gene Liverman (JIRA)

unread,
Jul 7, 2017, 12:38:03 PM7/7/17
to puppe...@googlegroups.com
Gene Liverman commented on Bug PUP-7750

After some guidance on where to look, it seems the offending code is likely around provider/service/freebsd.rb line 47 as there is no error handling for when there is no name. I'm planning to take a stab at fixing this in the next week or so.

Branan Riley (JIRA)

unread,
May 14, 2018, 3:34:03 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
 
Change By: Branan Riley
Labels: cli freebsd help_wanted service triaged type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 12:46:04 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-7750
 
Re: puppet resource service fails on FreeBSD 11

I'm going to close this due to inactivity and based on Geoff's comments above. Please reopen if/when you have a PR.

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