Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / aro-hcp-github.md
Last active January 26, 2026 09:12
ARO HCP GitHub Notes
#!/bin/bash
cd ~/projects/ARO-HCP/test
find cmd e2e e2e-setup pkg util -name *.go -print0 \
| xargs -0 -I'{}' -- git blame -wet '{}' \
| sed 's/^[^<]*<\([^>]*\)>.*/\1/' \
| sort \
| uniq -c \
| sort -nr -k1 \
| awk '{sum += $1; counts[NR] = $1; emails[NR] = $2}
END {for (i=1; i<=NR; i++) printf "%6d %5.2f%% %s\n", counts[i], counts[i]/sum*100, emails[i]}' \