summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_elasticsearch
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5894 from ewolinetz/logging_defaults_from_existingOpenShift Merge Robot2018-01-021-17/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Updating logging_facts to be able to pull values from config maps yaml ↵Eric Wolinetz2018-01-021-17/+15
| | | | | | | | files, use diffs to keep custom changes, white list certain settings when creating diffs
* | Bug 1527178 - installation of logging stack failed: Invalid version ↵Noriko Hosoi2017-12-271-2/+2
|/ | | | | | | | 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".
* Remove references to deployment_typeMichael Gugino2017-12-211-2/+2
| | | | | | | Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-1/+1
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-183-2/+3
| | | | | | | | | | | | | | 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.
* Removing config trigger for ES DC, updating to use a handler to rollout ES ↵Eric Wolinetz2017-12-146-0/+107
| | | | at the end of a deployment, allowing for override with variable
* Merge pull request #6356 from jcantrill/1519622_disable_revision_historyJeff Cantrill2017-12-081-0/+1
|\ | | | | bug 1519622. Disable rollback of ES DCs
| * bug 1519622. Disable rollback of ES DCsJeff Cantrill2017-12-051-0/+1
| |
* | Include Deprecation: Convert to include_tasksRussell Teague2017-12-061-1/+1
| |
* | Fix hosted varsMichael Gugino2017-12-051-0/+1
|/ | | | | | Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
* dist.iteritems() no longer exists in Python 3.Jan Pazdziora2017-11-273-4/+4
|
* fix the logging-es-prometheus selectorJeff Cantrill2017-11-161-1/+1
|
* Merge pull request #6029 from boeboe/masterOpenShift Merge Robot2017-11-161-0/+1
|\ | | | | | | | | | | | | 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.
| * logging with static pvc: allow specifying the storage class nameBart Van Bos2017-11-061-0/+1
| |
* | Fixing origin default for es proxyEric Wolinetz2017-11-091-1/+1
| |
* | Addressing commentsEric Wolinetz2017-11-072-3/+3
| |
* | Updating logging components image defaulting pattern to match ↵Eric Wolinetz2017-11-065-14/+18
|/ | | | openshift_logging pattern
* Merge pull request #5897 from jcantrill/1506073_cpu_request_match_limitOpenShift Merge Robot2017-10-271-1/+1
|\ | | | | | | | | | | | | | | | | | | 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?
| * bug 1506073. Lower cpu request for logging when it exceeds limitJeff Cantrill2017-10-271-1/+1
| |
* | bug 1435144. Remove uneeded upgrade in openshift_logging roleJeff Cantrill2017-10-271-79/+0
|/
* Merge pull request #5700 from wozniakjan/bz_1452939OpenShift Merge Robot2017-10-241-2/+2
|\ | | | | | | | | | | | | Automatic merge from submit-queue. Bug 1452939 - change imagePullPolicy in logging and metrics cc: @jcantrill
| * Bug 1452939 - change Logging & Metrics imagePullPolicyJan Wozniak2017-10-231-2/+2
| | | | | | | | | | - all images logging and metrics change their default imagePullPolicy from Always to IfNotPresent
* | Merge pull request #5822 from ewolinetz/bz1504191Scott Dodson2017-10-231-1/+1
|\ \ | |/ |/| Updating to use same image as origin until enterprise image is built
| * Updating ocp es proxy image to use openshift_logging_proxy_image_prefix if ↵Eric Wolinetz2017-10-191-1/+1
| | | | | | | | specified
* | Merge pull request #5748 from portante/fix-cpu-limitsScott Dodson2017-10-203-6/+9
|\ \ | | | | | | Use "requests" for CPU resources instead of limits
| * | Use "requests" for CPU resources instead of limitsPeter Portante2017-10-193-6/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Merge pull request #5766 from jcantrill/1489498_preserve_replica_countScott Dodson2017-10-201-2/+6
|\ \ | |/ |/| bug 1489498. preserve replica and shard settings
| * bug 1489498. preserve replica and shard settingsJeff Cantrill2017-10-171-2/+6
| |
* | Reverting proxy image version to v1.0.0 to pass CIEric Wolinetz2017-10-161-1/+1
| |
* | Making travis happyEric Wolinetz2017-10-161-83/+83
| |
* | Updating pattern for elasticsearch_proxy imagesEric Wolinetz2017-10-134-3/+17
| |
* | Updating ES proxy image prefix and version to match other componentsEric Wolinetz2017-10-133-4/+6
|/
* Merge pull request #5637 from wozniakjan/1496271_fixOpenShift Merge Robot2017-10-053-2/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Bug 1496271 - Perserve SCC for ES local persistent storage ES can be modified to use node local persistent storage. This requires changing SCC and is described in docs: https://docs.openshift.com/container-platform/3.6/install_config/aggregate_logging.html During an upgrade, SCC defined by the user is ignored. This fix fetches SCC user defined as a fact and adds it to the ES DC which is later used. Also includes cherrypicked fix for - Bug 1482661 - Preserve ES dc nodeSelector and supplementalGroups cc @jcantrill
| * Bug 1496271 - Perserve SCC for ES local persistent storageJeff Cantrill2017-10-032-0/+4
| | | | | | | | | | | | | | | | | | | | ES can be modified to use node local persistent storage. This requires changing SCC and is described in docs: https://docs.openshift.com/container-platform/3.6/install_config/aggregate_logging.html During an upgrade, SCC defined by the user is ignored. This fix fetches SCC user defined as a fact and adds it to the ES DC which is later used.
| * bug 1482661. Preserve ES dc nodeSelector and supplementalGroupsJeff Cantrill2017-09-293-2/+5
| | | | | | | | (cherry picked from commit 601e35cbf4410972c7fa0a1d3d5c6327b82353ac)
* | Merge pull request #5564 from jcantrill/es_promOpenShift Merge Robot2017-10-054-2/+138
|\ \ | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Add logging es prometheus endpoint This PR adds changes to add a prometheus endpoint to the logging elasticsearch pod
| * | Add logging es prometheus endpointJeff Cantrill2017-10-034-2/+138
| |/
* | logging: honor openshift_logging_es_cpu_limitJan Wozniak2017-10-021-1/+1
|/ | | | | | | | | | | | | | | PR https://github.com/openshift/openshift-ansible/pull/3509 has removed any usage of `openshift_logging_es_cpu_limit`. Currently, the `openshift_logging_elasticsearch_cpu_limit` is either default '1000m' or derived from `openshift_logging_es_ops_cpu_limit` but if user sets the `openshift_logging_es_cpu_limit` in the inventory as documented, its value is ignored. This PR fixes the issue by trying to set openshift_logging_elasticsearch_cpu_limit=openshift_logging_es_cpu_limit And including the role as -ops overrides this setting.
* Merge pull request #5289 from jcantrill/1487573_fix_allowed_es_versionOpenShift Bot2017-09-081-2/+2
|\ | | | | Merged by openshift-bot
| * bug 1487573. Bump the allowed ES versionsJeff Cantrill2017-09-011-2/+2
| |
* | Merge pull request #5209 from wozniakjan/logging_es_probeOpenShift Bot2017-09-072-1/+15
|\ \ | | | | | | Merged by openshift-bot
| * | elasticsearch: reintroduce readiness probeJan Wozniak2017-08-292-1/+15
| | |
* | | logging set memory request to limitJeff Cantrill2017-08-301-1/+1
| |/ |/|
* | Revert "logging set memory request to limit"Scott Dodson2017-08-291-1/+1
| |
* | Merge pull request #5119 from jcantrill/logging_memory_same_as_limitScott Dodson2017-08-291-1/+1
|\ \ | | | | | | logging set memory request to limit
| * | logging set memory request to limitJeff Cantrill2017-08-231-1/+1
| | |
* | | Merge pull request #5184 from jcantrill/bz1480878_default_logging_pvc_sizeScott Dodson2017-08-291-2/+2
|\ \ \ | | | | | | | | bug 1480878. Default pvc for logging
| * | | bug 1480878. Default pvc for loggingJeff Cantrill2017-08-231-2/+2
| | |/ | |/|
* | | Merge pull request #5044 from wozniakjan/logging_role_based_image_versionsOpenShift Bot2017-08-252-3/+3
|\ \ \ | |/ / |/| | Merged by openshift-bot