The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1761414 - [RHEL 8] Running '/usr/share/ovn/scripts/ovn-ctl demote_ovnnb/demote_ovnsb is failing in OVN 2.12
Summary: [RHEL 8] Running '/usr/share/ovn/scripts/ovn-ctl demote_ovnnb/demote_ovnsb is...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: FDP 19.G
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Numan Siddique
QA Contact: haidong li
URL:
Whiteboard:
Depends On: 1761182
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-14 11:09 UTC by Numan Siddique
Modified: 2020-01-17 02:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1761182
Environment:
Last Closed: 2019-12-11 12:19:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:4209 0 None None None 2019-12-11 12:20:02 UTC

Description Numan Siddique 2019-10-14 11:09:03 UTC
+++ This bug was initially created as a clone of Bug #1761182 +++

Description of problem:
Running '/usr/share/scripts/ovn/ovn-ctl promote_ovnnb/promote_ovnsb is failing in OVN 2.12.

Because of this pacemaker ovn resource will also fail.

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


How reproducible:


Steps to Reproduce:
1. Start ovn-northd service
2. Run - /usr/share/scripts/ovn/ovn-ctl promote_ovnnb


Actual results:
This is failing.

Expected results:
It should not fail.

Additional info:

--- Additional comment from Numan Siddique on 2019-10-13 06:44:07 UTC ---

Correction : Running demote_ovnnb/demote_ovnsb fails.

Eg.

/usr/share/ovn/scripts/ovn-ctl demote_ovnnb --db-nb-sync-from-addr=tcp:192.0.2.254:6641
/usr/share/ovn/scripts/ovn-ctl: line 64: /etc/ovn/ovnnb-active.conf: No such file or directory
/usr/share/ovn/scripts/ovn-ctl: active server details not set

Comment 3 haidong li 2019-11-05 06:05:09 UTC
[root@dell-per730-42 ovn]# uname -a
Linux dell-per730-42.rhts.eng.pek2.redhat.com 3.10.0-1101.el7.x86_64 #1 SMP Sat Oct 5 04:50:26 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-42 ovn]#
[root@dell-per730-42 ~]# rpm -qa | grep openvswitch
kernel-kernel-networking-openvswitch-ovs_qinq-1.3-34.noarch
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
openvswitch2.12-2.12.0-3.el7fdp.x86_64
[root@dell-per730-42 ~]# rpm -qa | grep ovn
ovn2.12-host-2.12.0-3.el7fdp.x86_64
ovn2.12-central-2.12.0-3.el7fdp.x86_64
ovn2.12-2.12.0-3.el7fdp.x86_64
[root@dell-per730-42 ~]#
[root@dell-per730-42 ~]# ovn-nbctl --detach
/var/run/openvswitch/ovn-nbctl.43870.ctl
[root@dell-per730-42 ~]# NB_PATH=/var/run/openvswitch/ovn-nbctl.43870.ctl
[root@dell-per730-42 ~]# ovs-appctl -t $NB_PATH run ls-add test
[root@dell-per730-42 ovn]# ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/set-active-ovsdb-server tcp:192.0.2.254:6641
[root@dell-per730-42 ovn]# ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/connect-active-ovsdb-server
[root@dell-per730-42 ovn]# ovs-appctl -t $NB_PATH run ls-add test1
transaction error: {"details":"insert operation not allowed when database server is in read only mode","error":"not allowed"}
ovs-appctl: /var/run/openvswitch/ovn-nbctl.43870.ctl: server returned an error
[root@dell-per730-42 ovn]# ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/disconnect-active-ovsdb-server
[root@dell-per730-42 ovn]#  ovs-appctl -t $NB_PATH run ls-add test2
[root@dell-per730-42 ovn]# ovn-nbctl show
switch 75b678fd-c85a-4b63-a069-cecdd598af33 (test)
switch 0bb0c357-65c4-48f7-8c76-a756968c9e2a (test2)
[root@dell-per730-42 ovn]#

Comment 4 haidong li 2019-11-05 06:42:45 UTC
Correct the info of comment3:
[root@dell-per730-17 share]# uname -a
Linux dell-per730-17.rhts.eng.pek2.redhat.com 4.18.0-147.12.el8.x86_64 #1 SMP Wed Oct 30 23:47:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-17 share]# rpm -qa | grep openvswitch
openvswitch-selinux-extra-policy-1.0-19.el8fdp.noarch
openvswitch2.12-2.12.0-2.el8fdp.x86_64
[root@dell-per730-17 share]# rpm -qa | grep ovn
ovn2.12-central-2.12.0-2.el8fdp.x86_64
ovn2.12-2.12.0-2.el8fdp.x86_64
ovn2.12-host-2.12.0-2.el8fdp.x86_64
[root@dell-per730-17 share]#
[root@dell-per730-17 share]# pwd
/usr/share
[root@dell-per730-17 share]#
[root@dell-per730-17 share]# /usr/share/ovn/scripts/ovn-ctl demote_ovnnb --db-nb-sync-from-addr=tcp:192.0.2.254:6641
[root@dell-per730-17 share]# /usr/share/ovn/scripts/ovn-ctl promote_ovnnb
[root@dell-per730-17 share]#

Comment 6 errata-xmlrpc 2019-12-11 12:19:53 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/RHEA-2019:4209


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