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

pranab boruah pranabjyotiboruah at gmail.com
Thu Feb 2 10:30:12 UTC 2017


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.

_________________________
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://lists.openstack.org/pipermail/openstack-dev/attachments/20170202/6145a9f1/attachment.html>


More information about the OpenStack-dev mailing list