Skip to content

Instantly share code, notes, and snippets.

View dongsupark's full-sized avatar

Dongsu Park dongsupark

View GitHub Profile
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="7cc194c95b686cb8cd0d6ea9c3f6fa39f536324b4e0b333d8deffb59e355"
--7cc194c95b686cb8cd0d6ea9c3f6fa39f536324b4e0b333d8deffb59e355
content-type: text/cloud-boothook
#cloud-boothook
#!/bin/bash
# Copyright 2020 The Kubernetes Authors.
@dongsupark
dongsupark / systemd-v241-origin-gdb-20190502.txt
Created May 4, 2020 13:38
systemd-v241-origin-gdb-20190502
warning: core file may not match specified executable file.
[New LWP 4661]
[New LWP 8321]
warning: .dynamic section for "/lib64/libidn2.so.0" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/lib/systemd/systemd-journald'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f57e3874a67 in __GI___pthread_timedjoin_ex (threadid=140015198594816,
@dongsupark
dongsupark / cluster.tf.arm64.dongsu
Last active October 30, 2019 12:59
Terraform config for Flatcar arm64 clusters
module "packet-flarmtest" {
source = "git::https://github.com/kinvolk/lokomotive-kubernetes//packet/flatcar-linux/kubernetes?ref=8bd8ce30e689b7bb3d8517cf19f62762da78fa39"
providers = {
aws = "aws.default"
local = "local.default"
null = "null.default"
template = "template.default"
tls = "tls.default"
@dongsupark
dongsupark / packet-escape-installer.txt
Created September 5, 2019 06:49
packet escape to installer
++ awk -F: '{print $2}'
+ image_tag=7844cf38831a092c4c6eb712a2edd7349226dafd
+ gitpath=packethost/packet-images.git
+ gituri=https://images.packet.net/packethost/packet-images.git
+ git config --global http.sslverify false
+ ensure_reachable https://images.packet.net/packethost/packet-images.git
+ local url=https://images.packet.net/packethost/packet-images.git
+ echo -e '\033[0;33m###### Checking connectivity to "https://images.packet.net/packethost/packet-images.git"...\033[0m'
###### Checking connectivity to "https://images.packet.net/packethost/packet-images.git"...
+ is_reachable https://images.packet.net/packethost/packet-images.git
@dongsupark
dongsupark / gist:d2803c12baa89bf10b143c7b34af4ad0
Created July 26, 2019 10:26
temporarily disable selinux check for runc v1.0.0-rc8
From 7264883458e7bdcd23152495ac141a24d17b8db9 Mon Sep 17 00:00:00 2001
Message-Id: <7264883458e7bdcd23152495ac141a24d17b8db9.1564136934.git.dongsu@kinvolk.io>
From: Dongsu Park <[email protected]>
Date: Fri, 26 Jul 2019 12:19:37 +0200
Subject: [PATCH] temporarily disable selinux.GetEnabled() error checks
---
libcontainer/configs/validate/validator.go | 4 ----
utils_linux.go | 4 ----
2 files changed, 8 deletions(-)
@dongsupark
dongsupark / strace-perl.log
Created February 25, 2019 16:15
strace for perl segfault (strace -s 500 perl -V)
execve("/bin/perl", ["perl", "-V"], [/* 37 vars */]) = 0
brk(0) = 0x55c63dbf7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/haswell/x86_64/libperl.so.5.24.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/haswell/x86_64", 0x7ffcc20e6380) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/haswell/libperl.so.5.24.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/haswell", 0x7ffcc20e6380) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/x86_64/libperl.so.5.24.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/perl5/5.24.1/x86_64-linux/CORE/tls/x86_64", 0x7ffcc20e6380) = -1 ENOENT (No such file or directory)
openat(A
@dongsupark
dongsupark / memory_monitor
Created August 29, 2018 12:16
a quick and dirty memory monitoring, timestamp:used (in MB)
1535544068:891
1535544069:860
1535544070:869
1535544071:861
1535544072:877
1535544073:870
1535544074:906
1535544075:1048
1535544076:1023
1535544077:925
execve("./validation/linux_ns_path.t", ["./validation/linux_ns_path.t"], 0x7fff2eb42e98 /* 30 vars */) = 0
brk(NULL) = 0x26d4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=171447, ...}) = 0
mmap(NULL, 171447, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa2da820000
close(3) = 0
openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0Pb\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=113048, ...}) = 0
@dongsupark
dongsupark / hcloud-ds.tf
Last active February 9, 2021 20:16
Dongsu's terraform config for hetzner cloud
module "hetzner-mycluster" {
#source = "git::https://github.com/kinvolk/typhoon//hetzner-cloud/container-linux/kubernetes?ref=alban/hetzner"
source = "git::[email protected]:kinvolk/spacecraft-typhoon//hetzner-cloud/container-linux/kubernetes?ref=alban/hetzner"
providers = {
aws = "aws.default"
local = "local.default"
null = "null.default"
template = "template.default"
tls = "tls.default"
@dongsupark
dongsupark / dep-init-failure-rktlet
Created January 30, 2018 15:50
dep init failure on rktlet
Getting direct dependencies...
Checked 27 directories for packages.
Found 18 direct dependencies.
Root project is "github.com/kubernetes-incubator/rktlet"
12 transitively valid internal packages
34 external packages imported from 18 projects
(0) ✓ select (root)
(1) ? attempt github.com/golang/glog with 1 pkgs; 1 versions to try
(1) try github.com/golang/glog@master
(1) ✓ select github.com/golang/glog@master w/1 pkgs