Skip to content

Instantly share code, notes, and snippets.

View vadorovsky's full-sized avatar
🐧

Michal Rostecki vadorovsky

🐧
View GitHub Profile
@vadorovsky
vadorovsky / unixhttpc.go
Created June 22, 2018 08:03 — forked from teknoraver/unixhttpc.go
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"
@vadorovsky
vadorovsky / gist:ba9d455e5eeb2d25a3b1b3d8ae690539
Created July 12, 2018 13:48
gcc killed during Cilium/Envoy build on openSUSE Leap 15.0
This file has been truncated, but you can view the full file.
GitHub pull request #46 of commit 473784cf5034a9c97b235f69d6dd30193686a4e0, no merge conflicts.
Setting status of 473784cf5034a9c97b235f69d6dd30193686a4e0 to PENDING with url https://jenkins.cilium.io/job/Vagrant-PR-Boxes-Packer-Build/190/ and message: 'Build started for merge commit.'
Using context: Cilium-Bash-Tests
Checking out git http://github.com/cilium/packer-ci-build into /var/jenkins_home/workspace/Vagrant-PR-Boxes-Packer-Build@script to read Jenkinsfile
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://github.com/cilium/packer-ci-build # timeout=10
Fetching upstream changes from http://github.com/cilium/packer-ci-build
> git --version # timeout=10
using GIT_ASKPASS to set credentials
@vadorovsky
vadorovsky / gist:4c3c206e240cdd0de1b37300c453a62e
Created January 18, 2019 18:54
Cilium log after restoreServicesIDs fix
-- Logs begin at Fri 2018-11-09 16:54:35 UTC, end at Fri 2019-01-18 18:53:31 UTC. --
Jan 18 18:36:19 runtime1 systemd[1]: Started cilium.
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=debug msg="os.Hostname() returned" nodeName=runtime1 subsys=node
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --access-log='/var/log/cilium-access.log'" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --agent-labels=''" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --allow-localhost='auto'" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --auto-ipv6-node-routes='true'" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --bpf-compile-debug='false'" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --bpf-ct-global-any-max='262144'" subsys=daemon
Jan 18 18:36:19 runtime1 cilium-agent[10664]: level=info msg=" --bpf-ct-global-tcp-max='1000000'" subsys=daemon
@vadorovsky
vadorovsky / gist:ed6d8f5d79bdf95512d0fbb4e1e237f3
Created February 2, 2019 14:52
cilium without 32bit glibc
set -e; \
: " [-DSKIP_DEBUG]"; clang -DSKIP_DEBUG -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf/include -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf -D__NR_CPUS__=4 -O2 -g -target bpf -emit-llvm -Wall -Werror -Wno-address-of-packed-member -Wno-unknown-warning-option -c bpf_lxc.c -o bpf_lxc.ll; llc -march=bpf -mcpu=probe -mattr=dwarfris -o /dev/null bpf_lxc.ll; : " [-DHAVE_LPM_MAP_TYPE]"; clang -DHAVE_LPM_MAP_TYPE -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf/include -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf -D__NR_CPUS__=4 -O2 -g -target bpf -emit-llvm -Wall -Werror -Wno-address-of-packed-member -Wno-unknown-warning-option -c bpf_lxc.c -o bpf_lxc.ll; llc -march=bpf -mcpu=probe -mattr=dwarfris -o /dev/null bpf_lxc.ll; : " [-DHAVE_LRU_MAP_TYPE]"; clang -DHAVE_LRU_MAP_TYPE -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf/include -I/home/mrostecki/go/src/github.com/cilium/cilium/bpf -D__NR_CPUS__=4 -O2 -g -target bpf -emit-llvm -Wall -Werror -Wno-address-of-packed
@vadorovsky
vadorovsky / gist:dcaf7b1976e459584cc284575596084f
Created December 13, 2019 12:10
Envoy 1.12.2 new dependencies
diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl
index 383f40e90..3b9c08a64 100644
--- a/bazel/repository_locations.bzl
+++ b/bazel/repository_locations.bzl
@@ -1,14 +1,36 @@
REPOSITORY_LOCATIONS = dict(
+ bazel_compdb = dict(
+ sha256 = "801b35d996a097d223e028815fdba8667bf62bc5efb353486603d31fc2ba6ff9",
+ strip_prefix = "bazel-compilation-database-0.4.1",
+ urls = ["https://github.com/grailbio/bazel-compilation-database/archive/0.4.1.tar.gz"],
@vadorovsky
vadorovsky / gist:b6c248a9e36143750682878b160b9056
Created January 9, 2020 13:13
cilium-log-20200109-140027
2020-01-09T13:57:28.334076081+01:00 level=info msg="Skipped reading configuration file" reason="Config File \"ciliumd\" Not Found in \"[/root]\"" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --access-log=''" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --agent-labels=''" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --allow-localhost='auto'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --annotate-k8s-node='true'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --auto-create-cilium-node-resource='true'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --auto-direct-node-routes='false'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --blacklist-conflicting-routes='true'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --bpf-compile-debug='false'" subsys=daemon
2020-01-09T13:57:28.334142876+01:00 level=info msg=" --bpf-ct-global-any-max='26214
# URL of the libvirt server
# EXAMPLE:
# libvirt_uri = "qemu:///system"
libvirt_uri = "qemu:///system"
# Path of the key file used to connect to the libvirt server
# Note this value will be appended to the libvirt_uri as a 'keyfile' query: <libvirt_uri>?keyfile=<libvirt_keyfile>
# EXAMPLE:
# libvirt_keyfile = "~/.ssh/custom_id"
libvirt_keyfile = ""
@vadorovsky
vadorovsky / crash.log
Created July 14, 2021 17:40
packer vagrant-libvirt post-processor error
This file has been truncated, but you can view the full file.
2021/07/14 19:13:05 [INFO] Packer version: 1.7.3 [go1.16.5 linux amd64]
2021/07/14 19:13:05 [TRACE] discovering plugins in /home/vadorovsky/bin
2021/07/14 19:13:05 [TRACE] discovering plugins in /home/vadorovsky/.packer.d/plugins
2021/07/14 19:13:05 [TRACE] discovering plugins in .
2021/07/14 19:13:05 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/07/14 19:13:05 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/vadorovsky/.packerconfig
2021/07/14 19:13:05 [WARN] Config file doesn't exist: /home/vadorovsky/.packerconfig
2021/07/14 19:13:05 [INFO] Setting cache directory: /home/vadorovsky/repos/enclave/contrib/packer/packer_cache
2021/07/14 19:13:05 [TRACE] Starting internal plugin packer-builder-vagrant
2021/07/14 19:13:05 Starting plugin: /home/vadorovsky/bin/packer []string{"/home/vadorovsky/bin/packer", "plugin", "packer-builder-vagrant"}
This file has been truncated, but you can view the full file.
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
//
// THIS FILE IS AUTOGENERATED BY CARGO-LIBBPF-GEN!
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(clippy::transmute_ptr_to_ref)]
use libbpf_rs::libbpf_sys;
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-6c205a15ba5644a0/d5451c8/aya/src/obj/btf/btf.rs:482] [DATASEC] .maps: fixup size to 288
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-6c205a15ba5644a0/d5451c8/aya/src/obj/btf/btf.rs:518] [DATASEC] .maps: [VAR] runtimes: fixup offset 0
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-6c205a15ba5644a0/d5451c8/aya/src/obj/btf/btf.rs:518] [DATASEC] .maps: [VAR] containers: fixup offset 32
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-6c205a15ba5644a0/d5451c8/aya/src/obj/btf/btf.rs:518] [DATASEC] .maps: [VAR] processes: fixup offset 64
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-6c205a15ba5644a0/d5451c8/aya/src/obj/btf/btf.rs:518] [DATASEC] .maps: [VAR] allowed_paths_mount_restricted: fixup offset 96
20:33:12 [DEBUG] (1) aya::obj::btf::btf: [/home/vadorovsky/.cargo/git/checkouts/aya-