Skip to content

Instantly share code, notes, and snippets.

+ ceph version
ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable)
+ echo ext4
ext4
+ rbd create goller-test-image --size 800GB
+ rbd map goller-test-image
/dev/rbd0
+ mkfs -t ext4 /dev/rbd0
mke2fs 1.46.2 (28-Feb-2021)
Discarding device blocks: done
@goller
goller / repro.sh
Created June 28, 2023 22:01
ceph xfs vs ext4
#!/bin/sh
set -xe
ceph version
echo ext4
rbd create goller-test-image --size 800GB
rbd map goller-test-image
@goller
goller / cluster-api_infrastructure-provider.md
Last active May 5, 2020 18:58
cluster-api communication
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃         ____ _           _              _          __  __       ____                 _     _            ____ _           _                   ┃
┃        / ___| |_   _ ___| |_ ___ _ __  | |_ ___   |  \/  |_   _|  _ \ _ __ _____   _(_) __| | ___ _ __ / ___| |_   _ ___| |_ ___ _ __        ┃
┃       | |   | | | | / __| __/ _ \ '__| | __/ _ \  | |\/| | | | | |_) | '__/ _ \ \ / / |/ _` |/ _ \ '__| |   | | | | / __| __/ _ \ '__|       ┃
┃       | |___| | |_| \__ \ ||  __/ |    | || (_) | | |  | | |_| |  __/| | | (_) \ V /| | (_| |  __/ |  | |___| | |_| \__ \ ||  __/ |          ┃
┃        \____|_|\__,_|___/\__\___|_|     \__\___/  |_|  |_|\__, |_|   |_|  \___/ \_/ |_|\__,_|\___|_|   \____|_|\__,_|___/\__\___|_|          ┃
┃                                                           |___/                                                                              ┃
┗━━━━
@goller
goller / pod.txt
Created April 10, 2020 13:59
Panic in terraform output of terraform-k8s
{"level":"info","ts":1586522944.5609925,"logger":"terraform-k8s","msg":"Checking outputs","Organization":"*****","WorkspaceID":"*****","RunID":"****"}
E0410 12:49:05.151241 1 runtime.go:76] Observed a panic: can't use ElementIterator on null value
goroutine 543 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0x19030e0, 0x1f84160)
/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20191004115801-a2eda9f80ab8/pkg/util/runtime/runtime.go:74 +0xa3
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20191004115801-a2eda9f80ab8/pkg/util/runtime/runtime.go:48 +0x82
panic(0x19030e0, 0x1f84160)
/opt/hostedtoolcache/go/1.13.8/x64/src/runtime/panic.go:679 +0x1b2
github.com/zclconf/go-cty/cty.Value.ElementIterator(0x1ff4d80, 0xc00083ca20, 0x0, 0x0, 0x0, 0x0)
@goller
goller / profiler.go
Created December 20, 2019 16:42
WIP example to download stackdriver profile
package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/http/httputil"
@goller
goller / main.go
Created June 19, 2017 14:25
Simple zipkin "server" that prints out the spans as JSON
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net"
"net/http"
"sync"
"time"
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.