Puppet Server: Release Notes

This version of Puppet Server is not included in Puppet Enterprise. The latest version of PE includes Puppet Server 2.7. A newer version is available; see the version menu above for details.

Puppet Server 1.1.3

Released December 9, 2015.

This is a bug fix release in the Puppet Server 1.1 series; no new features have been added since 1.1.0. We recommend that all users upgrade.

Bug Fixes

max-requests-per-instance Setting No Longer Leaks Memory

When using the optional max-requests-per-instance setting in puppetserver.conf, Puppet Server should flush the JRuby instance from memory and replace it with a fresh instance after serving a number of requests defined by that setting. This should be useful when dealing with memory leaks in module code.

However, the outgoing JRuby instances were not being flushed as expected during garbage collection, resulting in Puppet Server leaking memory. This could destabilize the server after a sufficient number of replacement cycles.

Puppet Server 1.1.3 resolves this issue by properly flushing the JRuby instance after serving the configured number of requests.

All Changes

Puppet Server 1.1.2

Released October 19, 2015.

This is a security and bug fix release in the Puppet Server 1.1 series; no new features have been added since 1.1.0. We recommend that all users upgrade.

Bug Fixes

Make Certificate Authority and Master Private Keys Inaccessible to “World” Users

Previous versions of Puppet Server would not explicitly set file permissions for certificate authority (CA) and Master private keys, which could leave both keys’ readable by “world” users. Puppet Server 1.1.2 resolves this bug by automatically setting and enforcing a permissions change that limits read access to the Puppet Server user and group.

Resolve an Issue with FreeIPA 4.x CA Signed Certificates

When running Puppet agent against a Puppet Server with a FreeIPA 4.x CA signed certificate that contains a General Name of type other, Puppet agent fails with an error:

[puppet-server] Puppet java.util.ArrayList cannot be cast to java.lang.String

Puppet Server 1.1.2 resolves this issue.

Correctly Flush Caches of Actively Used JRuby Instances

In previous versions of Puppet Server, Puppet Server could not flush the caches of JRuby instances if they were borrowed from a pool when the cache flush request was issued. This version resolves the issue.

All Changes

Puppet Server 1.1.1

Released June 18, 2015

This is a security and bug fix release in the Puppet Server 1.1 series; no new features have been added since 1.1.0. We recommend that all users upgrade.

Bug Fixes

Upgrade JRuby From 1.7.20 to 1.7.20.1 to Resolve CVE-2015-4020

The Rubygems client had security problems with wildcard matching of hostnames (CVE-2015-4020), which were fixed in Rubygems 2.4.8. To get this fix, we bumped our JRuby dependency to version 1.7.20.1. See ruby-lang.org’s description of CVE-2015-4020 or CVE-2015-3900 for more info.

Consolidate Environment Handling Behavior

Consolidate JRuby environment handling, which was previously inconsistent across the use cases of puppetserver gem, puppetserver irb, puppetserver ruby and the puppetserver service.

Return Good Content-Type for CA Errors

We fixed two bugs in the CA service’s responses, which caused issues for services consuming the CA API.

  • SERVER-723 Fix Content-Type header in CA responses
  • SERVER-646 Allow charset for certificate_status content-type (b17a242)

Miscellaneous Improvements

Minor changes to documentation following the 1.1.0 release, primarily the re-introduction of the /status endpoint documentation.

Puppet Server 1.1.0

Released June 2, 2015

In addition to several bug fixes, this release adds a new feature which can be configured to allow the master to automatically flush individual JRuby pool instances after a specified number of web requests have been handled. This upgrades Puppet Server’s dependency on JRuby to 1.7.20 in order to take advantage of memory optimizations and other fixes.

Known Issues

max-requests-per-instance Causes a Memory Leak

When using the optional max-requests-per-instance setting in puppetserver.conf, Puppet Server should flush the JRuby instance from memory and replace it with a fresh instance after serving a number of requests defined by that setting. This can be handy when dealing with memory leaks in module code.

However, the outgoing JRuby instances are not flushed as expected during garbage collection, resulting in Puppet Server causing a memory leak that could destabilize the server after a sufficient number of replacement cycles.

This issue is resolved in Puppet Server 1.1.3 and 2.2.0. You can also avoid this issue by setting max-requests-per-instance to 0. If you’re actively mitigating other memory leaks via the max-active-instances setting, you can replace the max-requests-per-instance behavior with a cron job that regularly flushes the entire JRuby pool, such as:

curl -X DELETE \
  --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \
  --cert /etc/puppetlabs/puppet/ssl/certs/pe-internal-classifier.pem \
  --key /etc/puppetlabs/puppet/ssl/private_keys/pe-internal-classifier.pem \
  https://<master hostname>:8140/puppet-admin-api/v1/jruby-pool

New Features

