-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DB Migrator] DB Migration from 202012 to 202205 does not work #12643
Closed
Comments
vaibhavhd
added a commit
to sonic-net/sonic-utilities
that referenced
this issue
Nov 23, 2022
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
mdanish-kh
pushed a commit
to mdanish-kh/sonic-utilities
that referenced
this issue
Nov 23, 2022
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
yxieca
pushed a commit
to sonic-net/sonic-utilities
that referenced
this issue
Nov 29, 2022
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
preetham-singh
pushed a commit
to preetham-singh/sonic-utilities
that referenced
this issue
Dec 6, 2022
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
StormLiangMS
pushed a commit
to sonic-net/sonic-utilities
that referenced
this issue
Dec 30, 2022
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this issue
Aug 3, 2023
Fixes sonic-net/sonic-buildimage#12643 Version on 202012 branch is missing in master and 202205 branch. This caused failures in upgrade from 202012 to newer branch images, where db_migrator experienced crash. This commit fixes the issue, and ports the version handling for 202012 to newer branches.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The latest 202012 has DB migrator version as 2_0_2. However there is no handler for this version in 202205
Nov 8 03:30:48 sonic config-setup[3464]: Running command: /usr/local/bin/db_migrator.py -o migrate
Nov 8 03:30:48 sonic config-setup[3464]: Running command: /usr/local/bin/db_migrator.py -o migrate
Nov 8 03:30:48 sonic mellanox_buffer_migrator: Caught exception: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic mellanox_buffer_migrator: Caught exception: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic config-setup[3988]: Traceback (most recent call last):
Nov 8 03:30:48 sonic config-setup[3988]: Traceback (most recent call last):
Nov 8 03:30:48 sonic config-setup[3988]: File "/usr/local/bin/db_migrator.py", line 816, in main
Nov 8 03:30:48 sonic config-setup[3988]: File "/usr/local/bin/db_migrator.py", line 816, in main
Nov 8 03:30:48 sonic config-setup[3988]: result = getattr(dbmgtr, operation)()
Nov 8 03:30:48 sonic config-setup[3988]: result = getattr(dbmgtr, operation)()
Nov 8 03:30:48 sonic config-setup[3988]: File "/usr/local/bin/db_migrator.py", line 768, in migrate
Nov 8 03:30:48 sonic config-setup[3988]: File "/usr/local/bin/db_migrator.py", line 768, in migrate
Nov 8 03:30:48 sonic config-setup[3988]: next_version = getattr(self, version)()
Nov 8 03:30:48 sonic config-setup[3988]: next_version = getattr(self, version)()
Nov 8 03:30:48 sonic config-setup[3988]: AttributeError: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic config-setup[3988]: AttributeError: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic config-setup[3464]: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic config-setup[3464]: 'DBMigrator' object has no attribute 'version_2_0_2'
Nov 8 03:30:48 sonic config-setup[3464]: usage: db_migrator.py [-h] [-o operation migrate, set_version, get_version]
Nov 8 03:30:48 sonic config-setup[3464]: usage: db_migrator.py [-h] [-o operation migrate, set_version, get_version]
Nov 8 03:30:48 sonic config-setup[3464]: [-s unix socket] [-n asic namespace]
Nov 8 03:30:48 sonic config-setup[3464]: [-s unix socket] [-n asic namespace]
Steps to reproduce the issue:
Describe the results you received:
DB migration fails from 202012 to 202205
Describe the results you expected:
DB migration should succeed from 202012 to 202205
Output of
show version
:Output of
show techsupport
:sonic_dump_r-lionfish-07_20221108_083208.tar.gz
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: