Skip to content

Instantly share code, notes, and snippets.

View mavenugo's full-sized avatar

Madhu Venugopal mavenugo

  • Apple
  • Cupertino, CA
View GitHub Profile
Open vSwitch Advanced Features Tutorial
=======================================
Many tutorials cover the basics of OpenFlow. This is not such a
tutorial. Rather, a knowledge of the basics of OpenFlow is a
prerequisite. If you do not already understand how an OpenFlow flow
table works, please go read a basic tutorial and then continue reading
here afterward.
It is also important to understand the basics of Open vSwitch before
[vagrant@centos ~]$ sudo docker exec 1d1401495d0d ovs-vsctl --db=unix:/var/run/openvswitch/db.sock show
8970d7ef-6863-4b4b-b174-00335a24b100
ovs_version: "1.4.6"
[vagrant@centos ~]$ sudo docker exec f090a1ddf8a0 ovs-vsctl --db=unix:/var/run/openvswitch/db.sock show
cefa34ad-9461-42bb-a974-8a657ec35020
ovs_version: "1.5.0"
[vagrant@centos ~]$ sudo docker exec 08737383963b ovs-vsctl --db=unix:/var/run/openvswitch/db.sock show
34c7f87c-ec98-44c9-815d-d30b98d2204e
ovs_version: "1.6.1"
[vagrant@centos ~]$ sudo docker exec 4368fd874241 ovs-vsctl --db=unix:/var/run/openvswitch/db.sock show
time="2017-02-09T21:11:21.800403805Z" level=info msg="=== BEGIN goroutine stack dump ===
goroutine 51 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
/usr/src/docker/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc8204aa060)
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f
goroutine 1 [chan receive, 263 minutes]:
Welcome to Docker!
swarm-manager000000:~$ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
cuyf1apbwj4c7f3ky3h2h7dly * swarm-manager000000 Ready Active Leader
w2mt3gdaulwnifxrvqbrg41z8 swarm-worker000001 Ready Active
wj7butznsvr6yq5adrxi64v1l swarm-worker000000 Ready Active
swarm-manager000000:~$ docker plugin ls
ID NAME DESCRIPTION ENABLED
189f70543802 docker4x/cloudstor:latest cloud storage plugin for Docker true
swarm-manager000000:~$ docker version
Welcome to Docker!
~ $ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
7rfkozi079zk7076v4sku4xv0 ip-172-31-16-185.us-west-2.compute.internal Ready Active
omt4j9vzvc8lj60i15gcwmrlu * ip-172-31-11-252.us-west-2.compute.internal Ready Active Leader
~ $ docker plugin ls
ID NAME DESCRIPTION ENABLED
bf5195ce2777 docker4x/cloudstor:latest cloud storage plugin for Docker true
~ $ docker version
# curl https://packages.docker.com/1.12/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15534 100 15534 0 0 51863 0 --:--:-- --:--:-- --:--:-- 52303
+ sh -c 'sleep 3; yum -y -q install docker-engine'
https://s3.amazonaws.com/packages.docker.com-staging/1.11/yum/repo/testing/centos/7/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
One of the configured repositories failed (Docker testing Repository),
docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
https://gist.github.com/2a2a6601a246f964ae29f32e3bb37e18
30b0bb6d41ee
commit af377742133f496d2db5975c845fd825869db9a4
Author: John Howard <jhoward@microsoft.com>
Date: Mon Oct 10 15:08:17 2016 -0700
Windows: Update go-winio to 0.3.5
Signed-off-by: John Howard <jhoward@microsoft.com>
commit 430946c4c779ebdb6265524889a46d4f82d900e6
Author: John Howard <jhoward@microsoft.com>