[ovs-discuss] [neutron][networking-ovn] OpenStack Newton using OVN as mechanism driver is giving error.

Numan Siddique nusiddiq at redhat.com
Thu Feb 2 11:06:00 UTC 2017


On Thu, Feb 2, 2017 at 4:00 PM, pranab boruah <pranabjyotiboruah at gmail.com>
wrote:

> Numan,
> Details as requested:
>
> ___________
> ml2_conf.ini:|
> ```````````````````
> ovn_nb_connection = tcp:192.168.10.10:6641
> ovn_sb_connection = tcp:192.168.10.10:6642
> ovn_l3_mode = True
> ovn_l3_scheduler = chance
> ovn_l3_admin_net_cidr = 169.254.128.0/30
> ovn_native_dhcp = True
>
> Note: 192.168.10.10 is the management ip of controller. Firewall,
> NetworkManager and SElinux are disabled on all nodes.
> ____________________________
> output of "ps -aef | grep ovsdb" :  |
> `````````````````````````````````````````````````
> root     21220 21219  0 Feb01 ?        00:00:44 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
>
> root     21324 21323  0 Feb01 ?        00:00:03 ovsdb-server --detach
> --monitor -vconsole:off --log-file=/var/log/openvswitch/ovsdb-server-nb.log
> --remote=punix:/var/run/openvswitch/ovnnb_db.sock
> --pidfile=/var/run/openvswitch/ovnnb_db.pid --remote=db:OVN_Northbound,NB_Global,connections
> --unixctl=ovnnb_db.ctl --private-key=db:OVN_Northbound,SSL,private_key
> --certificate=db:OVN_Northbound,SSL,certificate
> --ca-cert=db:OVN_Northbound,SSL,ca_cert /etc/openvswitch/ovnnb_db.db
>
> root     21332 21331  0 Feb01 ?        00:00:03 ovsdb-server --detach
> --monitor -vconsole:off --log-file=/var/log/openvswitch/ovsdb-server-sb.log
> --remote=punix:/var/run/openvswitch/ovnsb_db.sock
> --pidfile=/var/run/openvswitch/ovnsb_db.pid --remote=db:OVN_Southbound,SB_Global,connections
> --unixctl=ovnsb_db.ctl --private-key=db:OVN_Southbound,SSL,private_key
> --certificate=db:OVN_Southbound,SSL,certificate
> --ca-cert=db:OVN_Southbound,SSL,ca_cert /etc/openvswitch/ovnsb_db.db
>
> Note: NB and SB databases are supposed to be listening on a tcp socket.
> But it isn't.
>
>
​Running the below commands should solve your problem
  - ovn-nbctl set-connection ptcp:6641:192.168.10.10

- ovn-
​s​
bctl set-connection ptcp:664
​2​
:192.168.10.10

L
​et me know if you still face problems.

The reason for this is this commit -
https://github.com/openvswitch/ovs/commit/84d0ca5d00fe01b29163236d48fa0f9105687149

P
​lease have a look at it.

Thanks
Numan
​
​

> _________________________
> output of logs                       |
> ```````````````````````````````````````````
> Neutron server log :
>      - http://paste.openstack.org/show/597320/
> ovs-nothd log:
>      - http://paste.openstack.org/show/597322/
> ovs-vswitchd log on Controller:
>       - http://paste.openstack.org/show/597324/
> _________________________________________
> # ovn-nbctl and ovn-sbctl show no output.           |
> ```````````````````````````````````````````````````````````````````````
> ________________________________________
> OVN RPMS installation and download details:   |
> ``````````````````````````````````````````````````````````````````````
> On controller:
> # git clone https://github.com/openvswitch/ovs.git
> # ./boot.sh
> # ./configure
> # make rpm-fedora RPMBUILD_OPT="--without check"
> # make rpm-fedora-kmod
>
> ALL nodes:
>
> # rpm -i openvswitch-kmod-2.6.90-1.el7.centos.x86_64.rpm#  rpm -U openvswitch-2.6.90-1.el7.centos.x86_64.rpm
>
> Only Controller:
>
> # rpm -i openvswitch-ovn-common-*.x86_64.rpm# rpm -i openvswitch-ovn-central-*.x86_64.rpm
>
> Only Compute:
>
> # rpm -i openvswitch-ovn-common-*.x86_64.rpm# rpm -i openvswitch-ovn-host-*.x86_64.rpm
>
> # lsmod | grep open
>      - shows all the required modules
>
> Let me know if you need anything else.
>
> Thanks.
> pjb
>
>
>
>
>
>
>
>
>
> On 2 February 2017 at 15:23, Numan Siddique <nusiddiq at redhat.com> wrote:
>
>> Adding openstack-dev ML with [networking-ovn] tag.
>>
>> Please see comments inline
>>
>>
>> On Thu, Feb 2, 2017 at 3:01 PM, pranab boruah <
>> pranabjyotiboruah at gmail.com> wrote:
>>
>>> Hi guys,
>>> We have a OpenStack multi-node lab. Everything was working, until I
>>> tried integrating with OVN.
>>> Followed the official guide for integration:
>>>
>>> http://docs.openstack.org/developer/networking-ovn/install.html
>>>
>>> Lab details:
>>> 1 Controller, 2 computes
>>>
>>> CentOS-7.3, OpenStack Newton, separate network for mgmt and tunnel.
>>>
>>> Error details :
>>> Neutron Server log shows :
>>>
>>>  ERROR networking_ovn.ovsdb.impl_idl_ovn [-] OVS database connection to
>>> OVN_Northbound failed with error: '{u'error': u'unknown database',
>>> u'details': u'get_schema request specifies unknown database
>>> OVN_Northbound', u'syntax': u'["OVN_Northbound"]'}'. Verify that the OVS
>>> and OVN services are available and that the 'ovn_nb_connection' and
>>> 'ovn_sb_connection' configuration options are correct.
>>>
>>> Stuck in this for more than 2 week. Starting to hate my life. Please
>>> help. Before I tried installing in physical machines, followed the same
>>> guide and installed in VMs. Everything was working then.
>>>
>>> Solutions I tried:
>>> 1) Completely fresh installing everything.
>>> 2) Rebuilding ovs
>>> 3) Check SB and NB configuration options in plugin.ini are exactly
>>> correct.
>>>
>>>
>>>
>>>> Could you please share
>>  - the values of ovn_nb_connection and ovn_sb_connection defined in
>> ml2_conf.ini.
>>  - the output of "ps -aef | grep ovsdb" on the node where you are running
>> the ovn-northd server.
>>  - If you could share the output of neutron-server logs in some paste
>> link, it would be helpful.
>>
>> Are you able to run "ovn-nbctl show" ? I presume you have installed the
>> appropriate ovn RPMS ? If not so, please let me know how you have installed
>> it.
>>
>> Thanks
>> Numan
>>
>>>>
>>
>>> Let me know if additional details are required.
>>>
>>>
>>> -pjb
>>>
>>>
>>>
>>> _______________________________________________
>>> discuss mailing list
>>> discuss at openvswitch.org
>>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170202/8480ff29/attachment.html>


More information about the discuss mailing list