lp:~vultaire/charm-graylog

Owned by Paul Goins
Get this repository:
git clone https://git.not.enabled/~vultaire/charm-graylog
Only Paul Goins can upload to this repository. If you are Paul Goins please log in for upload directions.

Branches

Name Last Modified Last Commit
lp1956009 2021-12-30 21:21:19 UTC
Reconfigure certificates on upgrade

Author: Paul Goins
Author Date: 2021-12-30 21:21:19 UTC

Reconfigure certificates on upgrade

snap-upgrade-gate-doc 2021-12-30 20:35:11 UTC
Updated README re: snap upgrade procedure

Author: Paul Goins
Author Date: 2021-12-30 20:35:11 UTC

Updated README re: snap upgrade procedure

gl4-support 2021-12-30 19:21:16 UTC
Allowing use of 4/* channels

Author: Paul Goins
Author Date: 2021-12-29 20:32:04 UTC

Allowing use of 4/* channels

pipelines-2021 2021-08-26 21:52:35 UTC
Re-linting

Author: Paul Goins
Author Date: 2021-08-26 21:52:35 UTC

Re-linting

handle-local-graylog-snap 2020-08-14 23:52:37 UTC
Added test to exercise the local snap install case.

Author: Paul Goins
Author Date: 2020-08-14 23:52:37 UTC

Added test to exercise the local snap install case.

lint-20.08-addendum 2020-08-13 19:33:55 UTC
Removed file-level noqa exclusions and a no-op test.

Author: Paul Goins
Author Date: 2020-08-13 19:33:55 UTC

Removed file-level noqa exclusions and a no-op test.

protected-upgrades 2020-08-07 20:48:49 UTC
Fix per Alvaro Aluria: add retries to test

Author: Paul Goins
Author Date: 2020-08-07 20:48:49 UTC

Fix per Alvaro Aluria: add retries to test

upgrade-tests-and-reworks-20200724 2020-07-27 17:01:26 UTC
Oops; rename problem. Fixed.

Author: Paul Goins
Author Date: 2020-07-27 17:01:26 UTC

Oops; rename problem. Fixed.

pipelines-20200724 2020-07-25 05:49:06 UTC
Added test of pipeline parsing

Author: Paul Goins
Author Date: 2020-02-29 07:26:23 UTC

Added test of pipeline parsing

es-and-mongo-version-checks-enabled-v2 2020-07-25 04:07:09 UTC
Handle case where version info is not yet available

Author: Paul Goins
Author Date: 2019-09-23 20:14:19 UTC

Handle case where version info is not yet available

es-and-mongo-version-checks-disabled-v2 2020-07-25 04:05:24 UTC
Fixed a comment

Author: Paul Goins
Author Date: 2020-02-25 23:56:03 UTC

Fixed a comment

es-and-mongo-version-checks-enabled 2020-07-25 03:39:51 UTC
Handle case where version info is not yet available

Author: Paul Goins
Author Date: 2019-09-23 20:14:19 UTC

Handle case where version info is not yet available

es-and-mongo-version-checks-disabled 2020-07-25 03:37:45 UTC
Fixed a comment

Author: Paul Goins
Author Date: 2020-02-25 23:56:03 UTC

Fixed a comment

gl3-upgrade-path 2020-06-12 17:51:28 UTC
Implemented snap channel change protections

Author: Paul Goins
Author Date: 2020-06-12 16:23:37 UTC

Implemented snap channel change protections

lp1879363 2020-05-18 17:45:07 UTC
Handle REST API not being up yet

Author: Paul Goins
Author Date: 2020-05-18 17:45:07 UTC

Handle REST API not being up yet

configure_graylog_api() does a REST API check, and should only be
called after ES and MongoDB relations are both handled, but may be
called before the REST API has fully come up. We should allow for
this in a clean way.

Addresses lp#1879363.

pipelines 2020-02-29 07:26:23 UTC
Added test of pipeline parsing

Author: Paul Goins
Author Date: 2020-02-29 07:26:23 UTC

Added test of pipeline parsing

rest-api-lifechecks 2020-02-24 04:54:15 UTC
Renamed a constant

Author: Paul Goins
Author Date: 2020-02-24 04:54:15 UTC

Renamed a constant

charm-upgrade-test 2020-02-14 23:46:55 UTC
Graylog v3 tweaks

Author: Paul Goins
Author Date: 2020-02-14 23:46:55 UTC

Graylog v3 tweaks

* Plugin set available by default is different.
* "file" is no longer valid; need to use "filebeat_source" or
  "filebeat_log_file_path".

gl-2-to-3-upgrade-tests 2020-02-14 23:46:55 UTC
Graylog v3 tweaks

Author: Paul Goins
Author Date: 2020-02-14 23:46:55 UTC

Graylog v3 tweaks

* Plugin set available by default is different.
* "file" is no longer valid; need to use "filebeat_source" or
  "filebeat_log_file_path".

es-and-mongo-version-checks 2020-02-14 17:48:13 UTC
Only import from charmhelpers when running in a charm env

Author: Paul Goins
Author Date: 2020-02-14 04:28:39 UTC

Only import from charmhelpers when running in a charm env

This fixes version_check.py specifically. This does copy logic from
api.py. In a later MR this will be refactored to remove the
duplication.

makefile-reworks 2020-02-14 00:06:10 UTC
Replacing $JUJU_REPOSITORY with $CHARM_BUILD_DIR

Author: Paul Goins
Author Date: 2020-02-14 00:05:49 UTC

Replacing $JUJU_REPOSITORY with $CHARM_BUILD_DIR

$CHARM_BUILD_DIR is the non-deprecated equivalent to
$JUJU_REPOSITORY/builds. This changes the last few $JUJU_REPOSITORY
references.

update-dependency-conditions 2020-02-13 18:33:30 UTC
Corrected mongodb/elasticsearch dependency checks

Author: Paul Goins
Author Date: 2019-09-19 16:22:14 UTC

Corrected mongodb/elasticsearch dependency checks

configure_graylog_api() was depending on ElasticSearch and MongoDB
simply being available, but it actually needs GrayLog to be properly
set up to work with ES and MongoDB prior to calling handlers which
require the GrayLog REST API. This patch addresses this by ensuring
any needed information is pulled from the ES and MongoDB relations
prior to proceeding.

Note regarding the names: I did not want to potentially collide with
flags which may be set in the future by the interface layers, thus I
did not use elasticsearch.configured nor mongodb.configured. I'm open
to different names for these flags, but would suggest we keep this
point in mind if we do change them.

service-restart-reworks 2020-02-13 17:37:32 UTC
Re-run API configuration on Graylog restart

Author: Paul Goins
Author Date: 2020-02-13 17:26:05 UTC

Re-run API configuration on Graylog restart

Config file changes don't only happen in response to config.changed
events; they also happen on ES- and MongoDB-related events and on
leadership events. Thus, clearing the graylog_api.configured flag
only during one of these code paths may lead to problems. For
example, if ES or MongoDB are not immediately available and become
available later on, their config changes may not properly trigger a
re-run of the config handlers which run against the Graylog API.

The fix is simple: we should clear graylog_api.configured any time we
need to restart Graylog.

Additionally, I removed the remove_state('graylog_api.configured')
call in configure_graylog() since any config file change will trigger
a restart, thus also clearing this flag.

graylog-client-refactoring 2020-02-12 22:16:29 UTC
Extracted function for default GraylogApi client

Author: Paul Goins
Author Date: 2019-09-13 22:08:35 UTC

Extracted function for default GraylogApi client

adding-zaza-tests 2020-02-11 05:19:48 UTC
Re-added bionic-ha.yaml, but noted as not yet used

Author: Paul Goins
Author Date: 2020-02-11 05:18:04 UTC

Re-added bionic-ha.yaml, but noted as not yet used

multi-version-with-fixes 2019-09-28 05:41:22 UTC
Fixed mongodb connection handler for handling version field

Author: Paul Goins
Author Date: 2019-09-28 05:41:22 UTC

Fixed mongodb connection handler for handling version field

Since the version field may not be tracked by previous versions of the
charm, we need to ensure that those versions are stored prior to any
early exit of the handler.

lp1843864 2019-09-13 05:03:24 UTC
Fix for set_conf() corner case of value=""

Author: Paul Goins
Author Date: 2019-09-13 05:03:24 UTC

Fix for set_conf() corner case of value=""

When reading lines in from the config file, we rstrip() any whitespace
off the end. However, for our comparison line, we don't do this.

In the case of a value of "", this means the comparison line will end
in a whitespace character, thus the code will always think the config
has changed and will always trigger a service restart when this code
is exercised.

Thus: let's rstrip() the comparison line as well.

graylog-3-api-updates 2019-09-04 22:03:01 UTC
Switch APIs based on Graylog version

Author: Paul Goins
Author Date: 2019-09-04 22:03:01 UTC

Switch APIs based on Graylog version

In addition to merging two distinct services on separate ports into one,
Graylog 3 also renamed a few APIs, necessitating us to detect the
Graylog version and query accordingly based on the version.

snap-install-fix 2019-09-04 21:44:21 UTC
Ensure install_graylog() called after snap layer install()

Author: Paul Goins
Author Date: 2019-09-04 21:44:21 UTC

Ensure install_graylog() called after snap layer install()

Since there is no promised implicit order in which charm handlers are
called, we need to ensure that the snap layer runs first, both to
install the needed core snap and also to give that layer an opportunity
to install the snap via a resource first.

graylog3 2019-08-01 15:55:03 UTC
Converted to support Graylog 3.

Author: Paul Goins
Author Date: 2019-08-01 06:28:28 UTC

Converted to support Graylog 3.

vultaire-docfix 2019-02-13 17:16:39 UTC
Remove graylog/elasticsearch version warning

Author: Paul Goins
Author Date: 2019-02-13 17:16:39 UTC

Remove graylog/elasticsearch version warning

Graylog's snap now bundles version 2.3 which is compatible with
elasticsearch 5.x. This warning applied to graylog 2.2, but should
be removed since it no longer applies.

DocImpact
Closes-Bug: #1815783

131 of 31 results
This repository contains Public information 
Everyone can see this information.

Subscribers