Added setting to flush ruby instances after a configurable number of requests

We added a setting that can be used by the master to limit how many HTTP requests a given JRuby instance will handle in its lifetime. When a JRuby instance reaches this limit, it is flushed from memory and replaced with a fresh one. Defaults to 0, which disables automatic JRuby flushing. This can be useful for working around buggy module code that would otherwise cause memory leaks, however it causes a slight performance penalty whenever a new JRuby has to reload all of the Puppet Ruby code. If memory leaks from module code are not an issue in your deployment, the default value will give you the best performance.

Allow environment-cache to take an environment as an argument

Added support to the environment-cache API for flushing an environment by name, as opposed to only having the ability to flush all environments.

Bug fixes

Re-enabled the master status endpoint

ignore parameters were being mishandled

Fix for a problem where file_metadatas requests to the master which include multiple ignore parameters were being mishandled. This had previously led to an agent downloading files from the master which should have been ignored.

keylength value now being determined by setting

Previously, Puppet Server had always hardcoded the keylength to 4096 bits. Now, it properly honors the value in the keylength setting in puppet.conf when determining the number of bits to use in the generation of keys.

Verbose output disabled

Disabled the display of verbose output that appeared during a package upgrade.

Previous logback level issue fix had been reverted

Fixed an issue where logback levels weren’t changed unless you restarted Puppet Server. This functionality had been provided in Puppet Server 1.0.2 but was inadvertently removed in Puppet Server 1.0.8.

Miscellaneous improvements

  • SERVER-544 - Reduced the amount of memory used by the master to cache the payload for incoming catalog requests.
  • SERVER-680 - Upgraded JRuby dependency to 1.7.20 in order to take advantage of some of the memory management improvements we’ve seen in our internal testing.
  • SERVER-391 - Made the error message displayed for a JRubyPool “borrow-timeout” a little more clear.

Puppet Server 1.0.8

In addition to several bug fixes, this release adds new HTTP client timeout settings, a special logfile to capture only HTTP traffic, and a JRuby tuning guide to help you get the best performance from Puppet Server.

New Features

Added new http-client timeout settings

We’ve exposed two new HTTP client timeout settings: idle-timeout-milliseconds and connect-timeout-milliseconds. These new settings can be configured in the http-client section of the puppetserver.conf file.

  • SERVER-449 - Expose http-client timeouts from Puppet Server http_connect_timeout and http_read_timeout.

Enabled HTTP traffic logs

This version of Puppet Server has a special-purpose logfile to capture only the HTTP traffic. This should work out of the box, but you can configure the location and the format of the logfile.

Added new JRuby default borrow timeout setting

Previously, the JRuby pool borrow timeout was indefinite and wasn’t configurable. As of SERVER 1.0.8, there is a new borrow-timeout setting in the http-client section of the puppetserver.conf file. If you don’t specify a value for that setting, Puppet Server will use 20 minutes as a default. This allows enough time for realistic expensive catalog compilations while avoiding indefinite hanging.

  • SERVER-408 - Expose configurable borrow-timeout to allow JRuby pool borrows to timeout

Added Puppet Server JRuby tuning guide

We’ve added a new Tuning Guide to help you improve your Puppet Server performance by tuning your number of JRubies and your JVM heap size.

  • SERVER-379 - Tuning guide for JRubies, Heap size, etc.

Bug Fixes

Fixed an issue where Puppet Server couldn’t start after reboot

Previously, Puppet Server failed to start after a reboot on some systems (notably RHEL 7 and Ubuntu 14.4). This was because the /var/run/ directory, needed by Puppet Server, was being destroyed on reboot. This issue has been fixed.

  • SERVER-404 - Properly create /var/run/puppetserver dir in FOSS packaging

Startup scripts now use ‘runuser’.

We’ve added ‘runuser’ to the startup scripts to allow Puppet Server command line utilities to run on systems with restricted login capability. The scripts will first try to use ‘runuser’, then ‘sudo’, then ‘su’.

  • SERVER-344 - Startup scripts should use ‘runuser’ not ‘su’.

puppetserver foreground now produces output

Running the puppetserver foreground subcommand produced no output. It should now provide its usual output again.

  • SERVER-356 - puppetserver foreground produces no output

CA handling fixed

Previously, Puppet Server was mishandling some CAs. Specifically, if you brought up a Puppet CA on a master where you wanted to use an external Puppet CA, but you hadn’t already configured the disabled CA service in the bootstrap.cfg file, the local CA superseded the certificate from the external CA. This issue has now been fixed.

  • SERVER-345 - Fixup usages of cacert / localcacert in master

Default maximum JRuby instances capped at 4

The default maximum number of JRuby instances has been capped at 4. This is a safer maximum for use with the default 2GB JVM memory.

  • SERVER-448 - Change default max-active-instances to not exceed 4 JRubies

