Request help with Kandoo/Beehive Controller Startup

174 views
Skip to first unread message

Mark Kazunaga

unread,
Jun 26, 2015, 10:59:33 PM6/26/15
to beehi...@googlegroups.com
Greetings.  I appreciate any assistance you can provide.

I am trying to startup the Kandoo/Beehive controller in mininet, but am having problems with the command: 

go run main/main.go -laddr IP:PORT

I have been really struggling over the week in learning how to use go and the command.  I am not sure what to set the GOPATH to.  I am a very novice LINUX user.

I keep getting a "cannot find package error, although my GOROOT is /usr/local/go and GOPATH is set to /home/mininet/go

------------------

mininet@mininet-vm:~/go/src/github.com/kandoo/beehive-netctrl/kandoo$ ls

bh.go  detect.go  local.go  main  nonlocal.go  README.md  reroute.go

mininet@mininet-vm:~/go/src/github.com/kandoo/beehive-netctrl/kandoo$ go run main/main.go -laddr 127.0.0.1:6634

../net/ethernet/ethernet.go:13:2: cannot find package "github.com/packet/packet/src/go/packet" in any of:

        /usr/local/go/src/pkg/github.com/packet/packet/src/go/packet  (from $GOROOT)

        /home/mininet/go/src/github.com/packet/packet/src/go/packet (from $GOPATH)


mininet@mininet-vm:~/go/src/github.com/kandoo/beehive-netctrl/kandoo$ env
XDG_SESSION_ID=1
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.56.1 49613 22
SSH_TTY=/dev/pts/1
USER=mininet
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/mininet
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/gocode:/usr/local/go/bin:/home/mininet/go/bin:/usr/local/go/bin
PWD=/home/mininet/go/src/github.com/kandoo/beehive-netctrl/kandoo
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/mininet
GOROOT=/usr/local/go
LANGUAGE=en_US:
LOGNAME=mininet
SSH_CONNECTION=192.168.56.1 49613 192.168.56.101 22
LESSOPEN=| /usr/bin/lesspipe %s
GOPATH=/home/mininet/go
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
OLDPWD=/home/mininet/go/src/github.com/kandoo/beehive-netctrl
_=/usr/bin/env

Soheil Hassas Yeganeh

unread,
Jun 29, 2015, 12:36:56 PM6/29/15
to beehi...@googlegroups.com, kazu...@gmail.com
I guess you have cloned the controller by git not using "go get".

Just run this command:

You can also remove your beehive-netctrl clone and install it using go:

Hope that helps!

-- Soheil

Soheil Hassas Yeganeh

unread,
Jun 29, 2015, 1:36:18 PM6/29/15
to Mark Kazunaga, beehi...@googlegroups.com
It looks like that you are running an openflow controller (maybe another instance of beehive) on the same port (ie, 6634). You should kill that application.

Some other notes:
1. Run "go run main/main.go -help" to see the command line arguments.
2. -laddr is for the beehive listening port not for openflow. For openflow address, use "-of.addr=127.0.0.1:6633".
3. If you are running your a cluster (multiple beehive SDN controllers) on the same machine, please make sure that your listening port addresses for openflow and beehive are not the same.

-- Soheil

On Mon, Jun 29, 2015 at 1:13 PM Mark Kazunaga <kazu...@gmail.com> wrote:
Soheil, thank you.  I appreciate your help. 

It seems to have worked.  However, now I get this error:

mininet@mininet-vm:~/go/src/github.com/kandoo/beehive-netctrl/kandoo$   go run main/main.go -laddr 127.0.0.1:6634

E0626 10:20:26.179163 01847 hive.go:576] hive 1...@127.0.0.1:6634 cannot listen: listen tcp 127.0.0.1:6634: bind: address already in use
E0626 10:20:26.180861 01847 glog.go:1012] hive 1...@127.0.0.1:6634 cannot start listener: listen tcp 127.0.0.1:6634: bind: address already in use

Do you know how I can resolve this?

-Mark Kazunaga



--
You received this message because you are subscribed to a topic in the Google Groups "beehive-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beehive-dev/-uOHk7bCalc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beehive-dev...@googlegroups.com.

To post to this group, send email to beehi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beehive-dev/53c9112b-d2b8-4ba1-aac0-346fc5981b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages