summaryrefslogtreecommitdiff
path: root/roles/openshift_logging_elasticsearch
AgeCommit message (Collapse)Author
2018-02-13Whenever we create a new es node ignore health checks, changing prometheus ↵Eric Wolinetz
pw gen for increased secret idempotency
2018-02-10Fix indentation to make yamllint happyVadim Rutkovsky
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-02-10Verify that requested services have schedulable nodes matching the selectorsVadim Rutkovsky
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-02-09Merge pull request #6712 from vrutkovs/avoid-hardcoding-image-versionOpenShift Merge Robot
Automatic merge from submit-queue. Set default image to openshift_release Previously `v3.7` was hardcoded as a default value, instead `openshift_release` should be used. A new var is introduced - `openshift_template_service_broker_image_tag`, similar to vars for other services. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530183 TODO: * [x] Make sure all images have a variable for image prefix * [x] Figure out if `latest` is a good default for origin images * [ ] Set correct `openshift_image_tag` in CI inventory for tests to pass
2018-02-08Set default image tag to openshift_image_tag for servicesVadim Rutkovsky
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-02-08changed oc to {{ openshift_client_binary }}datarace
2018-02-06Merge pull request #7015 from sdodson/v310Scott Dodson
Initial support for 3.10
2018-02-05Initial support for 3.10Scott Dodson
2018-02-05Swapping container order for es podEric Wolinetz
2018-02-05Adding support for ES 5.x tech preview opt inEric Wolinetz
2018-01-26bug 1537857. Fix retrieving prometheus metricsJeff Cantrill
2018-01-24Only automatically restart if cluster is in yellow or green stateEric Wolinetz
2018-01-16Ensure we are running oc execs against running podsEric Wolinetz
2018-01-11Merge pull request #6670 from nhosoi/allowed_versions2Scott Dodson
Bug 1527178 - installation of logging stack failed: Invalid version s…
2018-01-10Merge pull request #6602 from ewolinetz/es_full_cluster_restartOpenShift Merge Robot
Automatic merge from submit-queue. Adding logic to do a full cluster restart if we are incrementing our … …major versions of ES This will help with the upgrade from 2.x to 5.x for ES, it also fixes something I came across with the handler on 3.7 where it checks the prior deployed version of the ES pod rather than the new one.
2018-01-09Bug 1527178 - installation of logging stack failed: Invalid version ↵Noriko Hosoi
specified for Elasticsearch openshift_logging_{curator,elasicsearch,fluentd,kibana,mux}/vars/main.yml: - adding "3_9" to __allowed_.*_versions - bumping __latest_.*_version to "3_9"
2018-01-08Fix: change import_role to include_roleMichael Gugino
It appears that when one role dynamically imports another, usage of import_role inside the dynamically included role is not possible. If something is included with include_role (dynamic), all tasks therein must also use include_role (dynamic).
2018-01-05Migrate to import_role for static role inclusionScott Dodson
In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
2018-01-05Adding logic to disable and reenable external communication to ES during ↵Eric Wolinetz
full restart
2018-01-03Adding logic to do a full cluster restart if we are incrementing our major ↵Eric Wolinetz
versions of ES
2018-01-02Merge pull request #5894 from ewolinetz/logging_defaults_from_existingOpenShift Merge Robot
Automatic merge from submit-queue. Update logging to use existing cluster deployment for defaults This will allow us to use logging facts to set defaults of specific configurations such as ES index replicas and shard count. The update to logging facts yields us output like: ```json "elasticsearch": { "clusterrolebindings": {}, "configmaps": { "logging-elasticsearch": { "elasticsearch.yml": { "cloud": { "kubernetes": { "namespace": "${NAMESPACE}", "pod_label": "${POD_LABEL}", "pod_port": 9300 } }, "cluster": { "name": "${CLUSTER_NAME}" }, "discovery": { "type": "kubernetes", "zen.minimum_master_nodes": "${NODE_QUORUM}", "zen.ping.multicast.enabled": false }, "gateway": { "expected_nodes": "${RECOVER_EXPECTED_NODES}", "recover_after_nodes": "${NODE_QUORUM}", "recover_after_time": "${RECOVER_AFTER_TIME}" }, "index": { "number_of_replicas": 0, "number_of_shards": 1, "translog": { "flush_threshold_period": "5m", "flush_threshold_size": "256mb" }, "unassigned.node_left.delayed_timeout": "2m" }, "io.fabric8.elasticsearch.authentication.users": [ "system.logging.kibana", "system.logging.fluentd", "system.logging.curator", "system.admin" ], ``` TODO: - [x] Update logging facts to pull out settings from config maps - [x] Move `openshift_sanitize_inventory/library/conditional_set_fact.py` up to repo level - [x] Generate diffs against currently deployed configs and correctly patch in custom changes from customers - [x] Use `conditional_set_fact` to easily set defaults for logging based on logging facts, or falling back to role defaults when not specified in the inventory - [x] Update all components to follow patching configmaps
2018-01-02Updating logging_facts to be able to pull values from config maps yaml ↵Eric Wolinetz
files, use diffs to keep custom changes, white list certain settings when creating diffs
2017-12-27Bug 1527178 - installation of logging stack failed: Invalid version ↵Noriko Hosoi
specified for Elasticsearch openshift_logging_{curator,elasicsearch,fluentd,kibana,mux}/vars/main.yml: - adding "3_8" to __allowed_.*_versions - replacing the value of __latest_.*_version "3_6" with "3_8".
2017-12-21Remove references to deployment_typeMichael Gugino
Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
2017-12-20Remove openshift.common.{is_atomic|is_containerized}Michael Gugino
We set these variables using facts in init, no need to duplicate the logic all around the codebase.
2017-12-18Relocate filter plugins to lib_utilsMichael Gugino
This commit relocates filter_plugings to lib_utils, changes the namespacing to prevent unintended use of older versions that may be present in filter_plugins/ directory on existing installs. Add lib_utils to meta depends for roles Also consolidate some plugins into lib_utils from various other areas. Update rpm spec, obsolete plugin rpms.
2017-12-14Removing config trigger for ES DC, updating to use a handler to rollout ES ↵Eric Wolinetz
at the end of a deployment, allowing for override with variable
2017-12-08Merge pull request #6356 from jcantrill/1519622_disable_revision_historyJeff Cantrill
bug 1519622. Disable rollback of ES DCs
2017-12-06Include Deprecation: Convert to include_tasksRussell Teague
2017-12-05bug 1519622. Disable rollback of ES DCsJeff Cantrill
2017-12-05Fix hosted varsMichael Gugino
Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
2017-11-27dist.iteritems() no longer exists in Python 3.Jan Pazdziora
2017-11-16fix the logging-es-prometheus selectorJeff Cantrill
2017-11-16Merge pull request #6029 from boeboe/masterOpenShift Merge Robot
Automatic merge from submit-queue. logging with static pvc: allow specifying the storage class name See https://github.com/openshift/openshift-ansible/issues/6028 for more info and motivation.
2017-11-09Fixing origin default for es proxyEric Wolinetz
2017-11-07Addressing commentsEric Wolinetz
2017-11-06Updating logging components image defaulting pattern to match ↵Eric Wolinetz
openshift_logging pattern
2017-11-06logging with static pvc: allow specifying the storage class nameBart Van Bos
2017-10-27Merge pull request #5897 from jcantrill/1506073_cpu_request_match_limitOpenShift Merge Robot
Automatic merge from submit-queue. bug 1506073. Lower cpu request for logging when it exceeds limit This PR fixes https://bugzilla.redhat.com/show_bug.cgi?id=1506073 by: * Lowering the CPU request to match the limit when the request is greater then a specified limit I have an open question on if this is an acceptable change of if it makes the outcome unexpected. Should we prefer to exit during the deployment and advise the operator to correct their inventory?
2017-10-27bug 1435144. Remove uneeded upgrade in openshift_logging roleJeff Cantrill
2017-10-27bug 1506073. Lower cpu request for logging when it exceeds limitJeff Cantrill
2017-10-24Merge pull request #5700 from wozniakjan/bz_1452939OpenShift Merge Robot
Automatic merge from submit-queue. Bug 1452939 - change imagePullPolicy in logging and metrics cc: @jcantrill
2017-10-23Merge pull request #5822 from ewolinetz/bz1504191Scott Dodson
Updating to use same image as origin until enterprise image is built
2017-10-23Bug 1452939 - change Logging & Metrics imagePullPolicyJan Wozniak
- all images logging and metrics change their default imagePullPolicy from Always to IfNotPresent
2017-10-20Merge pull request #5748 from portante/fix-cpu-limitsScott Dodson
Use "requests" for CPU resources instead of limits
2017-10-20Merge pull request #5766 from jcantrill/1489498_preserve_replica_countScott Dodson
bug 1489498. preserve replica and shard settings
2017-10-19Updating ocp es proxy image to use openshift_logging_proxy_image_prefix if ↵Eric Wolinetz
specified
2017-10-19Use "requests" for CPU resources instead of limitsPeter Portante
We now use a CPU request to ensure logging infrastructure pods are not capped by default for CPU usage. It is still important to ensure we have a minimum amount of CPU. We keep the use of the variables *_cpu_limit so that the existing behavior is maintained. Note that we don't want to cap an infra pod's CPU usage by default, since we want to be able to use the necessary resources to complete it's tasks. Bug 1501960 (https://bugzilla.redhat.com/show_bug.cgi?id=1501960)
2017-10-17bug 1489498. preserve replica and shard settingsJeff Cantrill
2017-10-16Reverting proxy image version to v1.0.0 to pass CIEric Wolinetz