Cannot inetgrate Opendaylight with OpenDove


rao wrk <raowrk@...>
 

Hi All

I want to integrate DOVE with opendaylight controller. As mentioned in opendaylight wiki i followed following steps :


1. Pull the code from http in controller/opendaylight directory


git clone https://git.opendaylight.org/gerrit/p/opendove.git;(cd opendove; curl -o .git/hooks/commit-msg https://git.opendaylight.org/gerrit/tools/hooks/commit-msg;chmod 755 .git/hooks/commit-msg;git config remote.origin.push HEAD:refs/for/master)


  1. mvn clean install in controller/opendaylight/opendove directory

  2. It was build success

  3. Downloaded neccessary files python-dev, libjansson-dev, libevent-dev, openssl

  4. Read PYTHON_README file and download the necessary files.

  5. The os_distributor_script file was already executable (chmod +x)

    When i am trying to compile at odcs directory it is showing error. I tried to make at :

    /controller/opendaylight/opendove/odcs : make


which shows an error as :


rm -rf /root/controller/opendaylight/opendove/odcs/build

** Preparing build tree

mkdir -p /root/controller/opendaylight/opendove/odcs/build

gcc -c -I/usr/include/python2.7 -I/usr/include/python2.7 -Iclient_server_protocol/inc -Idata_handler/inc -Itimer/inc -Icontroller_protocol/inc -Icluster_protocol/inc -Iinc -I/opt/libev/include -I/opt/jansson/include -Ifd_process -Iosw/inc -Icli/inc -I/opt/libevent/include -fPIC -fno-strict-aliasing -g -fno-inline -O0 -Werror -DNDEBUG -DNON_POSIX_MQUEUE -fwrapv -Wall -DDPS_SERVER init/init.c -o init/init.o

In file included from init/init.c:25:0:

inc/include.h:77:26: fatal error: event2/event.h: No such file or directory

compilation terminated.

make: *** [init/init.o] Error 1


Even i tried installing OpenDove from installation details as stated in : https://wiki.opendaylight.org/view/Open_Dove:Installation but could not get code for

oDCS , oDGW which stated steps :

  1. Download RPM from TBD

  2. After install, build server is located in /opt/opendove/odcs

  3. Download oDGW from TBD

  4. TBD

Can you please guide me with the steps where i can implement OPenDove with opendaylight controller ?

Thankyou


Ryan Moats <rmoats@...>
 

It looks like you have the wrong libevent-dev package - I suspect you have the one for libevent1, whereas you need the one for libevent2.

Ryan Moats

rao wrk ---02/19/2014 10:09:59 AM---Hi All I want to integrate DOVE with opendaylight controller. As mentioned in

From: rao wrk <raowrk@...>
To: opendove-dev@...,
Date: 02/19/2014 10:09 AM
Subject: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove
Sent by: opendove-dev-bounces@...





Hi All

I want to integrate DOVE with opendaylight controller. As mentioned in opendaylight wiki i followed following steps :

1. Pull the code from http in controller/opendaylight directory

git clone https://git.opendaylight.org/gerrit/p/opendove.git;(cd opendove; curl -o .git/hooks/commit-msg https://git.opendaylight.org/gerrit/tools/hooks/commit-msg;chmod 755 .git/hooks/commit-msg;git config remote.origin.push HEAD:refs/for/master)

    2. mvn clean install in controller/opendaylight/opendove directory
    3. It was build success
    4. Downloaded neccessary files python-dev, libjansson-dev, libevent-dev, openssl
    5. Read PYTHON_README file and download the necessary files.
    6. The os_distributor_script file was already executable (chmod +x)

      When i am trying to compile at odcs directory it is showing error. I tried to make at :

      /controller/opendaylight/opendove/odcs : make

which shows an error as :

rm -rf /root/controller/opendaylight/opendove/odcs/build

** Preparing build tree

mkdir -p /root/controller/opendaylight/opendove/odcs/build

gcc -c -I/usr/include/python2.7 -I/usr/include/python2.7 -Iclient_server_protocol/inc -Idata_handler/inc -Itimer/inc -Icontroller_protocol/inc -Icluster_protocol/inc -Iinc -I/opt/libev/include -I/opt/jansson/include -Ifd_process -Iosw/inc -Icli/inc -I/opt/libevent/include -fPIC -fno-strict-aliasing -g -fno-inline -O0 -Werror -DNDEBUG -DNON_POSIX_MQUEUE -fwrapv -Wall -DDPS_SERVER init/init.c -o init/init.o

