1. 10 Oct, 2016 2 commits
    • Wyatt Alt's avatar
      (PDB-3071) Log a warning if retired server/port config items are in use. · c95db47b
      Wyatt Alt authored
      It's relatively common for users to miss the retirement of server/port
      when upgrading from versions of PDB that supported it. This has the
      effect of defaulting their server/port to puppetdb:8081, producing agent
      run failures that log a puppetdb hostname different from what they
      believe they've configured.
      
      This patch logs warnings when server and port are detected in the config
      file. I think it would be preferable to remove the defaulting behavior
      and throw an error when server_urls is not present, but I don't have a
      sense of whether anyone relies on the defaulting today.
      c95db47b
    • Wyatt Alt's avatar
      Merge pull request #2087 from... · b6db5df6
      Wyatt Alt authored
      Merge pull request #2087 from camlow325/task/master/PDB-3077-integrate-service-reload-and-logback-file-size-rotation
      
      (PDB-3077) Add service reload and logback size-based rotation
      b6db5df6
  2. 07 Oct, 2016 3 commits
  3. 06 Oct, 2016 2 commits
    • Jeremy Barlow's avatar
      (PDB-3077) Bump TK and lein-ezbake deps · 3d194668
      Jeremy Barlow authored
      This commit bumps the following dependencies in order to utilize service
      reload functionality from ezbake package builds:
      
      - Trapperkeeper 1.4.1 -> 1.5.1
      - lein-ezbake 0.5.1 -> 1.0.0
      3d194668
    • Ken Barber's avatar
      Merge branch 'stable' · 26c2a5df
      Ken Barber authored
      * stable:
        (maint) correct mistake in configure.markdown
        (maint) update configure.markdown to mention effect os setting ttls to 0s
      26c2a5df
  4. 04 Oct, 2016 3 commits
  5. 03 Oct, 2016 6 commits
  6. 30 Sep, 2016 10 commits
    • Ryan Senior's avatar
      Merge pull request #2067 from aperiodic/pdb-2982-shorter-cmd-names · 5b696c4f
      Ryan Senior authored
      (PDB-2982) Shorter Command Names in Queue Metadata
      5b696c4f
    • Wyatt Alt's avatar
      (maint) bump version to 4.2.4-SNAPSHOT · 53e55ea4
      Wyatt Alt authored
      53e55ea4
    • Wyatt Alt's avatar
      Merge pull request #2078 from kbrezina/pdb-3073_queryable_corrective_change · 18c22357
      Wyatt Alt authored
      (PDB-3073) Add support for querying resource events by corrective_change flag
      18c22357
    • Dan Lidral-Porter's avatar
      (maint) Remove suffix check in dlo/metrics-for-dir · 44f759f6
      Dan Lidral-Porter authored
      Remove a redundant check for a ".json" suffix on the filename from
      `puppetdb.command.dlo/metrics-for-dir`, since the metadata parser also
      performs this check, and can handle random strings that aren't the form
      it expects, so there's no need to do this pre-screening.
      44f759f6
    • Dan Lidral-Porter's avatar
      (PDB-2982) Clarify args of embeddable-certname. · d8971ab2
      Dan Lidral-Porter authored
      Clarify that `puppetdb.queue/embeddable-certname` and the two
      functions it calls to determine the certname length all take the
      metadata command name, rather than the command name that the rest of
      PuppetDB uses.
      d8971ab2
    • Dan Lidral-Porter's avatar
      (PDB-2982) Abbrev command names in queue metadata · 6eb6e24d
      Dan Lidral-Porter authored
      Replace `puppetdb.queue/metadata-command-names` with a map called
      `metadata-command->puppetdb-comand` that defines the mapping between
      the command names that can appear in the queue metadata that forms the
      message filenames and the command names used by the rest of PuppetDB.
      The inverse mapping is dynamically constructed under the var
      `puppetdb-command->metadata-command`.
      
      Replace `puppetdb.queue/metadata-str` with `metadata-serializer`, which
      takes a map from PuppetDB command names to the metadata command names
      and returns a function with the same signature as `metadata-str`; viz.
      taking all the queue metadata components and returning a metadata
      string. The only differences are that the returned function looks up the
      command name it's given in the translation map and puts the metadata
      name it finds there in the metadata string, and that if this lookup
      fails then an IllegalArgumentException is thrown.
      
      Bind a metadata serializer with the default translation map of
      `queue/puppetdb-command->metadata-command` to `queue/serialize-metadata`
      
      Change `metadata-parser` to take a translation map rather than
      a sequential collection comand names, have the returned function perform
      the inverse mapping from the metadata command name back to the PuppetDB
      command name, and to add a docstring to `metadata-parser`.
      
      Add `parse-metadata` and `serialize-metadata` vars to the
      `puppetdb.command.dlo` namespace that add an "unknown" -> "unknown"
      entry to both translation maps, since the DLO uses that command name as
      a fallback when the message is so garbled that the command name cannot
      be recovered. Consequently, change all invocations of
      `queue/metadata-str` in the DLO to call `dlo/serialize-metadata`, and
      likewise `queue/metadata-parser` to `dlo/parse-metadata`.
      
      Change `puppetdb.command.dlo/discard-cmdref` to create its own queue
      metadat string and use `stock/entry` directly in order to create
      a stockpile entry for the discarded cmdref, rather than using
      `queue/cmdref->entry`, as the latter creates a metadata string using
      only the default command names & metadata abbreviations, so it will now
      throw an error if the discarded cmdref's command is "unknown".
      
      Update tests to align with the new function names and arguments, as well
      as the abbreviated command names in queue metadata strings.
      6eb6e24d
    • Wyatt Alt's avatar
      (maint) update project.clj version to 4.2.3 · 9fe3f981
      Wyatt Alt authored
      9fe3f981
    • Wyatt Alt's avatar
      (maint) update release notes for 4.2.3 · 2429139c
      Wyatt Alt authored
      2429139c
    • Ryan Senior's avatar
      (PDB-2948) Deprecate ActiveMQ Config · ead9c83c
      Ryan Senior authored
      This commit includes warnings and deprecation notes for the now obsolete
      ActiveMQ config items. The config params no longer apply to PuppetDB
      when running with Stockpile.
      ead9c83c
    • Karel Březina's avatar
  7. 29 Sep, 2016 3 commits
  8. 28 Sep, 2016 5 commits
  9. 27 Sep, 2016 1 commit
    • Dan Lidral-Porter's avatar
      (PDB-2983) Hide rejected execution exceptions. · 283a7657
      Dan Lidral-Porter authored
      Because PuppetDB's command-processing threadpools are unbounded, the
      only reason that they would throw a RejectedExecutionException is
      because they're shutting down or have shut down, which means that
      PuppetDB is shutting down. Commands that are rejected are retried when
      PuppetDB next starts up, so there's no action the user needs to take in
      order to prevent loss of data. Therefore, there's no reason to show the
      user the exceptions that arise when the threadpool throws
      a RejectedExecutionException. To that end, swallow slingshot exceptions
      with kind `:puppetlabs.puppetdb.threadpool/rejected` in the thread
      started by `puppetdb.mq-listener/message-listener-service`'s TK start
      method.
      283a7657
  10. 26 Sep, 2016 5 commits
    • Wyatt Alt's avatar
      Merge pull request #2072 from puppetlabs/theshanx-patch-1 · dfaf4153
      Wyatt Alt authored
      Add internal_list key to MAINTAINERS
      dfaf4153
    • theshanx's avatar
      Add internal_list key to MAINTAINERS · fe627725
      theshanx authored
      This change adds a reference to the Google group the maintainers are associated with.
      fe627725
    • aperiodic's avatar
      (PDB-3039) DLO filenames won't exceed 255 bytes. · 4d1c4b91
      aperiodic authored
      Change the *-filename functions in `puppetlabs.command.dlo` to truncate
      just the metadata portions of the filenames if they would cause the
      filenames to exceed 255 bytes in length. Truncating the metadata portion
      is acceptable since all these filenames contain stockpile IDs, which
      ensures they'll be unique.
      
      Move the `parse-cmd-filename` function, which has to agree with the DLO
      on the format of its discarded message filenames, from puppetdb.queue
      over to the puppetdb.command.dlo namespace, to make it easier to see the
      need for this concordance and to achieve it.
      4d1c4b91
    • Dan Lidral-Porter's avatar
      (PDB-3039) Escape and truncate certnames as needed · 52a91560
      Dan Lidral-Porter authored
      Change `puppetdb.queue/metadata-str` to replace illegal filename
      characters and underscores in the certname it's given, truncate the
      certname if its length would cause the metadata string to exceed 255
      characters, and add the SHA1 hash of the original certname if the
      certname in the metadata string differs in any way (via character
      replacement or truncation) from the original certname.
      
      Add tests of the new sanitization & truncation behavior of
      `puppetdb.queue/metadata-str`.
      52a91560
    • aperiodic's avatar
      (PDB-3039) Add some UTF-8 related utilities. · 20f01480
      aperiodic authored
      Add `utf8-bytes`, `utf8-length`, and `utf8-truncate` functions to the
      utils namespace.
      20f01480