Skip to content

Instantly share code, notes, and snippets.

Avatar

Lars Kellogg-Stedman larsks

View GitHub Profile
View gist:68b61d61721e46e839f10993e4995c94
apiVersion: nmstate.io/v1alpha1
kind: NodeNetworkConfigurationPolicy
metadata:
name: br1-ens4-policy
spec:
nodeSelector:
node-role.kubernetes.io/worker: ""
desiredState:
interfaces:
- name: br1
View ilana public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQVnALkuZ9s5X4Q6bPkCSueIipTbF3DWZatUu3igO06Jm/BsfxXDWCsD6gXTV8l0rrNLLUfaT+126S3sX7sH8PMiFg8QzHLjL8wO8ANK2qqoCXCHrk7JCWglxF/Fgn0MLYapn7vyEJ6FWkh2eLc7g3WFW+YQTypqzlOq4cS7dZxaXoueL2O3+ZRjoIXLk04XSvNhLRE3C6u5FMGV12tEVw9Wy9GBkBUjv7J/Mbf1jzbuhpe/MZDjyjRLWX4OdKOYfQPYe3OsyInIXHrkLVxxpYBY2877jQqYv/QAVR4j9/n1Ob3H37rRBcZiw8PEejAO/VbKOccQA9FPrdYXwI5rNv ipolonsk@ipolonsk.tlv.csb
@larsks
larsks / create-bridge-network.md
Last active Apr 3, 2020
podman-bridge-network
View create-bridge-network.md

This will work if you have an existing bridge or if you don't: if the bridge referenced in this config doesn't exist, it will be created when you start a container attached to the network.

  1. Create the CNI network configuration in /etc/cni/net.d/99-example.conflist:
{
  "cniVersion": "0.4.0",
  "name": "example",
  "plugins": [
    {
@larsks
larsks / null
Created Mar 9, 2020
GMRS bookmarks for gqrx
View null
462550000; GMRS 15 ; Narrow FM ; 10000; gmrs
462562500; GMRS 01 ; Narrow FM ; 10000; gmrs
462575000; GMRS 16 ; Narrow FM ; 10000; gmrs
462587500; GMRS 02 ; Narrow FM ; 10000; gmrs
462600000; GMRS 17 ; Narrow FM ; 10000; gmrs
462612500; GMRS 03 ; Narrow FM ; 10000; gmrs
462625000; GMRS 18 ; Narrow FM ; 10000; gmrs
462637500; GMRS 04 ; Narrow FM ; 10000; gmrs
462650000; GMRS 19 ; Narrow FM ; 10000; gmrs
462662500; GMRS 05 ; Narrow FM ; 10000; gmrs
View podman errors.txt
Mar 03 14:08:26 madhatter podman[45588]: panic: assignment to entry in nil map
Mar 03 14:08:26 madhatter podman[45588]: goroutine 1 [running]:
Mar 03 14:08:26 madhatter podman[45588]: github.com/containers/libpod/pkg/env.parseEnv(0x0, 0xc000279420, 0xf, 0x0, 0xc000279420)
Mar 03 14:08:26 madhatter podman[45588]: pkg/env/env.go:107 +0x4a5
Mar 03 14:08:26 madhatter podman[45588]: github.com/containers/libpod/pkg/env.ParseFile(0xc00043ed40, 0x19, 0x0, 0x0, 0x0)
Mar 03 14:08:26 madhatter podman[45588]: pkg/env/env.go:84 +0x25f
Mar 03 14:08:26 madhatter podman[45588]: github.com/containers/libpod/cmd/podman/shared.ParseCreateOpts(0x1e6ff20, 0xc000040050, 0xc000609b98, 0xc0002de000, 0xc00019ac00, 0x>
Mar 03 14:08:26 madhatter podman[45588]: cmd/podman/shared/create.go:503 +0x610b
Mar 03 14:08:26 madhatter podman[45588]: github.com/containers/libpod/cmd/podman/shared.CreateContainer(0x1e6ff20, 0xc000040050, 0xc000609b98, 0xc0002de000, 0x0, 0x0, 0x0, 0>
Mar 03 14:08:26 madhatter podman[45588]:
View ovn-trace example
podman exec ovn_controller ovn-trace --summary --db=tcp:172.16.2.198:6642 \
net0 \
'
inport=="10045ad5-a92a-47a4-8369-4cb3abad4978" &&
eth.src==fa:16:3e:17:eb:cf &&
ip4.src==192.168.17.150 &&
ip.ttl==255 &&
eth.dst==fa:16:3e:c8:44:cc &&
ip4.dst==8.8.8.8 &&
tcp.src==12345 &&
@larsks
larsks / openshift-notes.md
Last active Jun 3, 2019
Some openshift stuff
View openshift-notes.md

A [pod][] is the basic building block of OpenShift applications. A pod can contain one or more containers along with other information, like environment variables, volumes, and more. If you're familiar with docker-compose, a pod is largely equivalent to a docker-compose.yml file.

A simple pod to start up a database service might look like this:

---
apiVersion: v1
kind: Pod
metadata:
  name: mariadb
View os-collect-config-log
-- Logs begin at Sat 2019-03-02 17:15:29 EST, end at Sun 2019-03-03 21:11:41 EST. --
Mar 03 18:21:42 neu-15-39-control1.kzn.moc ansible-file[548329]: Invoked with directory_mode=None force=True remote_src=None path=/var/lib/kolla/config_files/ec2_api_metadata.json owner=None follow=False group=None unsafe_writes=None state=file content=NOT_LOGGING_PARAMETER serole=None diff_peek=None setype=None dest=/var/lib/kolla/config_files/ec2_api_metadata.json selevel=None original_basename=tmp9JDpDP regexp=None validate=None src=tmp9JDpDP seuser=None recurse=False delimiter=None mode=0600 attributes=None backup=None
Mar 03 18:21:42 neu-15-39-control1.kzn.moc ansible-stat[548345]: Invoked with checksum_algorithm=sha1 get_checksum=True path=/var/lib/kolla/config_files/redis.json checksum_algo=sha1 follow=False get_md5=False get_mime=True get_attributes=True
Mar 03 18:21:42 neu-15-39-control1.kzn.moc ansible-file[548354]: Invoked with directory_mode=None force=True remote_src=None path=/var/lib/kolla/config_files/redis.js
View iscsi-error.txt
[root@larstest1 journal]# [16838.537090] connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311494208, last ping 4311499216, now 4311504224
[16838.550531] connection1:0: detected conn error (1022)
[16959.018991] session1: session recovery timed out after 120 secs
[16959.025779] sd 7:0:0:0: rejecting I/O to offline device