Skip to content

Instantly share code, notes, and snippets.

@FlorianOtel
Last active August 29, 2015 14:26
Show Gist options
  • Save FlorianOtel/eb5926c8a640b4cd6f57 to your computer and use it in GitHub Desktop.
Save FlorianOtel/eb5926c8a640b4cd6f57 to your computer and use it in GitHub Desktop.
docker-ovs-plugin -- dep / build failure
#### CentOS 7.1 with latest updates, Golang version v1.4.2
root@gce-vsp20150218-centos71--docker-ovs ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@gce-vsp20150218-centos71--docker-ovs ~]# uname -a
Linux gce-vsp20150218-centos71--docker-ovs 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@gce-vsp20150218-centos71--docker-ovs ~]# go version
go version go1.4.2 linux/amd64
#### OVS installed and working
[root@gce-vsp20150218-centos71--docker-ovs ~]# ovs-vsctl -V
ovs-vsctl (Open vSwitch) 3.2.2-74-nuage
Compiled Jul 28 2015 17:53:17
DB Schema 7.6.3
#### Docker experimental up and running with "--default-network=ovs:ovsbr-docker0"
[root@gce-vsp20150218-centos71--docker-ovs ~]# docker version
Client:
Version: 1.8.0-dev
API version: 1.21
Go version: go1.4.2
Git commit: 6206cbe
Built: Wed Aug 5 17:31:11 UTC 2015
OS/Arch: linux/amd64
Experimental: true
Server:
Version: 1.8.0-dev
API version: 1.21
Go version: go1.4.2
Git commit: 6206cbe
Built: Wed Aug 5 17:31:11 UTC 2015
OS/Arch: linux/amd64
Experimental: true
[root@gce-vsp20150218-centos71--docker-ovs ~]# ps axuww | grep -i docker
root 8501 0.0 0.3 219152 14884 pts/1 Sl+ 10:04 0:01 docker -d --default-network=ovs:ovsbr-docker0
root 18512 0.0 0.0 112640 980 pts/5 R+ 11:48 0:00 grep --color=auto -i docker
#### Trying to build "docker-ovs-plugin" under "/usr/src/go"
mkdir -p /usr/src/go/src
export GOPATH=/usr/src/go
cd /usr/src/go/src
git clone https://github.com/gopher-net/docker-ovs-plugin.git
cd docker-ovs-plugin/plugin/
[root@gce-vsp20150218-centos71--docker-ovs plugin]# go get ./...
# github.com/docker/libnetwork/iptables
../../github.com/docker/libnetwork/iptables/firewalld.go:75: cannot use c.sysconn.Object(dbusInterface, dbus.ObjectPath(dbusPath)) (type dbus.BusObject) as type *dbus.Object in assignment: need type assertion
[root@gce-vsp20150218-centos71--docker-ovs plugin]# go run main.go
# github.com/docker/libnetwork/iptables
../../github.com/docker/libnetwork/iptables/firewalld.go:75: cannot use c.sysconn.Object(dbusInterface, dbus.ObjectPath(dbusPath)) (type dbus.BusObject) as type *dbus.Object in assignment: need type assertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment