Bug 1708146 - [OVN]name column in table "chassis" of sbdb can't change along with the system-id of chassis
Summary: [OVN]name column in table "chassis" of sbdb can't change along with the syst...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.11
Version: FDP 19.C
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Dumitru Ceara
QA Contact: haidong li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-09 08:50 UTC by haidong li
Modified: 2019-11-20 03:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-10 08:43:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description haidong li 2019-05-09 08:50:03 UTC
Description of problem:
name column  in table "chassis" of sbdb can't change along with the system-id of chassis 

Version-Release number of selected component (if applicable):
[root@hp-dl385pg8-07 ovn_ha]# rpm -qa | grep openvswitch
openvswitch2.11-2.11.0-9.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-11.el7fdp.noarch
kernel-kernel-networking-openvswitch-ovn_ha-1.0-34.noarch
[root@hp-dl385pg8-07 ovn_ha]# rpm -qa | grep ovn
ovn2.11-central-2.11.0-16.el7fdp.x86_64
ovn2.11-2.11.0-16.el7fdp.x86_64
ovn2.11-host-2.11.0-16.el7fdp.x86_64
kernel-kernel-networking-openvswitch-ovn_ha-1.0-34.noarch
[root@hp-dl385pg8-07 ovn_ha]# uname -a
Linux hp-dl385pg8-07.rhts.eng.pek2.redhat.com 3.10.0-1040.el7.x86_64 #1 SMP Thu Apr 18 15:22:56 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@hp-dl385pg8-07 ovn_ha]# 

How reproducible:
everytime

Steps to Reproduce:
1.set up ovn server and ovn controller on each chassis
2.change the system-id of the chassis
3.the name column in sbdb is still the original value and doesn't change

[root@hp-dl385pg8-07 ovn_ha]# ovn-sbctl show
Chassis "hv01"
    hostname: "hp-dl388g8-07.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.11"
        options: {csum="true"}
    Port_Binding "lsp1"
Chassis "hv0"
    hostname: "hp-dl385pg8-07.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.50"
        options: {csum="true"}
    Port_Binding "lsp0"
Chassis "hv03"
    hostname: "hp-dl380pg8-16.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.3"
        options: {csum="true"}
    Port_Binding "lsp3"
Chassis "hv02"
    hostname: "hp-dl388g8-02.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.20"
        options: {csum="true"}
    Port_Binding "lsp2"
[root@hp-dl385pg8-07 ovn_ha]# 

change the system-id:
[root@hp-dl385pg8-07 ovn_ha]# ovs-vsctl set Open_vSwitch . external-ids:system-id=hv88
[root@hp-dl385pg8-07 ovn_ha]# ovs-vsctl get Open_vSwitch . external-ids:system-id
"hv88"
[root@hp-dl385pg8-07 ovn_ha]#
[root@hp-dl385pg8-07 ovn_ha]# ovn-sbctl show
Chassis "hv01"
    hostname: "hp-dl388g8-07.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.11"
        options: {csum="true"}
    Port_Binding "lsp1"
Chassis "hv0"
    hostname: "hp-dl385pg8-07.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.50"
        options: {csum="true"}
    Port_Binding "lsp0"
Chassis "hv03"
    hostname: "hp-dl380pg8-16.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.3"
        options: {csum="true"}
    Port_Binding "lsp3"
Chassis "hv02"
    hostname: "hp-dl388g8-02.rhts.eng.pek2.redhat.com"
    Encap geneve
        ip: "192.168.60.20"
        options: {csum="true"}
    Port_Binding "lsp2"
[root@hp-dl385pg8-07 ovn_ha]# ovn-sbctl list chassis
_uuid               : 151d5020-4723-48b9-812e-012287c76bf0
encaps              : [ba6200da-a9b8-44f3-9b0e-720dcea052cf]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings=""}
hostname            : "hp-dl388g8-07.rhts.eng.pek2.redhat.com"
name                : "hv01"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 171b2344-e24c-4886-a74f-762b77272c02
encaps              : [cd2e6d1c-3f86-4108-b762-58e52b71929a]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings=""}
hostname            : "hp-dl385pg8-07.rhts.eng.pek2.redhat.com"
name                : "hv0"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 7f6e6285-6fb0-46fb-a1db-d80f4155fb8f
encaps              : [2477c88e-5de1-43ae-9fb7-b4a97dc04d28]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings=""}
hostname            : "hp-dl380pg8-16.rhts.eng.pek2.redhat.com"
name                : "hv03"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 8fd8efba-5d14-428c-99d3-8cc59a299e88
encaps              : [7e88ba56-6df6-43aa-9fb8-1cb15bceb658]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings=""}
hostname            : "hp-dl388g8-02.rhts.eng.pek2.redhat.com"
name                : "hv02"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []
[root@hp-dl385pg8-07 ovn_ha]#


Actual results:
the name column doesn't change

Expected results:
the name column change along with the chasis's system-id

Additional info:


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