Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish things up for release #402

Closed
wants to merge 16 commits into from
Closed

Polish things up for release #402

wants to merge 16 commits into from

Conversation

jordansissel
Copy link
Contributor

  • make logstash-forwarder now is agnostic as to the parent directory name for folks who don't git clone normally.
  • Added sysv init script (generated by pleaserun) for both rpm and deb packages.
  • Set TLS min version to 1.0 to avoid problems like POODLE. This is also recommended by PCI SSC as of Feb 13 2015.
  • Fixed up the rspec suite to work well again.

I tested this by hand on CentOS 7 and Ubuntu 14.04:

  • Verified lsf only connects to TLS 1.0, 1.1, and 1.2 servers. SSLv3 is rejected by lsf.
  • go test passes
  • rspec passes
  • Verified rpm and deb create logstash-forwarder user
  • Verified init script works
  • Verified logs go to /var/log/logstash-forwarder/...
  • Verified state is stored in /var/lib/logstash-forwarder/
  • Verified it can send logs successfully to a Logstash built from the 1.5 branch (1.5.0 rc1 candidate)
  • Installing and removing the package is successful without error messages.

Runs an Ubuntu 14.04 docker image and installs the package and runs
lsf pointed at our local lumberjack server.

This test is currently breaking because we aren't generating an
ssl certificate with an IP SAN.
Still trying to figure out how to reliably generate an ssl certificate
that has an IP SAN.

Might give up and use /etc/hosts instead.
`go build` by default compiles the main package into a binary named
the same as the current directory. Sometimes folks do things to
cause this directory to not be named "logstash-forwarder"
(for example, as reported in #388).

This change makes all `go build` documentation/invocations force the
output binary name to be "logstash-forwarder" regardless of the
parent directory name.
This allows tests to run under JRuby
This should solve this error that occurs during deb removal:

    update-rc.d: /etc/init.d/logstash-forwarder exists during rc.d purge (use -f to force)
* Now logs to /var/log/logstash-forwarder/...
* Now runs in /var/lib/logstash-forwarder/...
I would do this in the `/etc/init.d/logstash-forwarder start` output,
but I'm pretty sure systems like puppet/chef/etc rely on specific
confines of the output of init scripts, so there's probably nothing we
can output there. I'd love to know if this isn't true.
@suyograo
Copy link

suyograo commented Mar 3, 2015

Testing locally..

@elasticsearch-bot
Copy link

Merged sucessfully into master!

jordansissel added a commit that referenced this pull request Mar 4, 2015
jordansissel added a commit that referenced this pull request Mar 4, 2015
Runs an Ubuntu 14.04 docker image and installs the package and runs
lsf pointed at our local lumberjack server.

This test is currently breaking because we aren't generating an
ssl certificate with an IP SAN.

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
Still trying to figure out how to reliably generate an ssl certificate
that has an IP SAN.

Might give up and use /etc/hosts instead.

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
`go build` by default compiles the main package into a binary named
the same as the current directory. Sometimes folks do things to
cause this directory to not be named "logstash-forwarder"
(for example, as reported in #388).

This change makes all `go build` documentation/invocations force the
output binary name to be "logstash-forwarder" regardless of the
parent directory name.

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
jordansissel added a commit that referenced this pull request Mar 4, 2015
This allows tests to run under JRuby

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
jordansissel added a commit that referenced this pull request Mar 4, 2015
This should solve this error that occurs during deb removal:

    update-rc.d: /etc/init.d/logstash-forwarder exists during rc.d purge (use -f to force)

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
jordansissel added a commit that referenced this pull request Mar 4, 2015
* Now logs to /var/log/logstash-forwarder/...
* Now runs in /var/lib/logstash-forwarder/...

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
I would do this in the `/etc/init.d/logstash-forwarder start` output,
but I'm pretty sure systems like puppet/chef/etc rely on specific
confines of the output of init scripts, so there's probably nothing we
can output there. I'd love to know if this isn't true.

Fixes #402
jordansissel added a commit that referenced this pull request Mar 4, 2015
Attempt to satisfy #400

Fixes #402
ph pushed a commit to elastic/ruby-lumberjack that referenced this pull request May 7, 2015
ph pushed a commit to elastic/ruby-lumberjack that referenced this pull request May 7, 2015
Runs an Ubuntu 14.04 docker image and installs the package and runs
lsf pointed at our local lumberjack server.

This test is currently breaking because we aren't generating an
ssl certificate with an IP SAN.

Fixes elastic/logstash-forwarder#402
ph pushed a commit to elastic/ruby-lumberjack that referenced this pull request May 7, 2015
Still trying to figure out how to reliably generate an ssl certificate
that has an IP SAN.

Might give up and use /etc/hosts instead.

Fixes elastic/logstash-forwarder#402
ph pushed a commit to elastic/ruby-lumberjack that referenced this pull request May 7, 2015
ph pushed a commit to elastic/ruby-lumberjack that referenced this pull request May 7, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
Runs an Ubuntu 14.04 docker image and installs the package and runs
lsf pointed at our local lumberjack server.

This test is currently breaking because we aren't generating an
ssl certificate with an IP SAN.

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
Still trying to figure out how to reliably generate an ssl certificate
that has an IP SAN.

Might give up and use /etc/hosts instead.

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
`go build` by default compiles the main package into a binary named
the same as the current directory. Sometimes folks do things to
cause this directory to not be named "logstash-forwarder"
(for example, as reported in elastic#388).

This change makes all `go build` documentation/invocations force the
output binary name to be "logstash-forwarder" regardless of the
parent directory name.

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
This allows tests to run under JRuby

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
This should solve this error that occurs during deb removal:

    update-rc.d: /etc/init.d/logstash-forwarder exists during rc.d purge (use -f to force)

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
* Now logs to /var/log/logstash-forwarder/...
* Now runs in /var/lib/logstash-forwarder/...

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
I would do this in the `/etc/init.d/logstash-forwarder start` output,
but I'm pretty sure systems like puppet/chef/etc rely on specific
confines of the output of init scripts, so there's probably nothing we
can output there. I'd love to know if this isn't true.

Fixes elastic#402
justmara pushed a commit to justmara/logstash-forwarder that referenced this pull request May 28, 2015
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.

3 participants