This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Get OpenShift specific information | |
hosts: masters[0] | |
sudo: yes | |
tasks: | |
- name: Get OpenShift information from the first master | |
import_role: | |
name: openshift_logging_rsyslog | |
tasks_from: main.yaml | |
when: rsyslog__enabled|bool and rsyslog__viaq|bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'elasticsearch' | |
require 'excon' | |
class ESConnTester | |
def initialize(host='logging-es', port=9200) | |
@host = host | |
@port = port | |
@scheme = 'https' | |
@client_key = '/etc/fluent/keys/key' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c ' | |
import sys,yaml | |
with open("logging.yml") as file: | |
c = yaml.load(file) | |
for appender in ["file", "deprecation_log_file", "index_search_slow_log_file", "index_indexing_slow_log_file"]: | |
if f = c["appender"][appender]: | |
f = c["type"] = "io.openshift.log4jextras.appender.DailyRollingFileAppender" | |
f["maxBackupIndex"] = sys.argv[1] | |
f["datePattern"] = sys.argv[2] | |
f["append"] = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ verify-loader | |
interval read rate: 0.957 MB/sec, 979.358/sec (ignored 0.000 MB/sec, 0.287/sec); overall read rate: 0.957 MB/sec 979.358/sec (ignored 0.000 MB/sec, 0.287/sec) | |
--- verify-loader | |
0b1c4ac78b204812a9cea96f7d2c388b: 1519245646.35s ( 3.75s) 1207.165 1207.165 10239 8768 0 0 | |
+++ verify-loader | |
interval read rate: 23.739 MB/sec, 24294.603/sec (ignored 0.000 MB/sec, 0.000/sec); overall read rate: 1.840 MB/sec 1883.156/sec (ignored 0.000 MB/sec, 0.276/sec) | |
--- verify-loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"docker": { | |
"container_id": "883be7c284ab6f2154b01d18ae281acde26a3b890c22166f53260f95e6b67625" | |
}, | |
"kubernetes": { | |
"container_name": "webconsole", | |
"namespace_name": "openshift-web-console", | |
"pod_name": "webconsole-6668f9fd47-bppt2", | |
"pod_id": "36167d54-05eb-11e8-9f6e-0edd975df7d8", | |
"labels": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[openshift/origin-logging-elasticsearch] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: Missing: | |
[openshift/origin-logging-elasticsearch] [ERROR] ---------- | |
[openshift/origin-logging-elasticsearch] [ERROR] 1) io.fabric8.elasticsearch:openshift-elasticsearch-plugin:jar:2.4.4.20 | |
[openshift/origin-logging-elasticsearch] [ERROR] | |
[openshift/origin-logging-elasticsearch] [ERROR] Try downloading the file manually from the project website. | |
[openshift/origin-logging-elasticsearch] [ERROR] | |
[openshift/origin-logging-elasticsearch] [ERROR] Then, install it using the command: | |
[openshift/origin-logging-elasticsearch] [ERROR] mvn install:install-file -DgroupId=io.fabric8.elasticsearch -DartifactId=openshift-elasticsearch-plugin -Dversion=2.4.4.20 -Dpackaging=jar -Dfile=/path/to/file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/oshift-oct-new-dev.sh b/oshift-oct-new-dev.sh | |
index a37cded..ba1640c 100755 | |
--- a/oshift-oct-new-dev.sh | |
+++ b/oshift-oct-new-dev.sh | |
@@ -56,7 +56,7 @@ if [ ! -d .venv ] ; then | |
fi | |
PS1=unused | |
source .venv/bin/activate | |
-NO_SKIP=1 | |
+#NO_SKIP=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add loggingPublicURL so the OpenShift UI Console will include a link for Kibana | |
# this part stolen from util.sh configure_os_server() | |
cp ${SERVER_CONFIG_DIR}/master/master-config.yaml ${SERVER_CONFIG_DIR}/master/master-config.orig.yaml | |
openshift ex config patch ${SERVER_CONFIG_DIR}/master/master-config.orig.yaml \ | |
--patch="{\"assetConfig\": {\"loggingPublicURL\": \"https://${KIBANA_HOST}\"}}" > \ | |
${SERVER_CONFIG_DIR}/master/master-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
working version - current openshift-ansible master: | |
[2017-05-05 18:40:23,866][INFO ][node ] [Lurking Unknown] initialized | |
[2017-05-05 18:40:23,867][INFO ][node ] [Lurking Unknown] starting ... | |
[2017-05-05 18:40:23,997][INFO ][discovery ] [Lurking Unknown] logging-es/0z187lAmQJeRtwt8_l_IYw | |
.....[2017-05-05 18:40:28,489][INFO ][cluster.service ] [Lurking Unknown] new_master {Lurking Unknown}{0z187lAmQJeRtwt8_l_IYw}{172.17.0.3}{172.17.0.3:9300}{master=true}, reason: zen-disco-join(elected_as_master, [0] joins received) | |
[2017-05-05 18:40:28,703][INFO ][http ] [Lurking Unknown] publish_address {172.17.0.3:9200}, bound_addresses {[::]:9200} | |
[2017-05-05 18:40:28,703][INFO ][node ] [Lurking Unknown] started | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Patch watches/cli.py with iteritems | |
(Dry run: don't modify files) | |
WARNING: [print] watches/cli.py: -l Single line output (no pretty-print JSON formatting). | |
WARNING: [print] watches/cli.py: # print duration, interval, startsec, actualsec, endsec | |
Patch watches/commands/base.py with print | |
WARNING: [print] watches/commands/base.py: print 'Supplied options:', dumps(self.options, indent=2, sort_keys=True) | |
WARNING: [print] watches/commands/base.py: print dumps(data, default=lambda x:str(x)) | |
WARNING: [print] watches/commands/base.py: print dumps(data, indent=2, sort_keys=False, default=lambda x:str(x)) | |
WARNING: watches/util/ESClientProducer.py: Failed to find the best place to add |