This bug was initially created as a copy of Bug #1873455 I am copying this bug because: this is found in version: ovn-2021-21.06.0-4.el8.x86_64 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:
Hi, thank you for reporting this issue. you can use this command to reproduce the issue easily: # ovn-nbctl set nb_global ae780799-0118-479d-9263-66ee50167ad6 nb_cfg=9223372036854775805 ; ovn-nbctl --wait=hv sync ; ovn-nbctl --wait=hv sync ; ovn-nbctl --wait=hv sync ; ovn-nbctl --wait=hv sync ; ovn-nbctl --wait=hv sync Thanks,
patch submitted upstream still under review : http://patchwork.ozlabs.org/project/ovn/patch/20210819004347.665893-1-mheib@redhat.com/
Hi @yinxu, i tried to reproduce the above issue with ovn2.13 but seems that the issue doesn't exist on that version. could you please specify in which ovn version you saw this bug.
(In reply to Mohamad Heib from comment #3) > Hi @yinxu, > > i tried to reproduce the above issue with ovn2.13 but seems that the issue > doesn't exist on that version. > could you please specify in which ovn version you saw this bug. It is not reproduced with ovn2.13, it is ovn-2021-21.06.0-4.el8.x86_64 you can see the case sb_table in job:https://beaker.engineering.redhat.com/jobs/5581622
posted to branch-21.6: https://code.engineering.redhat.com/gerrit/c/ovn/+/269858
wrong patch link: https://code.engineering.redhat.com/gerrit/c/ovn/+/269881
verified on version: ovn-2021-21.06.0-29.el8fdp see details in job: https://beaker.engineering.redhat.com/jobs/5805391 :: [ 12:47:42 ] :: [ BEGIN ] :: Running 'ovn-nbctl set NB_Global d76c48ac-0952-4a51-87e3-4f52cc9389f6 nb_cfg=9223372036854775807' :: [ 12:47:42 ] :: [ PASS ] :: Command 'ovn-nbctl set NB_Global d76c48ac-0952-4a51-87e3-4f52cc9389f6 nb_cfg=9223372036854775807' (Expected 0, got 0) :: [ 12:47:42 ] :: [ BEGIN ] :: Running 'ovn-nbctl --wait=hv sync' :: [ 12:47:42 ] :: [ PASS ] :: Command 'ovn-nbctl --wait=hv sync' (Expected 0, got 0) :: [ 12:47:42 ] :: [ BEGIN ] :: Running 'cat /var/log/ovn/ovn-controller.log|grep "out of range"' :: [ 12:47:42 ] :: [ PASS ] :: Command 'cat /var/log/ovn/ovn-controller.log|grep "out of range"' (Expected 1, got 1)
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 (ovn 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-2021:3718