Since the path is not being updated correctly, from build directory (in my case 
ovs/_gcc), check and show the output of

sh -x ../tutorial/ovs-sandbox --ovn


Output should include something similar to below

.
.
+ 
PATH=/home/dball/openvswitch/ovs/_gcc/ovn/controller:/home/dball/openvswitch/ovs/_gcc/ovn/controller-vtep:/home/dball/openvswitch/ovs/_gcc/ovn/northd:/home/dball/openvswitch/ovs/_gcc/ovn/utilities:/home/dball/openvswitch/ovs/_gcc/ovsdb:/home/dball/openvswitch/ovs/_gcc/vswitchd:/home/dball/openvswitch/ovs/_gcc/utilities:/home/dball/openvswitch/ovs/_gcc/vtep:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
.
.





On 4/28/16, 1:01 PM, "discuss on behalf of Maurice Qureshi" 
<discuss-boun...@openvswitch.org on behalf of maurice.qure...@calix.com> wrote:

>Hi Justin,
>
>As you can see from the logs below, 
>
>1. ovn-nbctl doesn't work
>2. The output of all the commands you have asked for is provided without any 
>breaks
>3. "git log" shows the last commit of Apr. 27th
>
>mqureshi@vmexa-mqureshi:~/ovs$ make sandbox SANDBOXFLAGS="--ovn"
>make  all-recursive
>make[1]: Entering directory `/home/mqureshi/ovs'
>Making all in datapath
>make[2]: Entering directory `/home/mqureshi/ovs/datapath'
>make[3]: Entering directory `/home/mqureshi/ovs/datapath'
>make[3]: Leaving directory `/home/mqureshi/ovs/datapath'
>make[2]: Leaving directory `/home/mqureshi/ovs/datapath'
>make[2]: Entering directory `/home/mqureshi/ovs'
>make[3]: Entering directory `/home/mqureshi/ovs/datapath'
>make[3]: `distfiles' is up to date.
>make[3]: Leaving directory `/home/mqureshi/ovs/datapath'
>make[2]: Leaving directory `/home/mqureshi/ovs'
>make[1]: Leaving directory `/home/mqureshi/ovs'
>cd ./tutorial && MAKE=make ./ovs-sandbox -b /home/mqureshi/ovs --ovn
>make[1]: Entering directory `/home/mqureshi/ovs'
> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man1'
> /usr/bin/install -c -m 644 utilities/ovs-pcap.1 utilities/ovs-tcpundump.1 
> ovsdb/ovsdb-tool.1 ovsdb/ovsdb-client.1 ovsdb/ovsdb-server.1 
> '/home/mqureshi/ovs/tutorial/sandbox/man/man1'
> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man5'
> /usr/bin/install -c -m 644 vswitchd/ovs-vswitchd.conf.db.5 vtep/vtep.5 
> ovn/ovn-sb.5 ovn/ovn-nb.5 '/home/mqureshi/ovs/tutorial/sandbox/man/man5'
> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man7'
> /usr/bin/install -c -m 644 ovn/ovn-architecture.7 
> '/home/mqureshi/ovs/tutorial/sandbox/man/man7'
> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man8'
> /usr/bin/install -c -m 644 utilities/ovs-appctl.8 utilities/ovs-ctl.8 
> utilities/ovs-testcontroller.8 utilities/ovs-dpctl.8 
> utilities/ovs-dpctl-top.8 utilities/ovs-l3ping.8 utilities/ovs-ofctl.8 
> utilities/ovs-parse-backtrace.8 utilities/ovs-pki.8 
> utilities/ovs-vlan-bug-workaround.8 utilities/ovs-test.8 
> utilities/ovs-vlan-test.8 utilities/ovs-vsctl.8 
> utilities/bugtool/ovs-bugtool.8 vswitchd/ovs-vswitchd.8 vtep/vtep-ctl.8 
> ovn/controller/ovn-controller.8 ovn/controller-vtep/ovn-controller-vtep.8 
> ovn/northd/ovn-northd.8 ovn/utilities/ovn-ctl.8 ovn/utilities/ovn-nbctl.8 
> ovn/utilities/ovn-sbctl.8 '/home/mqureshi/ovs/tutorial/sandbox/man/man8'
>make[1]: Leaving directory `/home/mqureshi/ovs'
>
>
>
>----------------------------------------------------------------------
>You are running in a dummy Open vSwitch environment.  You can use
>ovs-vsctl, ovs-ofctl, ovs-appctl, and other tools to work with the
>dummy switch.
>
>This environment also has the OVN daemons and databases enabled.
>You can use ovn-nbctl and ovn-sbctl to interact with the OVN databases.
>
>Log files, pidfiles, and the configuration database are in the
>"sandbox" subdirectory.
>
>Exit the shell to kill the running daemons.
>mqureshi@vmexa-mqureshi:~/ovs/tutorial$ echo $PATH
>/tools/sw/exa_2.0/exa-tools:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/mqureshi/bin:/sbin
>mqureshi@vmexa-mqureshi:~/ovs/tutorial$ ovn-nbctl show
>ovn-nbctl: command not found
>mqureshi@vmexa-mqureshi:~/ovs/tutorial$ git log
>commit a78350d91a67f977608c2f47b4b17d6e045e7930
>Author: Pravin B Shelar <pshe...@ovn.org>
>Date:   Wed Apr 27 14:57:33 2016 -0700
>
>    stt: linearize for CONFIG_SLUB case
>
>
>-----Original Message-----
>From: Justin Pettit [mailto:jpet...@ovn.org] 
>Sent: Thursday, April 28, 2016 12:11 PM
>To: Maurice Qureshi <maurice.qure...@calix.com>
>Cc: discuss@openvswitch.org
>Subject: Re: [ovs-discuss] OVN Questions
>
>And "ovn-nbctl" doesn't w?ork?  Can you show me all the commands I've asked 
>and their output without any breaks
>
>       - make sandbox SANDBOXFLAGS="--ovn"
>       - echo $PATH
>       - ovn-nbctl show
>
>Are you pulling the source code from the tip of master?
>
>--Justin
>
>
>> On Apr 28, 2016, at 1:59 PM, Maurice Qureshi <maurice.qure...@calix.com> 
>> wrote:
>> 
>> Below is the output of "make sandbox" from the time when I typed "make 
>> sandbox SANDBOXFLAGS="--ovn". Do I need to turn on some other flag also to 
>> make it more verbose.
>> 
>> mqureshi@vmexa-mqureshi:~/ovs$ make sandbox SANDBOXFLAGS="--ovn"          
>> make  all-recursive
>> make[1]: Entering directory `/home/mqureshi/ovs'
>> Making all in datapath
>> make[2]: Entering directory `/home/mqureshi/ovs/datapath'
>> make[3]: Entering directory `/home/mqureshi/ovs/datapath'
>> make[3]: Leaving directory `/home/mqureshi/ovs/datapath'
>> make[2]: Leaving directory `/home/mqureshi/ovs/datapath'
>> make[2]: Entering directory `/home/mqureshi/ovs'
>> make[3]: Entering directory `/home/mqureshi/ovs/datapath'
>> make[3]: `distfiles' is up to date.
>> make[3]: Leaving directory `/home/mqureshi/ovs/datapath'
>> make[2]: Leaving directory `/home/mqureshi/ovs'
>> make[1]: Leaving directory `/home/mqureshi/ovs'
>> cd ./tutorial && MAKE=make ./ovs-sandbox -b /home/mqureshi/ovs --ovn
>> make[1]: Entering directory `/home/mqureshi/ovs'
>> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man1'
>> /usr/bin/install -c -m 644 utilities/ovs-pcap.1 utilities/ovs-tcpundump.1 
>> ovsdb/ovsdb-tool.1 ovsdb/ovsdb-client.1 ovsdb/ovsdb-server.1 
>> '/home/mqureshi/ovs/tutorial/sandbox/man/man1'
>> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man5'
>> /usr/bin/install -c -m 644 vswitchd/ovs-vswitchd.conf.db.5 vtep/vtep.5 
>> ovn/ovn-sb.5 ovn/ovn-nb.5 '/home/mqureshi/ovs/tutorial/sandbox/man/man5'
>> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man7'
>> /usr/bin/install -c -m 644 ovn/ovn-architecture.7 
>> '/home/mqureshi/ovs/tutorial/sandbox/man/man7'
>> /bin/mkdir -p '/home/mqureshi/ovs/tutorial/sandbox/man/man8'
>> /usr/bin/install -c -m 644 utilities/ovs-appctl.8 utilities/ovs-ctl.8 
>> utilities/ovs-testcontroller.8 utilities/ovs-dpctl.8 
>> utilities/ovs-dpctl-top.8 utilities/ovs-l3ping.8 utilities/ovs-ofctl.8 
>> utilities/ovs-parse-backtrace.8 utilities/ovs-pki.8 
>> utilities/ovs-vlan-bug-workaround.8 utilities/ovs-test.8 
>> utilities/ovs-vlan-test.8 utilities/ovs-vsctl.8 
>> utilities/bugtool/ovs-bugtool.8 vswitchd/ovs-vswitchd.8 vtep/vtep-ctl.8 
>> ovn/controller/ovn-controller.8 ovn/controller-vtep/ovn-controller-vtep.8 
>> ovn/northd/ovn-northd.8 ovn/utilities/ovn-ctl.8 ovn/utilities/ovn-nbctl.8 
>> ovn/utilities/ovn-sbctl.8 '/home/mqureshi/ovs/tutorial/sandbox/man/man8'
>> make[1]: Leaving directory `/home/mqureshi/ovs'
>> 
>> 
>> 
>> ----------------------------------------------------------------------
>> You are running in a dummy Open vSwitch environment.  You can use 
>> ovs-vsctl, ovs-ofctl, ovs-appctl, and other tools to work with the 
>> dummy switch.
>> 
>> This environment also has the OVN daemons and databases enabled.
>> You can use ovn-nbctl and ovn-sbctl to interact with the OVN databases.
>> 
>> Log files, pidfiles, and the configuration database are in the 
>> "sandbox" subdirectory.
>> 
>> Exit the shell to kill the running daemons.
>> mqureshi@vmexa-mqureshi:~/ovs/tutorial
>> 
>> -----Original Message-----
>> From: Justin Pettit [mailto:jpet...@ovn.org]
>> Sent: Wednesday, April 27, 2016 8:51 PM
>> To: Maurice Qureshi <maurice.qure...@calix.com>
>> Cc: discuss@openvswitch.org
>> Subject: Re: [ovs-discuss] OVN Questions
>> 
>> You need to run "make sandbox" as shown in the presentation. It doesn't 
>> matter if you run just "make" first. 
>> 
>> I noticed if I copied and pasted from those slides it didn't work properly 
>> because the quotes were stylized and not standard. However since you still 
>> haven't shown the output that I've requested a couple of times, I can't say 
>> for sure. 
>> 
>> --Justin
>> 
>> 
>>> On Apr 27, 2016, at 8:32 PM, Maurice Qureshi <maurice.qure...@calix.com> 
>>> wrote:
>>> 
>>> Hi Justin,
>>> 
>>> In the link 
>>> "https://urldefense.proofpoint.com/v2/url?u=http-3A__benpfaff.org_-7Eblp_ovn-2Dlbnl.pdf&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dGZmbKhBG9tJHY4odedsGA&m=h-7ifxFpG2ex-XB1MvTQ7hWetF2L7yBDPw0hJkPT4E8&s=qkb1Bdud9DEKR0ds7WsyvCJOd_EcXrZSrYKT9ZV15R0&e=
>>>  ", there is a slide 
>>> titled as "Test #1 - ovs-sandbox". Based on this slide, I followed 
>>> these steps
>>> 
>>> 1: git clone 
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__github.com_openvswitch_ovs.git&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dGZmbKhBG9tJHY4odedsGA&m=h-7ifxFpG2ex-XB1MvTQ7hWetF2L7yBDPw0hJkPT4E8&s=vNl5O-6U1y_qyt69zrgI7bInTAHaMDsy0Nk_mc1hymA&e=
>>>  
>>> 2: cd ovs
>>> 3a:  ./boot.sh
>>> 3b: ./configure
>>> 3c: make
>>> 4: make sandbox SANDBOXFLAGS="--ovn"
>>> 
>>> Should I have done "make sandbox", instead of "make" in step "3c" above. 
>>> These slides may be old, so I may be missing some important step.
>>> 
>>> Thanks
>>> Maurice
>>> 
>>> -----Original Message-----
>>> From: Justin Pettit [mailto:jpet...@ovn.org]
>>> Sent: Wednesday, April 27, 2016 3:02 PM
>>> To: Maurice Qureshi <maurice.qure...@calix.com>
>>> Cc: discuss@openvswitch.org
>>> Subject: Re: [ovs-discuss] OVN Questions
>>> 
>>> It doesn't look like it got started properly. Can you provide all the 
>>> output starting from when you type "make sandbox"?
>>> 
>>> --Justin
>>> 
>>> 
>>>> On Apr 27, 2016, at 4:53 PM, Maurice Qureshi <maurice.qure...@calix.com> 
>>>> wrote:
>>>> 
>>>> Hi Justin,
>>>> 
>>>> Below is the output of echo $PATH. The output of "make sandbox" is 
>>>> attached.
>>>> 
>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$ echo $PATH
>>>> /tools/sw/exa_2.0/exa-tools:/usr/lib64/ccache:/usr/local/bin:/usr/bin:
>>>> /bin:/usr/local/sbin:/usr/sbin:/home/mqureshi/bin:/sbin
>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$
>>>> 
>>>> Thanks
>>>> Maurice
>>>> 
>>>> -----Original Message-----
>>>> From: Justin Pettit [mailto:jpet...@ovn.org]
>>>> Sent: Wednesday, April 27, 2016 10:58 AM
>>>> To: Maurice Qureshi <maurice.qure...@calix.com>
>>>> Cc: discuss@openvswitch.org
>>>> Subject: Re: [ovs-discuss] OVN Questions
>>>> 
>>>> Can you show all the commands and output from when you run "make sandbox"? 
>>>> Also, what does "echo $PATH" show when running in the sanbox shell?
>>>> 
>>>> --Justin
>>>> 
>>>> 
>>>>> On Apr 27, 2016, at 12:37 PM, Maurice Qureshi <maurice.qure...@calix.com> 
>>>>> wrote:
>>>>> 
>>>>> Hi Justin,
>>>>> 
>>>>> None of the ovn- commands are available.
>>>>> 
>>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$  ovn-nbctl lswitch-add sw0
>>>>> ovn-nbctl: command not found
>>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$ whereis  ovn-nbctl
>>>>> ovn-nbctl:
>>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$ which ovn-nbctl 
>>>>> mqureshi@vmexa-mqureshi:~/ovs/tutorial$
>>>>> 
>>>>> -----Original Message-----
>>>>> From: Justin Pettit [mailto:jpet...@ovn.org]
>>>>> Sent: Tuesday, April 26, 2016 10:51 PM
>>>>> To: Maurice Qureshi <maurice.qure...@calix.com>
>>>>> Cc: discuss@openvswitch.org
>>>>> Subject: Re: [ovs-discuss] OVN Questions
>>>>> 
>>>>> 
>>>>>> On Apr 26, 2016, at 8:16 PM, Maurice Qureshi <maurice.qure...@calix.com> 
>>>>>> wrote:
>>>>>> 
>>>>>> Have following questions on OVN
>>>>>> 
>>>>>> 1.      Tried to use the ovs sandbox as described in 
>>>>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__benpfaff.org_-7Eblp_ovn-2Dlbnl.pdf&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dGZmbKhBG9tJHY4odedsGA&m=h-7ifxFpG2ex-XB1MvTQ7hWetF2L7yBDPw0hJkPT4E8&s=qkb1Bdud9DEKR0ds7WsyvCJOd_EcXrZSrYKT9ZV15R0&e=
>>>>>>  . Got following message, but the commands like ovn-nbctl are failing. 
>>>>>> Both OVN daemons (ovn-northd and ovn-controller) are running in addition 
>>>>>> to ovn-controller-vtep. I am using Ubuntu 14.04 LTS
>>>>> 
>>>>> What error are you seeing?  I checked out the latest code, and it works 
>>>>> for me.
>>>>> 
>>>>> --Justin
>>>> 
>>>> <make_sandbox.txt>
>>> 
>> 
>
>_______________________________________________
>discuss mailing list
>discuss@openvswitch.org
>https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailman_listinfo_discuss&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dGZmbKhBG9tJHY4odedsGA&m=h-7ifxFpG2ex-XB1MvTQ7hWetF2L7yBDPw0hJkPT4E8&s=NHLZJ93vwRCOZ-nh0yGFIv1__R2mcjdUDxm9icqw2MA&e=
> 
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to