Puppet Server 1.0.3 – 1.0.7

Puppet Server versions 1.0.3 – 1.0.7 were never released.

However, Puppet Enterprise 3.7.2 included a version of Puppet Server that was labeled as version 1.0.6. The only change from Puppet Server 1.0.2 was that the fix for SERVER-262 was reverted in SERVER-522. This change is also included in the release of Puppet Server 1.0.8.

Puppet Server 1.0.2

The 1.0.2 release of Puppet Server includes several bug fixes. It also improves logging functionality by allowing Logback changes to take effect without a restart.

Bug Fixes

Filebucket files treated as binary data

Puppet Server now treats filebucket files as binary data. This prevents possible data alteration resulting from Puppet Server inappropriately treating all filebucket files as text data.

  • SERVER-269: Puppet Server aggressively coerces request data to UTF-8

puppetserver gem env command now works

This release fixes functionality of the puppetserver gem env command. Previously, this command was throwing an error because the entire system environment was being cleared.

  • SERVER-262: puppetserver gem env does not work, useful for troubleshooting

Startup time extended for systemd

In 1.0.0, we extended the allowed startup time from 60 to 120 seconds, but we missed the systemd configuration. Now both the init script and systemd configs have the same timeout.

  • SERVER-166: Set START_TIMEOUT to 120 seconds for sysv init scripts and systemd.

Improvements

Puppet Server now picks up changes to logging levels at runtime, rather than requiring a system restart to detect Logback changes.

  • SERVER-275: Fixed an issue where logback levels weren’t changed unless you restarted Puppet Server.

Puppet Server 1.0.1 (Skipped)

This version number was not released.

Puppet Server 1.0.0

This release is the official “one point oh” version of Puppet Server. In accordance with the Semantic Versioning specification, we’re declaring the existing public API of this version to be the baseline for backwards-incompatible changes, which will trigger another major version number. (No backwards-incompatible changes were introduced between 0.4.0 and this version.)

In addition, this release adds HTTP endpoints to refresh data and CLI tools for working with the JRuby runtime.

Compatibility Note

Puppet Server 1.x works with Puppet 3.7.3 and all subsequent Puppet 3.x versions. (When Puppet 4 is released, we’ll release a new Puppet Server version to support it.)

New Feature: Admin API for Refreshing Environments

This release adds two new HTTP endpoints to speed up deployment of Puppet code changes. Previously, such changes might require a restart of the entire Puppet Server instance, which can be rather slow. These new endpoints allow you to refresh the environment without restarting it.

If you need this feature, you should probably use the environment-cache endpoint, since it’s faster than the jruby-pool endpoint. To use it, you’ll need to get a valid certificate from Puppet’s CA, add that certificate’s name to the puppet-admin -> client-whitelist setting in puppetserver.conf, and use that certificate to do an HTTP DELETE request at the environment-cache endpoint. For more details, see the API docs for environment-cache.

  • SERVER-150: Add functionality to JRuby service to trash instance.
  • SERVER-151: Add an HTTP endpoint to call flush jruby pool function.
  • SERVER-112: Create environment cache entry factory implementation that allows flushing all environments.
  • SERVER-114: Add flush_environment_cache admin endpoint.

New Feature: puppetserver ruby and puppetserver irb Commands

This release adds two new CLI commands: puppetserver ruby and puppetserver irb. These work like the normal ruby and irb commands, except they use Puppet Server’s JRuby environment instead of your operating system’s version of Ruby. This makes it easier to develop and test Ruby code for use with Puppet Server.

New Feature: puppetserver foreground Command

The new puppetserver foreground command will start an instance of Puppet Server in the foreground, which will log directly to the console with higher-than-normal detail.

This behavior is similar to the traditional puppet master --verbose --no-daemonize command, and it’s useful for developing extensions, tracking down problems, and other tasks that are a little outside the day-to-day work of running Puppet.

General Bug Fixes

The service puppetserver start and restart commands will now block until Puppet Server is actually started and ready to work. (Previously, the init script would return with success before Puppet Server was actually online.) This release also fixes bugs that could cause startup to hang or to timeout prematurely, and a subtle settings bug.

  • SERVER-205: wait_for_app functions occasionally fails to read pidfile on debian and hangs indefinitely.
  • SERVER-166: Set START_TIMEOUT to 120 seconds for sysv init scripts and systemd.
  • SERVER-221: Run mode not initialized properly

Performance Improvements

This release improves performance of the certificate status check. Previously, the CRL file was converted to an object once per CSR and signed certificate; as of this release, the object will be reused across checks instead of created for every check.

  • SERVER-137: Compose X509CRL once and reuse for get-certificate-statuses.

All Changes

For a list of all changes in this release, see the following Jira pages:

↑ Back to top