Skip to content

Instantly share code, notes, and snippets.

View clnperez's full-sized avatar

cnorman clnperez

View GitHub Profile
vmstat -m -a -w -n 600 24
Cache Num Total Size Pages
nf_conntrack 42500 43180 384 170
kvm-pmd 10240 10240 8192 64
kvm-pte 20480 20480 512 128
kvm_vcpu 10836 10836 8224 63
rpc_inode_cache 85 85 768 85
ext4_groupinfo_4k 455 455 144 455
ext4_inode_cache 167 275 1176 55
@clnperez
clnperez / gist:9c7ec70ef5071c3d7668038541d8499d
Created December 17, 2020 15:34
cannibalized cleanup script for libvirt clusters
#!/bin/bash
# for more information, see https://github.com/openshift/ci-tools/pull/688
set -o errexit
set -o nounset
set -o pipefail
# bastion_p should have been the sshd bastion and this should have been run remotely, but for now just use the local IP and skip ssh'ing in
bastion_p=<1.1.1.1>
@clnperez
clnperez / gist:781149e8c6882ea668d06483325e1151
Created February 10, 2020 19:59
ppc bazel build missing jni_md.h
^[[32m[362 / 390]^[[0m 2 actions, 1 running
    //src/main/java/com/google/devtools/build/lib:build-base; 5s worker
    [Prepa] Compiling src/main/java/com/google/devtools/build/lib/syntax/cpu_profiler_unimpl.cc
^M^[[1A^[[K^M^[[1A^[[K^M^[[1A^[[K^[[31m^[[1mERROR: ^[[0m/bazel/src/main/java/com/google/devtools/build/lib/syntax/BUILD:150:1: C++ compilation of rule '//src/main/java/com/google/devtools/build/lib/syntax:libcpu_profiler.so' failed (Exit 1) process-wrapper failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/17ca80f5678de367412ae4ed97070adf/sandbox/processwrapper-sandbox/377/execroot/io_bazel && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /root/.cache/bazel/_bazel_root/install/91cf7c54e2d6d8955bcc5cff3cc90228/_embedded_binaries/process-wrapper '--timeout=0' '--kill_delay=15' /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-p
@clnperez
clnperez / gist:4c1e64b54b5f59060a6b38f65911ee74
Created October 2, 2019 16:36
ppc64le bazel error: vector not found
ERROR: /root/.cache/bazel/_bazel_root/bd0f63453256ea962e73be995f691717/external/com_google_protobuf/BUILD:106:1: C++ compilation of rule '@com_google_protobuf//:protobuf_lite' failed (Exit 1) process-wrapper failed: error executing command
(cd /root/.cache/bazel/_bazel_root/bd0f63453256ea962e73be995f691717/sandbox/processwrapper-sandbox/2/execroot/__main__ && \
exec env - \
PATH=/bin:/usr/bin:/usr/local/bin \
PWD=/proc/self/cwd \
TMPDIR=/tmp \
/root/.cache/bazel/_bazel_root/install/5924f9461528fef3af9c2092a62c9853/_embedded_binaries/process-wrapper '--timeout=0' '--kill_delay=15' /usr/lib/llvm-8/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-stdlib=libc++' -MD -MF bazel-out/host/bin/external/com_google_protobuf/_objs/protobuf_lite/strutil.d '-frandom-seed=bazel-out/host/bin/external/com_google_protobuf/_objs/protobuf_lite/strutil.o' -iquo
@clnperez
clnperez / create manifest
Last active August 20, 2019 23:21
multiarch helm operator travis logs (20190920)
travis_fold:start:worker_info
Worker information
hostname: c00fa801-443e-430a-b600-4b5fc5931b8c@1.travis-worker-v11-travis-wdc-2-34
version: https://github.com/travis-ci/worker/tree/???
instance: ba591b6 travisci/ci-sardonyx:packer-1547455648-2c98a19 (via amqp)
startup: 386.084032ms
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
@clnperez
clnperez / deploy phase
Last active August 7, 2019 14:22
internal manifest deploy and pull
travis_fold:start:worker_info
Worker information
hostname: f6058e89-5dbb-4b46-85b1-2c5e1cddccec@1.travis-worker-v10-second-3
version: https://github.com/travis-ci/worker/tree/???
instance: 33b1a53 travisci/ci-sardonyx:packer-1547455648-2c98a19 (via amqp)
startup: 286.181651ms
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
@clnperez
clnperez / manifest deploy.6
Last active July 31, 2019 18:56
operator-sdk helm pull 153 travis logs
Test Stage.1
============
travis_fold:start:worker_info
Worker information
hostname: [email protected]
version: https://github.com/travis-ci/worker/tree/???
instance: e50ea3b travisci/ci-sardonyx:packer-1547455648-2c98a19 (via amqp)
startup: 453.25541ms
travis_fold:end:worker_info
travis_fold:start:system_info
@clnperez
clnperez / istio-auth.yaml
Last active July 9, 2018 15:20
mutli-arch ibmcom istio-auth.yaml
# GENERATED FILE. Use with Kubernetes 1.7+
# TO UPDATE, modify files in install/kubernetes/templates and run install/updateVersion.sh
################################
# Istio system namespace
################################
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
---
@clnperez
clnperez / gist:3dd3624844013594439496f2e5bf8606
Created July 21, 2017 20:20
example mutli-arch yaml file (hello-world)
image: clnperez/hello-world:latest
manifests:
-
image: ppc64le/hello-world:latest
-
image: hello-world:latest
-
image: armhf/hello-world
platform:
os: linux
@clnperez
clnperez / ppc64le-s390-install.sh
Last active March 17, 2016 22:46
Alternate install sript to use with docker machien for Power and Z
#!/bin/sh
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.docker.com/ | sh'
# or:
# 'wget -qO- https://get.docker.com/ | sh'
#
# For test builds (ie. release candidates):
# 'curl -fsSL https://test.docker.com/ | sh'