This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2264018 - [docs] Type error on step for obtain the server ID of the OVN southbound database server to be replaced
Summary: [docs] Type error on step for obtain the server ID of the OVN southbound data...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 17.1 (Wallaby)
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: James Smith
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-13 11:45 UTC by Luigi Tamagnone
Modified: 2024-09-07 04:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-05-09 16:56:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-31434 0 None None None 2024-02-13 11:47:00 UTC
Red Hat Issue Tracker   OSPRH-6921 0 None None None 2024-05-09 16:56:51 UTC

Description Luigi Tamagnone 2024-02-13 11:45:36 UTC
Description of problem:
In step 20.3.8 of the official guide[1] about the controller replacement there is a check to remove the old controller in the raft cluster for the southbound OVN database:
~~~
ssh tripleo-admin@<controller_ip> sudo podman exec ovn_cluster_north_db_server ovs-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Southbound 2>/dev/null|grep -A4 Servers:
~~~
This command return always a void output because there is a type error, if we don't redirect the error to null we can see it clearly:
~~~
[tripleo-admin@controller-1 ~]$ sudo podman exec ovn_cluster_north_db_server ovs-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Southbound 
unknown cluster
ovs-appctl: /var/run/ovn/ovnnb_db.ctl: server returned an error
~~~
We should target southbound db instance of northbound:
~~~
[tripleo-admin@controller-1 ~]$ sudo podman exec ovn_cluster_north_db_server ovs-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/status OVN_Southbound 
d670
Name: OVN_Southbound
Cluster ID: 812c (812c8a42-2f65-43c3-b790-2fd4e52076d5)
Server ID: d670 (d670116b-97e3-4383-a375-eba0971427c6)
Address: tcp:172.17.1.133:6644
Status: cluster member
Role: follower
Term: 23064
Leader: 48e3
Vote: 48e3

Last Election started 7669964 ms ago, reason: leadership_transfer
Last Election won: 7669936 ms ago
Election timer: 16000
Log: [1150, 1151]
Entries not yet committed: 0
Entries not yet applied: 0
Connections: ->48e3 ->5d8a <-48e3 <-5d8a
Disconnections: 0
Servers:
    48e3 (48e3 at tcp:172.17.1.59:6644) last msg 4873 ms ago
    5d8a (5d8a at tcp:172.17.1.36:6644) last msg 6757556 ms ago
    d670 (d670 at tcp:172.17.1.133:6644) (self)
~~~

So I will rewrite the command in this way:
~~~
ssh tripleo-admin@<controller_ip> sudo podman exec ovn_cluster_south_db_server ovs-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/status OVN_Southbound 2>/dev/null|grep -A4 Servers:
~~~

Note: why do we redirect the error output to null? should it not be better to see it on the screen when we don't put the output in a variable or use it directly?


[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.1/html/installing_and_managing_red_hat_openstack_platform_with_director/assembly_replacing-controller-nodes
Version-Release number of selected component (if applicable):

Comment 5 Red Hat Bugzilla 2024-09-07 04:25:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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