Skip to content

Instantly share code, notes, and snippets.

View mjudeikis's full-sized avatar
👽
Brewing something new...

Mangirdas Judeikis mjudeikis

👽
Brewing something new...
View GitHub Profile
@mjudeikis
mjudeikis / user-data-wifi.yml
Created August 1, 2020 18:42 — forked from DieterReuter/user-data-wifi.yml
HypriotOS cloud-init configuration for RPi3 WiFi Client
#cloud-config
# vim: syntax=yaml
#
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9
# When dealing with cloud-init, it is SUPER important to know the version
# I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well
RESOURCEGROUP is ci-2302-e2e-upgrade-uupgpq
go build -ldflags "-X main.gitCommit=v4.0-1349-g7be18e7" ./cmd/monitoring
time="2020-06-25T08:36:57Z" level=info msg="monitoring pod starting, git commit v4.0-1349-g7be18e7" component=monitor
time="2020-06-25T08:36:57Z" level=fatal msg="Cannot load clusterConfiguration from /tmp/tmp.OFakTUNPAm/src/github.com/openshift/openshift-azure/_data/containerservice.yaml: open /tmp/tmp.OFakTUNPAm/src/github.com/openshift/openshift-azure/_data/containerservice.yaml: no such file or directory" component=monitor
Note: checking out '8c178e7953e6ade46782753cc45d11b4e8d60dc8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
package purge
import (
"context"
"fmt"
"net/http"
"regexp"
"strings"
"github.com/davecgh/go-spew/spew"
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
[mjudeiki@unknown ARO-RP]$ ./hack/ssh.sh mjudeikis2-2m8l4-master-1
If you don't see a command prompt, try pressing enter.
[root@mjudeikis2-2m8l4-master-1 ~]# ovs-ofctl dump-flows br0 -O OpenFlow13
cookie=0x0, duration=31027.438s, table=0, n_packets=1001996, n_bytes=107382047, priority=400,ip,in_port=tun0,nw_src=10.128.0.1 actions=goto_table:30
cookie=0x0, duration=31027.438s, table=0, n_packets=2581967, n_bytes=991516571, priority=300,ct_state=-trk,ip actions=ct(table=0)
cookie=0x0, duration=31027.438s, table=0, n_packets=54274, n_bytes=5760396, priority=300,ip,in_port=tun0,nw_src=10.128.0.0/23,nw_dst=10.128.0.0/14 actions=goto_table:25
cookie=0x0, duration=31027.438s, table=0, n_packets=0, n_bytes=0, priority=250,ip,in_port=tun0,nw_dst=224.0.0.0/4 actions=drop
cookie=0x0, duration=31027.438s, table=0, n_packets=26990, n_bytes=1133580, priority=200,arp,in_port=vxlan0,arp_spa=10.128.0.0/14,arp_tpa=10.128.0.0/23 actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10
cookie=0x0, duration=31027.438s
[root@mjudeikis2-2m8l4-master-0 ~]# iptables-save
# Generated by iptables-save v1.8.4 on Fri Apr 17 15:06:09 2020
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:KUBE-MARK-MASQ - [0:0]
:KUBE-MARK-DROP - [0:0]
:KUBE-POSTROUTING - [0:0]
FATA[2019-12-18T04:26:04+11:00] containerservice.OpenShiftManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: error response cannot be parsed: "400 Bad Request: Failed to apply request: UpdateWorkerAgentPoolDeleteVM: Code=\"SpecifiedAllocatedOutboundPortsForOutboundRuleExceedsTotalNumberOfAvailablePorts\" Message=\"Specified Allocated Outbound Ports 1024 for Outbound Rule /subscriptions/.../resourceGroups/pnasrat-testscale/providers/Microsoft.Network/loadBalancers/kubernetes/outboundRules/outbound exceeds total number of available ports 624. Reduce allocated ports or increase number of IP addresses for outbound rule.\"\n" error: json: cannot unmarshal number into Go value of type azure.RequestError
#!/bin/bash
FILE=/root/bootstrap.done
if [[ ! -f "$FILE" ]]; then
echo "Bootstrap starting"
# remove init startup
rm /etc/systemd/system/multi-user.target.wants/initial-setup.service
# extend disk
xfs_growfs /
# update
package main
import (
"bufio"
"os"
"time"
tm "github.com/buger/goterm"
"github.com/sirupsen/logrus"
"github.com/chbmuc/cec")