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 1720728

Summary: [RFE] [RHEL 7] Add the option in ovn-northd to pause/resume logical flow calculation
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Numan Siddique <nusiddiq>
Component: ovn2.11Assignee: Open vSwitch development team <ovs-team>
Status: CLOSED ERRATA QA Contact: Jianlin Shi <jishi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDP 19.GCC: ctrautma, fleitner, jishi, kfida, qding
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:
: 1761405 (view as bug list) Environment:
Last Closed: 2019-11-06 05:00:08 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:
Bug Depends On:    
Bug Blocks: 1761405    

Description Numan Siddique 2019-06-14 17:02:09 UTC
Description of problem:

With this user can pause/resume the ovn-northd by running

ovs-appctl -t ovn-northd pause/resume

If an ovn-northd is paused, it should not process any changes to the DB.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Numan Siddique 2019-06-17 05:41:03 UTC
Submitted the patch upstream for review - https://patchwork.ozlabs.org/patch/1116716/

Comment 4 Jianlin Shi 2019-10-21 02:05:34 UTC
Verified on 2.11..1-8:

[root@ibm-x3650m5-03 bz1720728]# rpm -qa | grep ovn
ovn2.11-2.11.1-8.el7fdp.x86_64
ovn2.11-central-2.11.1-8.el7fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-1.0-148.noarch
ovn2.11-host-2.11.1-8.el7fdp.x86_64

+ ovn-nbctl ls-add ls2
+ ovn-sbctl lflow-list ls2                                                                            
+ echo 0                                                                                              
0                                                                                                     
+ ovn-nbctl ls-del ls2                                                                                
+ ovn-sbctl lflow-list ls2                                                                            
ovn-sbctl: ls2 is not a UUID or the beginning of a UUID                                               
+ echo 1                                                                                              
1                                                                                                     
+ ovs-appctl -t ovn-northd is-paused                                                                  
false                                                                                                 
+ ovs-appctl -t ovn-northd pause     

<=== pause ovn-nbrthd
                                                                 
+ ovs-appctl -t ovn-northd is-paused                                                                  
true                                                                                                  
+ ovn-nbctl ls-add ls2                                                                                
+ ovn-sbctl lflow-list ls2                                                                            
+ echo 1                                                                                              
1                        

<=== the changes to DB is not processed by ovn-northd after ovn-northd is paused
                                                                             
+ ovs-appctl -t ovn-northd resume  

<=== resumed
                                                                   
+ ovs-appctl -t ovn-northd is-paused                                                                  
false                                                                                                 
+ ovn-sbctl lflow-list ls2                                                                            
+ echo 0                                                                                              
0                         

<===  changes to DB is processed
                                                                            
+ ovn-nbctl ls-del ls2

Comment 6 errata-xmlrpc 2019-11-06 05:00:08 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-2019:3718