In file included from init/init.c:25:0:

inc/include.h:77:26: fatal error: event2/event.h: No such file or directory

compilation terminated.

make: *** [init/init.o] Error 1

Even i tried installing OpenDove from installation details as stated in : https://wiki.opendaylight.org/view/Open_Dove:Installation but could not get code for

oDCS , oDGW which stated steps :

    1. Download RPM from TBD
    2. After install, build server is located in /opt/opendove/odcs
    3. Download oDGW from TBD
    4. TBD

Can you please guide me with the steps where i can implement OPenDove with opendaylight controller ?

Thankyou_______________________________________________
opendove-dev mailing list
opendove-dev@...
https://lists.opendaylight.org/mailman/listinfo/opendove-dev


rao wrk <raowrk@...>
 

Hi Ryan


Thanks for replying .Yes today i could run make file in the code and could build the code as i downloaded the package . The issue i came across today was in oDCS directory i run
as stated in https://wiki.opendaylight.org/view/Open_Dove:Running_Components :
./build/dcs_server.py 12345
 pass : Hook&Ladder


It took me to developer login and the CLI shows :
config>>

what does this config >> means ?
I just run controller_add <odmc address> 8080        where i mentioned odmc_address as controller ip
What else i have to do in config >> ?

Also in this link it is wriiten under Run setup:

$ sudo ./setup-dove.sh <loacl_ip> <dmc_ip>

what does <loacl_ip> means ?? nd dmc_ip = controller ip ?

Moreover in this link  https://wiki.opendaylight.org/view/Open_Dove:Zero_Day_Tasks

Enable oDCS Role

  1. Issue a GET request to http://<odmc_address>:8080/controller/nb/v2/opendove/odmc/serviceAppliances
  2. In response, copy out the uuid of the oDCS and issue a PUT request to http://<odmc_address>:8080/controller/nb/v2/opendove/odmc/odcs/<uuid>/role with the following JSON body:
{ "service_appliance": { "isDCS": true } }

i cannot GET service appliances . Do we need to run setup to access the link ?

Thankyou
 



On Wed, Feb 19, 2014 at 9:52 PM, Ryan Moats <rmoats@...> wrote:

It looks like you have the wrong libevent-dev package - I suspect you have the one for libevent1, whereas you need the one for libevent2.

Ryan Moats

rao wrk ---02/19/2014 10:09:59 AM---Hi All I want to integrate DOVE with opendaylight controller. As mentioned in

From: rao wrk <raowrk@...>
To: opendove-dev@...,
Date: 02/19/2014 10:09 AM
Subject: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove
Sent by: opendove-dev-bounces@...





Hi All

I want to integrate DOVE with opendaylight controller. As mentioned in opendaylight wiki i followed following steps :

1. Pull the code from http in controller/opendaylight directory

git clone https://git.opendaylight.org/gerrit/p/opendove.git;(cd opendove; curl -o .git/hooks/commit-msg https://git.opendaylight.org/gerrit/tools/hooks/commit-msg;chmod 755 .git/hooks/commit-msg;git config remote.origin.push HEAD:refs/for/master)

    2. mvn clean install in controller/opendaylight/opendove directory
    3. It was build success
    4. Downloaded neccessary files python-dev, libjansson-dev, libevent-dev, openssl
    5. Read PYTHON_README file and download the necessary files.
    6. The os_distributor_script file was already executable (chmod +x)

      When i am trying to compile at odcs directory it is showing error. I tried to make at :

      /controller/opendaylight/opendove/odcs : make

which shows an error as :

rm -rf /root/controller/opendaylight/opendove/odcs/build

** Preparing build tree

mkdir -p /root/controller/opendaylight/opendove/odcs/build

gcc -c -I/usr/include/python2.7 -I/usr/include/python2.7 -Iclient_server_protocol/inc -Idata_handler/inc -Itimer/inc -Icontroller_protocol/inc -Icluster_protocol/inc -Iinc -I/opt/libev/include -I/opt/jansson/include -Ifd_process -Iosw/inc -Icli/inc -I/opt/libevent/include -fPIC -fno-strict-aliasing -g -fno-inline -O0 -Werror -DNDEBUG -DNON_POSIX_MQUEUE -fwrapv -Wall -DDPS_SERVER init/init.c -o init/init.o

In file included from init/init.c:25:0:

inc/include.h:77:26: fatal error: event2/event.h: No such file or directory

compilation terminated.

