Let me try with 2.9.2 Guru. On Mon, Jul 9, 2018 at 3:25 PM, Guru Shetty <[email protected]> wrote:
> That is a different ovsdb-server (used for OVS). The ovsdb-server used for > OVN databases does not look to be running. OVS 2.5.2 is very old and I am > not sure what is causing this behavior. You can look at logs in > /var/log/openvswitch/ovsdb-server-*.log for hints. I suggest to move to > OVS 2.9.2. > > On 9 July 2018 at 11:43, Sandeep Adapala <[email protected]> > wrote: > >> Looks like it is running >> >> ubuntu@tbserver14:~$ ps -ef | grep ovsdb-server >> root 4696 1 0 10:58 ? 00:00:00 ovsdb-server: monitoring pid >> 4697 (healthy) >> root 4697 4696 0 10:58 ? 00:00:00 ovsdb-server >> /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info >> --remote=punix:/var/run/openvswitch/db.sock >> --private-key=db:Open_vSwitch,SSL,private_key >> --certificate=db:Open_vSwitch,SSL,certificate >> --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir >> --log-file=/var/log/openvswitch/ovsdb-server.log >> --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor >> ubuntu 10124 9325 0 14:42 pts/5 00:00:00 grep --color=auto >> ovsdb-server >> ubuntu@tbserver14:~$ >> >> >> On Mon, Jul 9, 2018 at 2:24 PM, Guru Shetty <[email protected]> wrote: >> >>> What does "ps -ef | grep ovsdb-server" say? >>> >>> On 9 July 2018 at 11:23, Sandeep Adapala <[email protected]> >>> wrote: >>> >>>> Same output >>>> >>>> ubuntu@tbserver14:~$ sudo /usr/share/openvswitch/scripts/ovn-ctl >>>> restart_northd >>>> * Exiting ovn-northd (5052) >>>> * Removing OVN_Northbound from ovsdb-server >>>> * Removing OVN_Southbound from ovsdb-server >>>> * Adding /etc/openvswitch/ovnnb.db to ovsdb-server >>>> * Adding /etc/openvswitch/ovnsb.db to ovsdb-server >>>> * Starting ovn-northd >>>> ubuntu@tbserver14:~$ sudo ovn-nbctl --timeout=5 >>>> --db=tcp:192.168.14.33:6642 lswitch-add 6caabc22601b17134a4c54cc33be18 >>>> ovn-nbctl: tcp:192.168.14.33:6642: database connection failed (Connection >>>> refused) >>>> ubuntu@tbserver14:~$ >>>> >>>> >>>> On Mon, Jul 9, 2018 at 2:22 PM, Guru Shetty <[email protected]> wrote: >>>> >>>>> Run "/usr/share/openvswitch/scripts/ovn-ctl restart_northd" and see >>>>> if that helps. >>>>> >>>>> On 9 July 2018 at 11:19, Sandeep Adapala <[email protected]> >>>>> wrote: >>>>> >>>>>> I think I am doing something wrong Guru. >>>>>> >>>>>> I got this after running the command >>>>>> >>>>>> ubuntu@tbserver14:~$ sudo ovn-nbctl --timeout=5 >>>>>> --db=tcp:192.168.14.33:6642 lswitch-add 6caabc22601b17134a4c54cc33be18 >>>>>> ovn-nbctl: tcp:192.168.14.33:6642: database connection failed >>>>>> (Connection refused) >>>>>> ubuntu@tbserver14:~$ >>>>>> >>>>>> >>>>>> you think the database is not up yet? >>>>>> >>>>>> >>>>>> I have run this to start the DB >>>>>> >>>>>> ovs-vsctl set Open_vSwitch . \ >>>>>> external_ids:ovn-remote="tcp:192.168.14.33:6642" \ >>>>>> external_ids:ovn-nb="tcp:192.168.14.33:6641" \ >>>>>> external_ids:ovn-encap-ip=192.168.14.33 \ >>>>>> external_ids:ovn-encap-type=geneve >>>>>> I don't have a remote server so I have used the same for remote and local >>>>>> >>>>>> >>>>>> On Mon, Jul 9, 2018 at 2:12 PM, Guru Shetty <[email protected]> wrote: >>>>>> >>>>>>> What happens when you run the following command on that box: >>>>>>> >>>>>>> ovn-nbctl --timeout=5 --db=tcp:192.168.14.33:6642 ls-add >>>>>>> 6caabc22601b17134a4c54cc33be18 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 9 July 2018 at 11:08, Sandeep Adapala <[email protected] >>>>>>> > wrote: >>>>>>> >>>>>>>> Hello Guru, >>>>>>>> >>>>>>>> below are the versions >>>>>>>> >>>>>>>> ubuntu@tbserver14:~$ ovs-vsctl --version; ovn-nbctl --version >>>>>>>> ovs-vsctl (Open vSwitch) 2.5.4 >>>>>>>> Compiled Oct 30 2017 10:38:01 >>>>>>>> DB Schema 7.12.1 >>>>>>>> ovn-nbctl (Open vSwitch) 2.5.4 >>>>>>>> Compiled Oct 30 2017 10:38:01 >>>>>>>> DB Schema 2.0.1 >>>>>>>> >>>>>>>> OVN plugin is also the same version. >>>>>>>> >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> Sandeep >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Jul 9, 2018 at 2:05 PM, Guru Shetty <[email protected]> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On 9 July 2018 at 09:33, Sandeep Adapala < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hello All, >>>>>>>>>> >>>>>>>>>> I am planning to have 2 containers talk to each other using >>>>>>>>>> ovs-dpdk >>>>>>>>>> interface on a same host. this is how I started installing OVN on >>>>>>>>>> Docker. >>>>>>>>>> >>>>>>>>>> http://docs.openvswitch.org/en/latest/howto/docker/#the-over >>>>>>>>>> lay-mode >>>>>>>>>> >>>>>>>>>> I was trying to create a network using docker but I get the same >>>>>>>>>> error >>>>>>>>>> every time not sure what I am doing wrong can you please help me >>>>>>>>>> out. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> NID=`sudo docker network create -d openvswitch --subnet= >>>>>>>>>> 192.168.1.0/24 foo` >>>>>>>>>> Error response from daemon: remote: create_network: lswitch-add >>>>>>>>>> Fatal error >>>>>>>>>> executing ['ovn-nbctl', '--timeout=5', '-vconsole:off', '--db=tcp: >>>>>>>>>> 192.168.14.33:6642', 'lswitch-add', >>>>>>>>>> u'6caabc22601b17134a4c54cc33be18 >>>>>>>>>> fcf3653377be99609969cc971c5f749db7', '--', 'set', >>>>>>>>>> 'Logical_Switch', u' >>>>>>>>>> 6caabc22601b17134a4c54cc33be18fcf3653377be99609969cc971c5f74 >>>>>>>>>> 9db7', >>>>>>>>>> u'external_ids:subnet=192.168.1.0/24', >>>>>>>>>> u'external_ids:gateway_ip=192. >>>>>>>>>> 168.1.1'] >>>>>>>>>> >>>>>>>>> >>>>>>>>> What version of OVS/OVN (ovs-vsctl --version; ovn-nbctl --version) >>>>>>>>> are you using? >>>>>>>>> >>>>>>>>> Is the OVN docker plugin version different? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Regards, >>>>>>>>>> Sandeep >>>>>>>>>> _______________________________________________ >>>>>>>>>> dev mailing list >>>>>>>>>> [email protected] >>>>>>>>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
