You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sonic-config-engine] /usr/local/bin/db_migrator.py -o migrate fails on all Arista platforms while trying to configure a device for L2 configuration
#12083
Closed
vdahiya12 opened this issue
Sep 14, 2022
· 4 comments
While trying to configure a device for L2 style topology in SONiC OS, the administrator is required to execute a sequential stream of commands as suggested here https://github.com/sonic-net/SONiC/wiki/L2-Switch-mode
while running the first command we see this error for dualtor
admin@sonic:~$ cat <<EOF | sudo config reload /dev/stdin -y
> {
> "MGMT_INTERFACE": {
> "eth0|1.1.1.1/24": {
> "gwaddr": "1.1.1.1"
> }
> },
> "DEVICE_METADATA": {
> "localhost": {
> "hostname": "sonic",
> "subtype": "DualToR"
> }
> }
> }
> EOF
Running command: rm -rf /tmp/dropstat-*
Disabling container monitoring ...
Stopping SONiC target ...
Running command: /usr/local/bin/sonic-cfggen -j /etc/sonic/init_cfg.json -j /dev/stdin --write-to-db
Running command: /usr/local/bin/db_migrator.py -o migrate
Traceback (most recent call last):
File "/usr/local/bin/db_migrator.py", line 668, in main
result = getattr(dbmgtr, operation)()
File "/usr/local/bin/db_migrator.py", line 627, in migrate
self.common_migration_ops()
File "/usr/local/bin/db_migrator.py", line 600, in common_migration_ops
if self.asic_type == "broadcom" and 'Force10-S6100' in self.hwsku:
TypeError: argument of type 'NoneType' is not iterable
argument of type 'NoneType' is not iterable
usage: db_migrator.py [-h] [-o operation migrate, set_version, get_version] [-s unix socket] [-n asic namespace]
optional arguments:
-h, --help show this help message and exit
-o operation (migrate, set_version, get_version)
operation to perform [default: get_version]
-s unix socket the unix socket that the desired database listens on
-n asic namespace The asic namespace whose DB instance we need to connect
admin@sonic:~$
Description
While trying to configure a device for L2 style topology in SONiC OS, the administrator is required to execute a sequential stream of commands as suggested here https://github.com/sonic-net/SONiC/wiki/L2-Switch-mode
while running the first command we see this error for dualtor
Steps to reproduce the issue:
1.run the first command as suggested by this wiki link for all SONiC configurations of L2 topology
https://github.com/sonic-net/SONiC/wiki/L2-Switch-mode
Describe the results you received:
Describe the results you expected:
should not see the db_migrator error
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: