Skip to content

Instantly share code, notes, and snippets.

@mbukatov
mbukatov / aro-hcp-github.md
Last active November 28, 2025 18:23
ARO HCP GitHub Notes
@mbukatov
mbukatov / peerprobe.1.yml
Created July 27, 2018 07:10
Create Gluster Trusted Storage Pool (peer probe) via ansible
- hosts: gluster
user: root
tasks:
- name: Create a trusted storage pool
gluster_peer:
state: present
nodes: "{{ groups['gluster'] }}"
run_once: yes
@mbukatov
mbukatov / example.yml
Last active February 23, 2018 15:04
ansbile check if ntp package is installed
- name: Check if ntp is installed
command: rpm -q ntp
register: rpm_q_ntp
changed_when: False
failed_when: rpm_q_ntp.rc > 1
@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