Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1600151 - OVN database connection failed
Summary: OVN database connection failed
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-ovn
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Numan Siddique
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-11 14:24 UTC by Anil Dhingra
Modified: 2019-04-08 05:09 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1599285
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
OpenStack gerrit 586531 None None None 2018-07-27 12:41:02 UTC
OpenStack gerrit 586533 None None None 2018-07-27 12:41:29 UTC

Description Anil Dhingra 2018-07-11 14:24:03 UTC
Description of problem:

fresh overcloud deployment with ovn has db connection error due to ip conflict 

ovn-nbctl: unix:/var/run/openvswitch/ovnnb_db.sock: database connection failed (No such file or directory)
Version-Release number of selected component (if applicable):


How reproducible:

every time
Steps to Reproduce:
1.
2.
3.

Actual results:

ip mentioned in ml2_conf.ini also appeared in pcs status & haproxy is using it , not sure if db connection requires haproxy but haproxy.cfg has no entry for ovn


[root@controller-0 ~]# pcs status | grep -i ip | grep -i 13
 ip-172.17.1.13	(ocf::heartbeat:IPaddr2):	Started controller-0



Expected results:


Additional info:

root@controller-0 ~]# grep -v ^# /var/lib/config-data/puppet-generated/neutron/etc/neutron/plugins/ml2/ml2_conf.ini | grep -v ^$ | grep -i ovn
mechanism_drivers=ovn
[ovn]
ovn_nb_connection=tcp:172.17.1.13:6641
ovn_sb_connection=tcp:172.17.1.13:6642
ovn_l3_mode=True
ovn_metadata_enabled=True

 tail -f  /var/log/containers/openvswitch/ovsdb-server-nb.log

2018-07-11T13:56:24.061Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovsdb-server-nb.log
2018-07-11T13:56:24.075Z|00002|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.075Z|00003|ovsdb_jsonrpc_server|ERR|ptcp:6641:172.17.1.13: listen failed: Cannot assign requested address
2018-07-11T13:56:24.078Z|00004|ovsdb_server|INFO|ovsdb-server (Open vSwitch) 2.9.0
2018-07-11T13:56:24.078Z|00005|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.078Z|00006|ovsdb_jsonrpc_server|ERR|ptcp:6641:172.17.1.13: listen failed: Cannot assign requested address
2018-07-11T13:56:24.078Z|00007|reconnect|INFO|tcp:192.0.2.254:6641: connecting...
2018-07-11T13:56:24.078Z|00008|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.078Z|00009|ovsdb_jsonrpc_server|ERR|ptcp:6641:172.17.1.13: listen failed: Cannot assign requested address
2018-07-11T13:56:24.213Z|00010|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.213Z|00011|ovsdb_jsonrpc_server|ERR|ptcp:6641:172.17.1.13: listen failed: Cannot assign requested address
2018-07-11T13:56:24.215Z|00012|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.215Z|00013|ovsdb_jsonrpc_server|ERR|ptcp:6641:172.17.1.13: listen failed: Cannot assign requested address
2018-07-11T13:56:24.216Z|00014|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.216Z|00015|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.380Z|00016|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:24.381Z|00017|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:25.080Z|00018|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:25.080Z|00019|reconnect|INFO|tcp:192.0.2.254:6641: connection attempt timed out
2018-07-11T13:56:25.080Z|00020|reconnect|INFO|tcp:192.0.2.254:6641: waiting 1 seconds before reconnect
2018-07-11T13:56:26.086Z|00021|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:26.086Z|00022|reconnect|INFO|tcp:192.0.2.254:6641: connecting...
2018-07-11T13:56:26.579Z|00023|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:27.089Z|00024|socket_util|ERR|6641:172.17.1.13: bind: Cannot assign requested address
2018-07-11T13:56:27.089Z|00025|reconnect|INFO|tcp:192.0.2.254:6641: connection attempt timed out
2018-07-11T13:56:27.089Z|00026|reconnect|INFO|tcp:192.0.2.254:6641: waiting 2 seconds before reconnect
2018-07-11T13:56:29.099Z|00027|reconnect|INFO|tcp:192.0.2.254:6641: connecting...
2018-07-11T13:56:31.100Z|00028|reconnect|INFO|tcp:192.0.2.254:6641: connection attempt timed out

Comment 2 Anil Dhingra 2018-07-12 06:23:10 UTC
redeployed again with 3 ctrl +1 cmp same issue

Comment 5 Numan Siddique 2018-07-27 12:40:35 UTC
Here are the back ports u/s -
  https://review.openstack.org/#/c/586531/
  https://review.openstack.org/#/c/586533/

Comment 6 Lucas Alvares Gomes 2018-07-30 08:23:37 UTC
(In reply to Numan Siddique from comment #5)
> Here are the back ports u/s -
>   https://review.openstack.org/#/c/586531/
>   https://review.openstack.org/#/c/586533/

Thanks Numan!


Note You need to log in before you can comment on or make changes to this bug.