Skip to content

Instantly share code, notes, and snippets.

View frobware's full-sized avatar

Andrew McDermott frobware

  • Red Hat
  • UK
  • 09:19 (UTC +01:00)
View GitHub Profile
@frobware
frobware / gist:d97d2bae2030942f8819
Created February 21, 2016 22:31
macvlan setup
#!/bin/bash -xeu
# let host and guests talk to each other over macvlan
# configures a macvlan interface on the hypervisor
# run this on the hypervisor (e.g. in /etc/rc.local)
# made for IPv4; need modification for IPv6
# meant for a simple network setup with only eth0,
# and a static (manual) ip config
# Evert Mouw, 2013
#!/bin/bash
## this is an attempt to run ppc64le (ppc64el) guest on intel host
##
## there is a bootlog of this script working top to bottom
## including qemu kernel boot output and verification of network
## and disk device from initramfs
## http://paste.ubuntu.com/12255929/
# get boot-kernel and boot-initrd from maas-images (not required)
# see http://maas.ubuntu.com/images/ephemeral-v2/daily/wily/ppc64el/

Keybase proof

I hereby claim:

  • I am frobware on github.
  • I am frobware (https://keybase.io/frobware) on keybase.
  • I have a public key ASBBAglk6nXxlM24NCYWm1hNRouxwN-PuYQufL38JeKn_Qo

To claim this, I am signing this object:

2017-08-25 14:09:06.812401 I | integration: launching 8061892524328028279 (unix://localhost:80618925243280282790)
2017-08-25 14:09:06.812927 I | etcdserver: name = 8061892524328028279
2017-08-25 14:09:06.812946 I | etcdserver: data dir = /tmp/etcd883545833
2017-08-25 14:09:06.812957 I | etcdserver: member dir = /tmp/etcd883545833/member
2017-08-25 14:09:06.812965 I | etcdserver: heartbeat = 10ms
2017-08-25 14:09:06.812973 I | etcdserver: election = 100ms
2017-08-25 14:09:06.812981 I | etcdserver: snapshot count = 0
2017-08-25 14:09:06.812996 I | etcdserver: advertise client URLs = unix://127.0.0.1:2100231758
2017-08-25 14:09:06.813007 I | etcdserver: initial advertise peer URLs = unix://127.0.0.1:2100131758
2017-08-25 14:09:06.813020 I | etcdserver: initial cluster = 8061892524328028279=unix://127.0.0.1:2100131758
resource "libvirt_domain" "domain-xenial-raw" {
name = "zncbouncer"
count = 1
memory = "512"
name = "zncbouncer-${count.index}"
vcpu = 1
disk {
volume_id = "${libvirt_volume.vol-xenial-raw.id}"
}
graphics {
func TestTeardown(t *testing.T) {
config, tearDown := StartTestServerOrDie(t)
defer tearDown()
kubeclient, err := kubernetes.NewForConfig(config)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
if true {
2017-08-30 14:46:42.780662 I | integration: launching 1358934513409616567 (unix://localhost:13589345134096165670)
2017-08-30 14:46:42.780953 I | etcdserver: name = 1358934513409616567
2017-08-30 14:46:42.780962 I | etcdserver: data dir = /tmp/etcd860136104
2017-08-30 14:46:42.780975 I | etcdserver: member dir = /tmp/etcd860136104/member
2017-08-30 14:46:42.780981 I | etcdserver: heartbeat = 10ms
2017-08-30 14:46:42.780985 I | etcdserver: election = 100ms
2017-08-30 14:46:42.780989 I | etcdserver: snapshot count = 0
2017-08-30 14:46:42.780997 I | etcdserver: advertise client URLs = unix://127.0.0.1:2100228671
2017-08-30 14:46:42.781002 I | etcdserver: initial advertise peer URLs = unix://127.0.0.1:2100128671
2017-08-30 14:46:42.781011 I | etcdserver: initial cluster = 1358934513409616567=unix://127.0.0.1:2100128671
func TestBanger(t *testing.T) {
wg := &sync.WaitGroup{}
for i := 0; i < 100; i++ {
fmt.Println("INSTANCE", i)
wg.Add(1)
_, _, tearDown := StartTestServerOrDie(t, []string{"--admission-control", "Initializers"}, SharedInProcessEtcd(t))
tearDown()
wg.Done()
}
export KUBE_RACE=-race
export KUBE_COVER=n
export KUBE_JUNIT_REPORT_DIR=/tmp/workspace/artifacts
export ARTIFACTS_DIR=/tmp/workspace/artifacts
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
export KUBE_TIMEOUT='-timeout 300s'
export KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4
export LOG_LEVEL=4
func TestOpenAPIDelegationChainPlumbing(t *testing.T) {
// config, tearDown := StartTestServerOrDie(t)
// defer tearDown()
config := framework.NewMasterConfig()
_, _, closeFn := framework.RunAMaster(config)
defer closeFn()
kubeclient, err := kubernetes.NewForConfig(config.GenericConfig.LoopbackClientConfig)