make: *** [init/init.o] Error 1

Even i tried installing OpenDove from installation details as stated in : https://wiki.opendaylight.org/view/Open_Dove:Installation but could not get code for

oDCS , oDGW which stated steps :
    1. Download RPM from TBD
    2. After install, build server is located in /opt/opendove/odcs
    3. Download oDGW from TBD
    4. TBD

Can you please guide me with the steps where i can implement OPenDove with opendaylight controller ?

Thankyou_______________________________________________
opendove-dev mailing list
opendove-dev@...
https://lists.opendaylight.org/mailman/listinfo/opendove-dev




--
With Regards

SHWETA RAO


Ryan Moats <rmoats@...>
 

rao wrk <raowrk@...> wrote on 02/19/2014 11:35:36 AM:

> From: rao wrk <raowrk@...>

> To: Ryan Moats/Omaha/IBM@IBMUS,
> Cc: opendove-dev@...
> Date: 02/19/2014 11:37 AM
> Subject: Re: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove
>
> Hi Ryan

>
> Thanks for replying .Yes today i could run make file in the code and
> could build the code as i downloaded the package . The issue i came
> across today was in oDCS directory i run

> as stated in https://wiki.opendaylight.org/view/Open_Dove:Running_Components:
> ./build/dcs_server.py 12345
>  pass : Hook&Ladder
>
>
> It took me to developer login and the CLI shows :
> config>>

>
> what does this config >> means ?


It's a prompt, that's all

> I just run controller_add <odmc address> 8080        where i
> mentioned odmc_address as controller ip
>

> What else i have to do in config >> ?

For this stage of configuration, that's it.  You can also do some other things later to verify configuration...

> Also in this link it is wriiten under Run setup:
>
> $ sudo ./setup-dove.sh <loacl_ip> <dmc_ip>
>
> what does <loacl_ip> means ?? nd dmc_ip = controller ip ?


The local_ip is the IP of the host the dove agent has been installed on and yes dmc_ip is the odmc (or controller) IP address

> Moreover in this link  https://wiki.opendaylight.org/view/
> Open_Dove:Zero_Day_Tasks
>

> Enable oDCS Role
> 1. Issue a GET request to http://<odmc_address>:8080/controller/nb/
> v2/opendove/odmc/serviceAppliances

> 2. In response, copy out the uuid of the oDCS and issue a PUT request to
> http://<odmc_address>:8080/controller/nb/v2/opendove/odmc/odcs/
> <uuid>/role with the following JSON body:

> { "service_appliance": { "isDCS": true } }

> i cannot GET service appliances . Do we need to run setup to access the link ?

A couple of questions in reply:

1) which edition of the controller are you using (base edition of virtualization)?
2) is the controller running?


rao wrk <raowrk@...>
 

Hi

The versions which controller version property file state is :

org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = 424b73ce019d401b5e4ebbf14613983e092378e3
org.opendaylight.controller.build.user = root
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1392724741857
org.opendaylight.controller.build.machine = **********


And yes the controller is running . I am using mininet 2.1.0 version and topology sudo mn --topo tree,2 --controller 'remote,ip=192.168.56.1:6633' --switch ovsk,protocols=OpenFlow13 on mininet .

But i am not able to integrate opendaylight controller with OpenDove and i am working on it .










On Wed, Feb 19, 2014 at 11:27 PM, Ryan Moats <rmoats@...> wrote:

rao wrk <raowrk@...> wrote on 02/19/2014 11:35:36 AM:

> From: rao wrk <raowrk@...>

> To: Ryan Moats/Omaha/IBM@IBMUS,
> Cc: opendove-dev@...
> Date: 02/19/2014 11:37 AM
> Subject: Re: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove


>
> Hi Ryan

>
> Thanks for replying .Yes today i could run make file in the code and
> could build the code as i downloaded the package . The issue i came
> across today was in oDCS directory i run

> as stated in https://wiki.opendaylight.org/view/Open_Dove:Running_Components:
> ./build/dcs_server.py 12345
>  pass : Hook&Ladder
>
>
> It took me to developer login and the CLI shows :
> config>>

>
> what does this config >> means ?


It's a prompt, that's all


> I just run controller_add <odmc address> 8080        where i
> mentioned odmc_address as controller ip
>

> What else i have to do in config >> ?

For this stage of configuration, that's it.  You can also do some other things later to verify configuration...


> Also in this link it is wriiten under Run setup:
>
> $ sudo ./setup-dove.sh <loacl_ip> <dmc_ip>
>
> what does <loacl_ip> means ?? nd dmc_ip = controller ip ?


