Skip to content

Instantly share code, notes, and snippets.

@moss2k13
moss2k13 / Dockerfile
Created October 26, 2016 12:49
Dockerfile for hsflowd container image
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y libpcap0.8 docker-engine
ADD hsflowd-ubuntu16_2.0.5-7_amd64.deb /tmp
RUN dpkg -i /tmp/hsflowd-ubuntu16_2.0.5-7_amd64.deb
ADD hsflowd.conf /etc/hsflowd.conf
CMD /etc/init.d/hsflowd start && tail -f /dev/null
@moss2k13
moss2k13 / hsflowd_from_container.log
Last active October 26, 2016 13:09
hsflowd_from_container.log
started
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
@moss2k13
moss2k13 / hsflowd_from_standard_ubuntu_vm.log
Created October 26, 2016 13:07
hsflowd_from_standard_ubuntu_vm.log
started
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
@moss2k13
moss2k13 / hsflowd_from_container_ubuntu.log
Created October 31, 2016 11:53
hsflowd_from_container_ubuntu.log
started
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
[root@devbox ~]# egrep -v '#|^$' values-cert-mgr.yaml
replicaCount: 1
image:
repository: quay.io/jetstack/cert-manager-controller
tag: v0.5.2
pullPolicy: IfNotPresent
createCustomResource: true
clusterResourceNamespace: ""
leaderElection:
namespace: ""
@moss2k13
moss2k13 / openstack_victoria_ip_lib_error.txt
Last active June 5, 2021 08:30
/usr/lib/python3.6/site-packages/neutron/agent/linux/ip_lib.py error from ip_lib.privileged.get_link_vfs
### working victoria environment:
>>> ip_lib.privileged.get_link_vfs('pt0', '')
{0: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 1: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 2: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 3: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 4: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 5: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 6: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 7: {'mac': 'b6:ff:ef:5d:5f:e2', 'link_state': 0}}
>>> ip_lib.privileged.get_link_vfs('pt1', '')
{0: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 1: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 2: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 3: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 4: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 5: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 6: {'mac': '00:00:00:00:00:00', 'link_state': 0}, 7: {'mac': '00:00:00:00:00:00', 'link_state': 0}}
### broken victoria environment:
## 63 VFs configured and enabled:
cat /sys/class/net/ens2f1/d
{
"builders": [
{
"name": "custom-emr-ami",
"type": "amazon-ebs",
"skip_region_validation": true,
"ami_name": "{{ user `build_name` }}{{ user `prefix` }}-build{{ user `build_number` }}",
"communicator": "ssh",
"instance_type": "t2.small",
"token": "{{ user `aws_session_token` }}",
{
"builders": [
{
"name": "custom-emr-ami",
"type": "amazon-ebs",
"skip_region_validation": true,
"ami_name": "{{ user `build_name` }}{{ user `prefix` }}-build{{ user `build_number` }}",
"communicator": "ssh",
"instance_type": "t2.small",
"token": "{{ user `aws_session_token` }}",
aws --profile temporary-user sts get-session-token &> get-session-token
docker run -it --rm --name packer -v $(pwd):/workspace -w /workspace -e PACKER_LOG=1 -e AWS_ACCESS_KEY_ID=$(cat get-session-token | jq -r .Credentials.AccessKeyId) -e AWS_SECRET_ACCESS_KEY=$(cat get-session-token | jq -r .Credentials.SecretAccessKey) -e AWS_SESSION_TOKEN=$(cat get-session-token | jq -r .Credentials.SessionToken) -e AWS_REGION=eu-central-1 hashicorp/packer:1.8.5 build -var AmazonOsReleaseLabel=2.0.20221210.1 -var prefix=my-dev -var packerPath=/tmp/downloads -debug custom-emr-ami.json
2023/02/14 11:54:45 [INFO] Packer version: 1.8.5 [go1.18.9 linux amd64]
2023/02/14 11:54:45 [TRACE] discovering plugins in /bin
2023/02/14 11:54:45 [TRACE] discovering plugins in /root/.config/packer/plugins
2023/02/14 11:54:45 [TRACE] discovering plugins in .
docker run -it --rm --name packer -v $(pwd):/workspace -w /workspace -e PACKER_LOG=1 -e AWS_ACCESS_KEY_ID=$(cat get-session-token | jq -r .Credentials.AccessKeyId) -e AWS_SECRET_ACCESS_KEY=$(cat get-session-token | jq -r .Credentials.SecretAccessKey) -e AWS_SESSION_TOKEN=$(cat get-session-token | jq -r .Credentials.SessionToken) -e AWS_REGION=eu-central-1 hashicorp/packer:1.8.5 build -var AmazonOsReleaseLabel=2.0.20221210.1 -var prefix=my-dev -var packerPath=/tmp/downloads -debug custom-emr-ami.json
2023/02/14 12:05:44 [INFO] Packer version: 1.8.5 [go1.18.9 linux amd64]
2023/02/14 12:05:44 [TRACE] discovering plugins in /bin
2023/02/14 12:05:44 [TRACE] discovering plugins in /root/.config/packer/plugins
2023/02/14 12:05:44 [TRACE] discovering plugins in .
2023/02/14 12:05:44 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2023/02/14 12:05:44 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2023/02/14 12:05:44 [WARN] Config file doesn't exist: