Bug 1873455
| Summary: | [OVN]when the nb_cfg of table chassis_private is just the range, it will not reverse to 0 next time but report error. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | ying xu <yinxu> |
| Component: | ovn2.13 | Assignee: | Dumitru Ceara <dceara> |
| Status: | CLOSED ERRATA | QA Contact: | ying xu <yinxu> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | RHEL 8.0 | CC: | ctrautma, jishi, ralongi |
| 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-10-27 09:49:12 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: | |||
verified on version:
# rpm -qa|grep ovn
ovn2.13-20.09.0-1.el8fdp.x86_64
ovn2.13-host-20.09.0-1.el8fdp.x86_64
ovn2.13-central-20.09.0-1.el8fdp.x86_64
# ovn-sbctl find chassis_private
_uuid : de4e2a3d-ec3c-4109-843b-d41c6414534d
chassis : 5ab16123-171d-482a-9d22-f5fbe5a7ef08
external_ids : {}
name : local
nb_cfg : 101
nb_cfg_timestamp : 1601431390057
_uuid : a6e7379b-50fb-4e92-a252-a59a6e4630cc
chassis : 8444fcf1-21c8-4950-97c2-f99f322f1112
external_ids : {}
name : hv0
nb_cfg : 101
nb_cfg_timestamp : 1601431390057
#ovn-nbctl set NB_Global 183deefa-73e7-468e-940e-e40e54b2f290 nb_cfg=9223372036854775807
# ovn-sbctl find chassis_private
_uuid : de4e2a3d-ec3c-4109-843b-d41c6414534d
chassis : 5ab16123-171d-482a-9d22-f5fbe5a7ef08
external_ids : {}
name : local
nb_cfg : 9223372036854775807
nb_cfg_timestamp : 1601432837857
_uuid : a6e7379b-50fb-4e92-a252-a59a6e4630cc
chassis : 8444fcf1-21c8-4950-97c2-f99f322f1112
external_ids : {}
name : hv0
nb_cfg : 9223372036854775807
nb_cfg_timestamp : 1601432837857
# ovn-nbctl --wait=hv sync ----------success
#cat /var/log/ovn/ovn-controller.log|grep error ------------no error
# ovn-sbctl find chassis_private
_uuid : de4e2a3d-ec3c-4109-843b-d41c6414534d
chassis : 5ab16123-171d-482a-9d22-f5fbe5a7ef08
external_ids : {}
name : local
nb_cfg : 1 ------------------------------------revert to 1
nb_cfg_timestamp : 1601432935196
_uuid : a6e7379b-50fb-4e92-a252-a59a6e4630cc
chassis : 8444fcf1-21c8-4950-97c2-f99f322f1112
external_ids : {}
name : hv0
nb_cfg : 1
nb_cfg_timestamp : 1601432935196
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 (ovn2.13 bug fix and enhancement update), 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:4356 |
Description of problem: when the nb_cfg of table chassis_private is just the range, it will not reverse to 0 next time but report error. Version-Release number of selected component (if applicable): # rpm -qa|grep ovn ovn2.13-host-20.06.2-1.el8fdp.x86_64 ovn2.13-central-20.06.2-1.el8fdp.x86_64 ovn2.13-20.06.2-1.el8fdp.x86_64 How reproducible: always Steps to Reproduce: 1.at first,set the env as below: #ovn-sbctl show Chassis hv0 hostname: dell-per730-57.rhts.eng.pek2.redhat.com Encap geneve ip: "20.0.10.26" options: {csum="true"} Chassis hv1 ----------------this name is hv1 hostname: dell-per730-19.rhts.eng.pek2.redhat.com Encap geneve ip: "20.0.10.25" options: {csum="true"} ovn-nbctl show' switch 7458e8f5-96f4-4bce-bdc9-4236654447c9 (ls) port vm3 addresses: ["00:00:00:00:00:03"] port vm1 addresses: ["00:00:00:00:00:01"] port vm4 addresses: ["00:00:00:00:00:04"] now # ovn-sbctl list chassis_private _uuid : b612ba1c-5434-4864-be37-02fa68a056e1 chassis : fd1b04b6-972c-4dce-b24e-7a0ac31dcf94 external_ids : {} name : hv0 nb_cfg : 0 _uuid : 70346152-cece-44b9-b39c-dbf0f5845e35 chassis : d3831b51-8ddd-4b4c-8844-0a225e738f36 external_ids : {} name : hv1 nb_cfg : 0 -------nb_cfg is 0 now 2.set the nb_cfg to the range: nb_global_id=$(ovn-nbctl --columns _uuid --bare find nb_global) ovn-nbctl set NB_Global ${nb_global_id} nb_cfg=9223372036854775807 3.then, sync one time $ ovn-nbctl --wait=hv sync 2020-08-28T09:34:00Z|00001|ovsdb_idl|WARN|transaction error: {"details":"Result of \"+=\" operation is out of range.","error":"range error"} ovn-nbctl: transaction error: {"details":"Result of \"+=\" operation is out of range.","error":"range error"} Actual results: the nb_cfg report error:out of range. Expected results: the nb_cfg should be reverse to 0 Additional info: