Jira (PUP-8957) [Regression] PUP-8167 behaviour noted in Puppet AiO 5.5.3

10 views
Skip to first unread message

Stefan Pijnappels (JIRA)

unread,
Jun 25, 2018, 6:07:03 AM6/25/18
to puppe...@googlegroups.com
Stefan Pijnappels created an issue
 
Puppet / Bug PUP-8957
[Regression] PUP-8167 behaviour noted in Puppet AiO 5.5.3
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2018/06/25 3:06 AM
Priority: Normal Normal
Reporter: Stefan Pijnappels

Puppet Version: All-in-One 5.5.3
Puppet Server Version: N/A
OS Name/Version: Solaris 10 u 10

This appears to be a regression

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Stefan Pijnappels (JIRA)

unread,
Jun 25, 2018, 6:09:02 AM6/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jun 25, 2018, 5:09:02 PM6/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jun 25, 2018, 5:09:03 PM6/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jun 25, 2018, 5:15:04 PM6/25/18
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-8957
 
Re: [Regression] PUP-8167 behaviour noted in Puppet AiO 5.5.3

Jacob Helwig pointed out that the change for PUP-8167, had to be reverted in PUP-8262, so this behavior change is not a regression. But we can use this ticket to track the original request.

Jarret Lavallee (JIRA)

unread,
Jun 25, 2018, 5:17:02 PM6/25/18
to puppe...@googlegroups.com

Jacob Helwig (JIRA)

unread,
Jun 25, 2018, 5:20:03 PM6/25/18
to puppe...@googlegroups.com
Jacob Helwig commented on Bug PUP-8957

% git tag --contains 516595760379def5aa14140e1cca71d0db8e8a71
4.10.10
4.10.11
4.10.12
5.3.4
5.3.5
5.3.6
5.3.7
5.4.0
5.5.0
5.5.1
5.5.2

The revert was merged into 5.5.x from what I can see.

Jarret Lavallee (JIRA)

unread,
Jun 25, 2018, 5:28:02 PM6/25/18
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jun 25, 2018, 6:00:09 PM6/25/18
to puppe...@googlegroups.com
Branan Riley commented on Bug PUP-8957

I /think/ the conclusion we came to when we had to revert this fix last time was that this was something we'd have to fix in puppet 6 - obviously that's a ways out for it to get into the hands of customers, especially those on an LTS fork. There aren't a lot of great options here :/

Adam Bottchen (JIRA)

unread,
Jun 26, 2018, 12:49:40 PM6/26/18
to puppe...@googlegroups.com
Adam Bottchen commented on Bug PUP-8957

Regardless of whether or not I want this referred to as a regression, it is still true that reverting https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/service/smf.rb#L142 back to:

      return :stopped

does look to resolve the problem.

Branan Riley Is there a benefit I'm not seeing to having the status be marked as absent? It doesn't seem like it would help with puppet resource since we can't list all possible absent services, so it seems as though attempting to set this status will only cause problems. I don't see the "absent" status being used in any of the other service providers (aside from launchd).

Branan Riley (JIRA)

unread,
Jun 26, 2018, 5:13:02 PM6/26/18
to puppe...@googlegroups.com
Branan Riley commented on Bug PUP-8957

Service states are /hilariously/ inconsistent across OSes, and lots of things aren't properly modelled in Puppet's statuses (especially transitional states on all the OSes that have them, and a bunch of interesting SystemD corner cases).

Regarding this ticket: We've flagged it "needs information" for now just to declutter our triage list until the details of the customer issue are better sorted. Once we have a clearer idea if this is a regression or not, please switch this back to "open" and it will magically re-appear on our radar. Thanks!

Neil Binney (JIRA)

unread,
Jun 27, 2018, 3:24:03 AM6/27/18
to puppe...@googlegroups.com
Neil Binney updated an issue
 
Change By: Neil Binney
CS Priority: Needs Priority Reviewed

Scott McClellan (JIRA)

unread,
Jul 10, 2018, 5:22:08 PM7/10/18
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jul 10, 2018, 6:18:06 PM7/10/18
to puppe...@googlegroups.com
Branan Riley commented on Bug PUP-8957
 
Re: [Regression] PUP-8167 behaviour noted in Puppet AiO 5.5.3

From memory, and from what I can piece together from the ticket and commit history:

  • The change from returning ensure => stopped to ensure => absent was initially landed in 4.X, and reverted later in the 4.10 series when we determined it was causing regressions
  • That change was intentionally left in the 5.X series, but presumably not well-shaken-out by users since we don't ship FOSS Solaris packages, and our Solaris commercial customers aren't the fastest to upgrade
  • Possibly, some other changes related to improving the behavior of ensure => absent were reverted in 4.10, but NOT left in 5, which has led to the apparent regression of 8167. This is unclear to me - the git history is /super/ gnarly.

Anyway, there are a few of options here:

  • Leave the ensure=>absent behavior, and fix the service type to understand what the solaris provider is doing, and thus calling "absent" and "stopped" in sync. This would let us return "absent" from other providers.
  • Revert the "absent" behavior again, and just return "stopped", even though it's wrong
  • Revert all the way back to when trying to mange a nonexistent service would just raise an error, and tell users to stop trying to manage things that don't exist. (we probably shouldn't do this)
  • Make the Solaris provider implement "enablable" fully, so that missing services show as stopped, but trying to enable or start a missing service will still return an error.

I think the lasts one is probably best. This means returning "stopped=true,enabled=false" for nonexistent services. This matches the behavior of the systemd provider, and thus most modern Linux systems.

Branan Riley (JIRA)

unread,
Jul 10, 2018, 6:19:04 PM7/10/18
to puppe...@googlegroups.com
Branan Riley updated an issue
 
Change By: Branan Riley
Labels: service solaris solaris-parity type_and_provider

Geoff Nichols (JIRA)

unread,
Jul 20, 2018, 12:54:04 PM7/20/18
to puppe...@googlegroups.com
Geoff Nichols assigned an issue to Enis Inan
Change By: Geoff Nichols
Assignee: Branan Riley Enis Inan

Geoff Nichols (JIRA)

unread,
Jul 20, 2018, 12:54:04 PM7/20/18
to puppe...@googlegroups.com

Enis Inan (JIRA)

unread,
Jul 27, 2018, 6:48:04 PM7/27/18
to puppe...@googlegroups.com
Enis Inan commented on Bug PUP-8957
 
Re: [Regression] PUP-8167 behaviour noted in Puppet AiO 5.5.3

Marking this as Ready for Merge so that it gets a review, the PR's still in progress with some clarifying questions but pretty much done code-wise (unless the solution turns out to be completely wrong, which is also possible ).

Scott McClellan (JIRA)

unread,
Aug 20, 2018, 5:21:02 AM8/20/18
to puppe...@googlegroups.com

Scott McClellan (JIRA)

unread,
Aug 21, 2018, 12:31:04 AM8/21/18
to puppe...@googlegroups.com

Kenn Hussey (JIRA)

unread,
Aug 22, 2018, 12:43:11 PM8/22/18
to puppe...@googlegroups.com
Kenn Hussey updated an issue
 
Change By: Kenn Hussey
Fix Version/s: PUP 5.5.7
Fix Version/s: PUP 5.5.6

Kenn Hussey (JIRA)

unread,
Aug 22, 2018, 1:31:24 PM8/22/18
to puppe...@googlegroups.com

Austin Boyd (JIRA)

unread,
Dec 12, 2019, 8:41:05 AM12/12/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
 
Change By: Austin Boyd
Zendesk Ticket IDs: 35389
Zendesk Ticket Count: 1
Reply all
Reply to author
Forward
0 new messages