Skip to content

Instantly share code, notes, and snippets.

View mbukatov's full-sized avatar

Martin Bukatovic mbukatov

View GitHub Profile
@mbukatov
mbukatov / glusterd-journal
Created November 23, 2017 18:04
POSIX_HEALTH_CHECK_FAILED
Nov 23 11:09:01 mbukatov-usm1-gl1.example.com mnt-brick_gama_disperse_1-1[15659]: [2017-11-23 16:09:01.051463] M [MSGID: 113075] [posix-helpers.c:1907:posix_health_check_thread_proc] 0-volume_gama_disperse_4_plus_2x2-posix: health-check failed, going down
Nov 23 11:09:01 mbukatov-usm1-gl1.example.com mnt-brick_gama_disperse_1-1[15659]: [2017-11-23 16:09:01.053220] M [MSGID: 113075] [posix-helpers.c:1926:posix_health_check_thread_proc] 0-volume_gama_disperse_4_plus_2x2-posix: still alive! -> SIGTERM
@mbukatov
mbukatov / notifier-config
Created November 23, 2017 13:36
tendrl-notifier config
[root@mbukatov-usm1-server ~]# rpm -q tendrl-notifier
tendrl-notifier-1.5.4-3.el7rhgs.noarch
[root@mbukatov-usm1-server ~]# cat /etc/tendrl/notifier/snmp.conf.yaml
# V2 end point details
# Enable the below lines if v2 end point to be used for SNMP notifications
# Note: For different communities make different similar entries below additionally
# Here default community is public
# V2 is auth less
# v2_endpoint:
@mbukatov
mbukatov / journalctl-u-snmptrapd
Created November 10, 2017 17:38
Examples of SNMPv3 trap messages send by Tendrl
Nov 10 12:19:41 mbukatov-usm1-client.usmqe.example.com systemd[1]: Stopped Simple Network Management Protocol (SNMP) Trap Daemon..
Nov 10 12:25:45 mbukatov-usm1-client.usmqe.example.com systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Nov 10 12:25:45 mbukatov-usm1-client.usmqe.example.com snmptrapd[13948]: NET-SNMP version 5.7.2
Nov 10 12:25:45 mbukatov-usm1-client.usmqe.example.com systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon..
Nov 10 12:26:26 mbukatov-usm1-client.usmqe.example.com snmptrapd[13948]: 2017-11-10 12:26:26 mbukatov-usm1-server.usmqe.example.com [UDP: [10.37.169.90]:41092->[10.37.169.25]:162]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart SNMPv2-SMI::private.2312.19.1.0 = STRING: "[Tendrl Alert] Brick Status, WARNING: status changed-Status of brick: mbukatov-usm1-gl5.usm
# etcdctl --endpoints http://${HOSTNAME}:2379 get /nodes/e6c74e78-6692-427c-98aa-6a386739a3f4/NodeContext/fqdn
mbukatov-usm1-gl2.example.com
# etcdctl --endpoints http://${HOSTNAME}:2379 ls /indexes/tags/provisioner/
/indexes/tags/provisioner/c6d2854f-c5be-4e39-83cd-ceea2c39df41
# etcdctl --endpoints http://${HOSTNAME}:2379 get /indexes/tags/provisioner/c6d2854f-c5be-4e39-83cd-ceea2c39df41
["e6c74e78-6692-427c-98aa-6a386739a3f4"]
# etcdctl --endpoints http://${HOSTNAME}:2379 get /nodes/e6c74e78-6692-427c-98aa-6a386739a3f4/NodeContext/tags
["detected_cluster/f04f1852e450992d62eece2fbd851389d593dfb9b9114279204703a67b37a2ee", "tendrl/integration/gluster", "tendrl/node_e6c74e78-6692-427c-98aa-6a386739a3f4", "tendrl/integration/c6d2854f-c5be-4e39-83cd-ceea2c39df41", "provisioner/c6d2854f-c5be-4e39-83cd-ceea2c39df41", "gluster/server", "tendrl/node"]
@mbukatov
mbukatov / rpm-qa
Last active October 18, 2017 14:34
Full avc logs for tendrl-selinux issue#2
libcgroup-0.41-13.el7.x86_64
setup-2.8.71-7.el7.noarch
gssproxy-0.7.0-4.el7.x86_64
glibc-common-2.17-196.el7.x86_64
quota-nls-4.01-14.el7.noarch
kernel-3.10.0-693.el7.x86_64
zlib-1.2.7-17.el7.x86_64
cloud-init-0.7.9-9.el7.centos.2.x86_64
nspr-4.13.1-1.0.el7_3.x86_64
libuuid-2.23.2-43.el7.x86_64
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 11050 (0x2b2a)
Signature Algorithm: sha1WithRSAEncryption
Issuer: CN=ooo.example.com
Validity
Not Before: Oct 12 14:40:43 2017 GMT
Not After : Oct 12 14:40:43 2019 GMT
Subject: C=CZ, ST=CZ, O=Red Hat, OU=USM - QE, CN=mbukatov-usm1-server.example.com
@mbukatov
mbukatov / tendrl-node-agent.journal
Created October 11, 2017 11:44
tendrl-node-agent.journal
Oct 11 11:33:29 mbukatov-usm1-server.usmqe.lab.eng.brq.redhat.com systemd[1]: Starting A python agent local to every managed storage node in the sds cluster...
Oct 11 11:33:29 mbukatov-usm1-server.usmqe.lab.eng.brq.redhat.com tendrl-node-agent[5520]: Creating namespace.node_agent from source tendrl.node_agentnamespace.node_agent created!Finding objects in namespace.node_agent.objectsRegistering object namespace.node_agent.objects.ClusterAlertCountersFinding atoms in namespace.node_agent.objects.ClusterAlertCounters.atomsFinding flows in namespace.node_agent.objects.ClusterAlertCounters.flowsRegistering object namespace.node_agent.objects.ClusterMessageFinding atoms in namespace.node_agent.objects.ClusterMessage.atomsFinding flows in namespace.node_agent.objects.ClusterMessage.flowsRegistering object namespace.node_agent.objects.CompiledDefinitionsFinding atoms in namespace.node_agent.objects.CompiledDefinitions.atomsFinding flows in namespace.node_agent.objects.CompiledDefinitions.flowsRegistering object name
# rpm -qa | egrep '(gevent|etcd|tendrl|urllib|requests)' | sort; rpm -q python
etcd-3.2.5-1.el7.x86_64
python-etcd-0.4.5-1.noarch
python-gevent-1.0-3.el7.x86_64
python-requests-2.6.0-1.el7_1.noarch
python-urllib3-1.10.2-3.el7.noarch
rubygem-etcd-0.3.0-1.el7.centos.noarch
tendrl-api-1.5.2-20171006T095605.71ea692.noarch
tendrl-commons-1.5.2-20171004T104238.6d5ffef.noarch
tendrl-node-agent-1.5.2-20171006T091456.1d7451f.noarch
@mbukatov
mbukatov / node-agent.journal.gist.log
Created October 6, 2017 11:26
node-agent.journal.gist.log
Oct 06 11:08:43 mbukatov-usm1-server.example.com systemd[1]: tendrl-node-agent.service holdoff time over, scheduling restart.
Oct 06 11:08:43 mbukatov-usm1-server.example.com systemd[1]: Started A python agent local to every managed storage node in the sds cluster.
Oct 06 11:08:43 mbukatov-usm1-server.example.com systemd[1]: Starting A python agent local to every managed storage node in the sds cluster...
Oct 06 11:08:44 mbukatov-usm1-server.example.com tendrl-node-agent[29113]: Creating namespace.node_agent from source tendrl.node_agentnamespace.node_agent created!Finding objects in namespace.node_agent.objectsRegistering object namespace.node_agent.objects.ClusterAlertCountersFinding atoms in namespace.node_agent.objects.ClusterAlertCounters.atomsFinding flows in namespace.node_agent.objects.ClusterAlertCounters.flowsRegistering object namespace.node_agent.objects.ClusterMessageFinding atoms in namespace.node_agent.objects.ClusterMessage.atomsFinding flows in namespace.node_agent.objects.ClusterMessage.flow
@mbukatov
mbukatov / journalctl-u-tendrl-node-agent
Created October 5, 2017 16:04
tendrl-node-agent-tls-fail
Oct 05 15:25:49 mbukatov-usm1-server.example.com tendrl-node-agent[15750]: TypeError: __init__() got an unexpected keyword argument 'server_hostname'
Oct 05 15:25:49 mbukatov-usm1-server.example.com tendrl-node-age[15750]: Unexpected request failure, re-raising.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/etcd/client.py", line 855, in wrapper
params=params, timeout=timeout)
File "/usr/lib/python2.7/site-packages/etcd/client.py", line 923, in api_execute
preload_content=False)