The local_ip is the IP of the host the dove agent has been installed on and yes dmc_ip is the odmc (or controller) IP address

> Moreover in this link  https://wiki.opendaylight.org/view/
> Open_Dove:Zero_Day_Tasks
>

> Enable oDCS Role
> 1. Issue a GET request to http://<odmc_address>:8080/controller/nb/
> v2/opendove/odmc/serviceAppliances

> 2. In response, copy out the uuid of the oDCS and issue a PUT request to
> http://<odmc_address>:8080/controller/nb/v2/opendove/odmc/odcs/
> <uuid>/role with the following JSON body:

> { "service_appliance": { "isDCS": true } }

> i cannot GET service appliances . Do we need to run setup to access the link ?

A couple of questions in reply:

1) which edition of the controller are you using (base edition of virtualization)?
2) is the controller running?




--
With Regards

SHWETA RAO


Ryan Moats <rmoats@...>
 

First, that property files does not look like anything I get from the zip files in the hydrogen download page.  

Second, the property file does not tell me which edition of OpenDaylight you have, the contents of the plugins directory will do that...

Third, OpenDOVE does not work with mininet...

Ryan

rao wrk ---02/19/2014 11:01:07 PM---Hi The versions which controller version property file state is :

From: rao wrk <raowrk@...>
To: Ryan Moats/Omaha/IBM@IBMUS,
Cc: opendove-dev@...
Date: 02/19/2014 11:01 PM
Subject: Re: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove





Hi

The versions which controller version property file state is :

org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = 424b73ce019d401b5e4ebbf14613983e092378e3
org.opendaylight.controller.build.user = root
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1392724741857
org.opendaylight.controller.build.machine = **********


And yes the controller is running . I am using mininet 2.1.0 version and topology sudo mn --topo tree,2 --controller 'remote,ip=192.168.56.1:6633' --switch ovsk,protocols=OpenFlow13 on mininet .

But i am not able to integrate opendaylight controller with OpenDove and i am working on it .










On Wed, Feb 19, 2014 at 11:27 PM, Ryan Moats <rmoats@...> wrote:
    rao wrk <raowrk@...> wrote on 02/19/2014 11:35:36 AM:

    > From: rao wrk <
    raowrk@...>
    > To: Ryan Moats/Omaha/IBM@IBMUS,
    > Cc:
    opendove-dev@...
    > Date: 02/19/2014 11:37 AM
    > Subject: Re: [opendove-dev] Cannot inetgrate Opendaylight with OpenDove


    >
    > Hi Ryan


    >
    > Thanks for replying .Yes today i could run make file in the code and
    > could build the code as i downloaded the package . The issue i came
    > across today was in oDCS directory i run
    > as stated in
    https://wiki.opendaylight.org/view/Open_Dove:Running_Components:
    > ./build/dcs_server.py 12345
    >  pass : Hook&Ladder
    >
    >
    > It took me to developer login and the CLI shows :
    > config>>
    >
    > what does this config >> means ?


    It's a prompt, that's all


    > I just run controller_add <odmc address> 8080        where i
    > mentioned odmc_address as controller ip
    >
    > What else i have to do in config >> ?


    For this stage of configuration, that's it.  You can also do some other things later to verify configuration...


    > Also in this link it is wriiten under Run setup:
    >
    > $ sudo ./setup-dove.sh <loacl_ip> <dmc_ip>
    >
    > what does <loacl_ip> means ?? nd dmc_ip = controller ip ?


    The local_ip is the IP of the host the dove agent has been installed on and yes dmc_ip is the odmc (or controller) IP address

    > Moreover in this link  
    https://wiki.opendaylight.org/view/
    > Open_Dove:Zero_Day_Tasks
    >


    > Enable oDCS Role

    > 1. Issue a GET request to http://<odmc_address>:8080/controller/nb/
    > v2/opendove/odmc/serviceAppliances
    > 2. In response, copy out the uuid of the oDCS and issue a PUT request to

    > http://<odmc_address>:8080/controller/nb/v2/opendove/odmc/odcs/
    > <uuid>/role with the following JSON body:


    > { "service_appliance": { "isDCS": true } }

    > i cannot GET service appliances . Do we need to run setup to access the link ?


    A couple of questions in reply:

    1) which edition of the controller are you using (base edition of virtualization)?
    2) is the controller running?





--
With Regards


SHWETA RAO