Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1778016

Summary: ovn-nbctl --daemon --pidfile will create file under path /var/run/openvswitch/,but ovn 2.12 is seperated from ovs now
Product: Red Hat Enterprise Linux Fast Datapath Reporter: ying xu <yinxu>
Component: ovn2.13Assignee: Numan Siddique <nusiddiq>
Status: CLOSED ERRATA QA Contact: ying xu <yinxu>
Severity: medium Docs Contact:
Priority: medium    
Version: FDP 19.GCC: ctrautma, fhallal, jishi, mmichels, nusiddiq, ralongi, yinxu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-26 14:07:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ying xu 2019-11-29 02:48:55 UTC
Description of problem:
ovn-nbctl --daemon --pidfile is also related by openvswitch,but ovn 2.12 is seperated from ovs now

Version-Release number of selected component (if applicable):
openvswitch2.12-2.12.0-8.el7fdp
ovn2.12-2.12.0-15.el7fdp
ovn2.12-central-2.12.0-15.el7fdp
ovn2.12-host-2.12.0-15.el7fdp
How reproducible:
always

Steps to Reproduce:

only start ovn,but didn't start ovs

rlRun "systemctl start ovn-northd"
        rlRun "pkill -9 ovn-nbctl" "0-255"
        rlRun "ovn_daemon_pid=$(ovn-nbctl --pidfile --detach)"
:: [ 20:04:36 ] :: [  BEGIN   ] :: Running 'systemctl start ovn-northd'
:: [ 20:04:36 ] :: [   PASS   ] :: Command 'systemctl start ovn-northd' (Expected 0, got 0)
:: [ 20:04:36 ] :: [  BEGIN   ] :: Running 'pkill -9 ovn-nbctl'
:: [ 20:04:36 ] :: [   PASS   ] :: Command 'pkill -9 ovn-nbctl' (Expected 0-255, got 1)
ovn-nbctl: /var/run/openvswitch/ovn-nbctl.pid.tmp: create failed (No such file or directory)
:: [ 20:04:36 ] :: [  BEGIN   ] :: Running 'ovn_daemon_pid='
:: [ 20:04:36 ] :: [   PASS   ] :: Command 'ovn_daemon_pid=' (Expected 0, got 0)
2019-11-29T01:04:36Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovnnb_db.ctl
ovs-appctl: cannot connect to "/var/run/openvswitch/ovnnb_db.ctl" (No such file or directory)

Actual results:
ovn-nbctl: /var/run/openvswitch/ovn-nbctl.pid.tmp: create failed

Expected results:
ovn-nbctl: /var/run/ovn/ovn-nbctl.pid.tmp 
I think this file should create under the path /var/run/ovn/

Additional info:

Comment 1 Numan Siddique 2020-04-07 08:34:12 UTC
Submitted the patch to fix this issue - https://patchwork.ozlabs.org/patch/1267293/

Comment 4 Numan Siddique 2020-04-18 06:55:29 UTC
*** Bug 1804524 has been marked as a duplicate of this bug. ***

Comment 5 ying xu 2020-04-21 08:16:11 UTC
hi,
I run the case on the latest version,but fail too.

# rpm -qa|grep ovn
ovn2.13-central-2.13.0-18.el8fdp.x86_64
ovn2.13-host-2.13.0-18.el8fdp.x86_64
ovn2.13-2.13.0-18.el8fdp.x86_64

:: [ 04:08:47 ] :: [  BEGIN   ] :: Running 'systemctl start ovn-northd'
:: [ 04:08:47 ] :: [   PASS   ] :: Command 'systemctl start ovn-northd' (Expected 0, got 0)
:: [ 04:08:47 ] :: [  BEGIN   ] :: Running 'pkill -9 ovn-nbctl'
:: [ 04:08:47 ] :: [   PASS   ] :: Command 'pkill -9 ovn-nbctl' (Expected 0-255, got 1)
ovn-nbctl: /var/run/openvswitch/ovn-nbctl.pid.tmp: create failed (No such file or directory)
:: [ 04:08:47 ] :: [  BEGIN   ] :: Running 'ovn_daemon_pid='
:: [ 04:08:47 ] :: [   PASS   ] :: Command 'ovn_daemon_pid=' (Expected 0, got 0)
2020-04-21T08:08:47Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovnnb_db.ctl
ovs-appctl: cannot connect to "/var/run/openvswitch/ovnnb_db.ctl" (No such file or directory)

# ovn-nbctl --pidfile --detach
ovn-nbctl: /var/run/openvswitch/ovn-nbctl.pid.tmp: create failed (No such file or directory)

It seems that the file also created in openvswitch file path and failed. 

can you have a look at it?

Comment 6 Jianlin Shi 2020-04-21 13:59:26 UTC
set ASSIGNED per comment 5

Comment 7 Numan Siddique 2020-04-21 17:10:17 UTC
I've submitted the patch upstream to fix the issue for pidfile - https://patchwork.ozlabs.org/project/openvswitch/patch/20200421124130.973829-1-numans@ovn.org/

Comment 9 ying xu 2020-05-06 03:40:31 UTC
verified on 

# rpm -qa|grep ovn
ovn2.13-central-2.13.0-21.el7fdp.x86_64
ovn2.13-2.13.0-21.el7fdp.x86_64
ovn2.13-host-2.13.0-21.el7fdp.x86_64


see details in  the job log link:
rhel7:https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2020/04/42280/4228042/8191840/109626595/taskout.log
rhel8:https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2020/04/42293/4229396/8194080/109649543/taskout.log

:: [ 22:08:46 ] :: [  BEGIN   ] :: Running 'ovn_daemon_pid=/var/run/ovn/ovn-nbctl.14997.ctl'
:: [ 22:08:46 ] :: [   PASS   ] :: Command 'ovn_daemon_pid=/var/run/ovn/ovn-nbctl.14997.ctl' (Expected 0, got 0)

Comment 11 errata-xmlrpc 2020-05-26 14:07:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2317