Skip to content

(PUP-9497) Deprecate fine grained control of file and environment tim…#7433

Merged
joshcooper merged 1 commit intopuppetlabs:6.0.xfrom
melissa:ticket/6.0.x/PUP-9497
Mar 29, 2019
Merged

(PUP-9497) Deprecate fine grained control of file and environment tim…#7433
joshcooper merged 1 commit intopuppetlabs:6.0.xfrom
melissa:ticket/6.0.x/PUP-9497

Conversation

@melissa
Copy link
Contributor

@melissa melissa commented Mar 20, 2019

…eouts

@puppetcla
Copy link

CLA signed by all contributors.

@jtappa jtappa self-requested a review March 25, 2019 16:44
@melissa
Copy link
Contributor Author

melissa commented Mar 29, 2019

$ be ./bin/puppet config print environment_timeout filetimeout
Warning:             Fine grained control of filetimeouts is deprecated. In future
            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'.

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:613:in `block in <module:Puppet>')
Warning:           Fine grained control of environment timeouts is deprecated,
          please use `0` or `unlimited` to control default caching behavior
          and the environment-cache endpoint in Puppet Server's administrative
          API to expire the cache as needed

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:651:in `block in <module:Puppet>')
environment_timeout = 20
filetimeout = 20

@melissa melissa force-pushed the ticket/6.0.x/PUP-9497 branch from cc102ab to 2b07a9a Compare March 29, 2019 17:46
@melissa
Copy link
Contributor Author

melissa commented Mar 29, 2019

and with the default values:

$ be ./bin/puppet config print environment_timeout filetimeout
environment_timeout = 0
filetimeout = 15

@melissa
Copy link
Contributor Author

melissa commented Mar 29, 2019

@justinstoller @Magisus can we get confirmation that we still want these deprecation warnings to land in 6.y, and the associated removals will happen in puppet 7.y?

@justinstoller
Copy link
Member

Yes.

I doubt we can confirm right now that we will be building the feature for 7.0 that required this change. But everyone I discussed it with considered the current behavior buggy and misleading, and this change valuable regardless.

within an environment in Puppet Server please use the environment_cache endpoint",
:hook => proc do |val|
if ![0, '15s'].include?(val)
Puppet.deprecation_warning(<<-WARNING)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a squiggly heredoc <<~WARNING so that the leftmost whitespace is trimmed

inconsistent catalogs.",
:hook => proc do |val|
if ![0, 'unlimited'].include?(val)
Puppet.deprecation_warning(<<-WARNING)
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@melissa melissa force-pushed the ticket/6.0.x/PUP-9497 branch from 2b07a9a to 06942fa Compare March 29, 2019 20:41
@melissa
Copy link
Contributor Author

melissa commented Mar 29, 2019

$ be ./bin/puppet config print environment_timeout filetimeout
Warning: Fine grained control of filetimeouts is deprecated. In future
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'.

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:613:in `block in <module:Puppet>')
Warning: Fine grained control of environment timeouts is deprecated,
please use `0` or `unlimited` to control default caching behavior
and the environment-cache endpoint in Puppet Server's administrative
API to expire the cache as needed

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:651:in `block in <module:Puppet>')
environment_timeout = 20
filetimeout = 20

@joshcooper updated

@melissa melissa force-pushed the ticket/6.0.x/PUP-9497 branch from 06942fa to a16e820 Compare March 29, 2019 21:15
@melissa melissa force-pushed the ticket/6.0.x/PUP-9497 branch from a16e820 to 09e6703 Compare March 29, 2019 21:17
@melissa
Copy link
Contributor Author

melissa commented Mar 29, 2019

$ be ./bin/puppet config print environment_timeout filetimeout
Warning: Fine grained control of filetimeouts is deprecated. In future
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'.

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:613:in `block in <module:Puppet>')
Warning: Fine grained control of environment timeouts is deprecated,
please use `0` or `unlimited` to control default caching behavior
and the environment-cache endpoint in Puppet Server's administrative
API to expire the cache as needed

   (location: /Users/Melissa/puppet/lib/puppet/defaults.rb:651:in `block in <module:Puppet>')
environment_timeout = 20
filetimeout = 20

@joshcooper joshcooper merged commit 496f01a into puppetlabs:6.0.x Mar 29, 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.

4 participants