Skip to content

(maint) Deprecate fine grained control of file and environment timeouts#7001

Closed
justinstoller wants to merge 1 commit intopuppetlabs:masterfrom
justinstoller:deprecate-fine-grained-config-reloading
Closed

(maint) Deprecate fine grained control of file and environment timeouts#7001
justinstoller wants to merge 1 commit intopuppetlabs:masterfrom
justinstoller:deprecate-fine-grained-config-reloading

Conversation

@justinstoller
Copy link
Member

This is a nice to have deprecation regardless of whether we ever implement file serving natively in Puppet Server. See SERVER-2285 and SERVER-2028 for background on these two settings (and how they don't work well currently).

I'm a little unsure on the calling of :hook to ensure the values I'm checking against haven't been munged yet.

@puppetcla
Copy link

CLA signed by all contributors.

Copy link
Contributor

@Magisus Magisus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using the hooks makes sense. Or are you worried that the value will have already been munged by the time it gets to the hook? (in which case I'll try it)

releases this value will only determine if file content is cached.

Valid values will be 0 (never cache) and 'unlimited' (always cache).
With a default of 'unlimited'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a little odd that the default is not one of these values...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, 'unlimited' is valid for TTL settings but not for Durations.

Currently I believe users work around this by setting this to some absurdly large number for a timeout like 5y.

I figured moving it to a TTL type was out of scope. I could add comment that unlimited, while not valid now, will be the default and that users who have this set to a really large value now should keep the move in mind?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess reading it again the current comment does imply that it will work that way in the future. I think this is fine.

@justinstoller
Copy link
Member Author

justinstoller commented Aug 15, 2018

Yeah, 0 and 'unlimited' or '15s' were the values I saw when trying to test this out (but I might not have been initializing Puppet correctly??).

I found that concerning because I would have expected the Numerics 0 and 15 or Float::INFINITY OR the string '0' and the string '15s' or 'unlimited' as values passed to hook for the respective settings, but not the number 0 and the strings....

@justinstoller justinstoller changed the base branch from 5.5.x to master August 20, 2018 17:27
@justinstoller justinstoller force-pushed the deprecate-fine-grained-config-reloading branch from 409b284 to 2dfdf82 Compare August 20, 2018 17:27
@justinstoller
Copy link
Member Author

Re-targeted at master, I think this is still a Good Thing™ to get into Puppet 6.

@jtappa
Copy link
Contributor

jtappa commented Sep 12, 2018

hey @puppetlabs/platform-core, since this was a proposed deprecation for 6, it would be nice to get a look at getting this in today

@justinstoller
Copy link
Member Author

FWIW, this isn't a blocker for 6.

@jtappa
Copy link
Contributor

jtappa commented Sep 12, 2018

For sure, just thought I'd help bring it back up since the pr has been sitting for a while and doesn't seem to have any blockers itself :)

@melissa
Copy link
Contributor

melissa commented Oct 23, 2018

We should probably retarget this at 6.0.x. This also feels like a change we should have release notes for. Can you create a ticket?

We'll deprecate this in 6, and remove in 7. @joshcooper will file the companion ticket for puppet 7.

@joshcooper
Copy link
Contributor

Puppet 7 ticket added in https://tickets.puppetlabs.com/browse/PUP-9262

@joshcooper
Copy link
Contributor

Ping @justinstoller the PR is targeting master, but @melissa last comment suggested targeting 6.0.x. But 6.1.0 is going out soon. What would you like to do?

@justinstoller
Copy link
Member Author

Sorry, not really on my radar any more. I'm fine with wherever as long as we get it in for 7 (or whenever we pick up the file-serving re-write if sooner).

@melissa
Copy link
Contributor

melissa commented Feb 13, 2019

I think this is something, if we still want it, we should get into 6.y. How long do we have to let deprecations like this soak before we remove them? If we get the deprecation into 6.y, can we still remove it in 7? I opened https://tickets.puppetlabs.com/browse/PUP-9497 for the deprecation, so that we can add and publish release notes about the deprecation.

@melissa melissa added the Server label Feb 13, 2019
@melissa melissa self-assigned this Feb 21, 2019
@melissa
Copy link
Contributor

melissa commented Feb 21, 2019

@puppetlabs/puppetserver-maintainers I assume y'all still want this change? If so, I'll take it, rebase it onto 6.0.x, and update the commit to reference the ticket.

@melissa
Copy link
Contributor

melissa commented Mar 20, 2019

@justinstoller I opened #7433 which references https://tickets.puppetlabs.com/browse/PUP-9497 in the commit and targets the 6.0.x branch. I'm closing this PR in favor of that one

@melissa melissa closed this Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants