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
Observe Error "NameError: name 'cli' is not defined"
Describe the results you received:
root@sonic:/home/admin# sonic_installer install /home/admin/sonic-broadcom.bin
Traceback (most recent call last):
File "/usr/bin/sonic-installer", line 8, in
from sonic_installer.main import sonic_installer
File "/usr/lib/python2.7/dist-packages/sonic_installer/main.py", line 610, in
@cli.command('verify-next-image')
NameError: name 'cli' is not defined
Describe the results you expected:
root@sonic:/home/admin# sudo sonic_installer install /home/admin/sonic-broadcom.bin
New image will be installed, continue? [y/N]: y
Installing image SONiC-OS-master.0-adad5499 and setting it as default...
Command: bash /home/admin/sonic-broadcom.bin
Verifying image checksum ... OK.
Preparing image archive ... OK.
Installing SONiC in SONiC
....
Additional information you deem important (e.g. issue happens only occasionally):
root@sonic:/home/admin# show version
SONiC Software Version: SONiC.master.350-1ca47da4
Distribution: Debian 10.4
Kernel: 4.19.0-9-2-amd64
Build commit: 1ca47da
Build date: Thu Jul 16 20:16:33 UTC 2020
Built by: johnar@jenkins-worker-11
The text was updated successfully, but these errors were encountered:
BaluAlluru
changed the title
"sonic-installer install " command not working in sonic mainline
"sonic_installer install " command not working in sonic mainline
Jul 17, 2020
@rlhui: Yes. The root group name was changed from cli to sonic_installer in #983. However, verify-next-image subcommand was being added in an already-open PR #979 at the time. It did not get updated before merge. I have opened a PR to align this command here: #995
* src/sonic-utilities a23479e...82dfe50 (3):
> [sonic-installer] Update group name for 'verify-next-image' subcommand (#/995)
> [acl_loader] Fix bugs in acl_loader (#991)
> [show] Add support for QSFP-DD cables on 'show' command (#989)
This submodule update resolvessonic-net/sonic-utilities#997 by including PR sonic-net/sonic-utilities#995
Steps to reproduce the issue:
Describe the results you received:
root@sonic:/home/admin# sonic_installer install /home/admin/sonic-broadcom.bin
Traceback (most recent call last):
File "/usr/bin/sonic-installer", line 8, in
from sonic_installer.main import sonic_installer
File "/usr/lib/python2.7/dist-packages/sonic_installer/main.py", line 610, in
@cli.command('verify-next-image')
NameError: name 'cli' is not defined
Describe the results you expected:
root@sonic:/home/admin# sudo sonic_installer install /home/admin/sonic-broadcom.bin
New image will be installed, continue? [y/N]: y
Installing image SONiC-OS-master.0-adad5499 and setting it as default...
Command: bash /home/admin/sonic-broadcom.bin
Verifying image checksum ... OK.
Preparing image archive ... OK.
Installing SONiC in SONiC
....
Additional information you deem important (e.g. issue happens only occasionally):
root@sonic:/home/admin# show version
SONiC Software Version: SONiC.master.350-1ca47da4
Distribution: Debian 10.4
Kernel: 4.19.0-9-2-amd64
Build commit: 1ca47da
Build date: Thu Jul 16 20:16:33 UTC 2020
Built by: johnar@jenkins-worker-11
sonic_dump_sonic_20200717_223808.tar.gz
The text was updated successfully, but these errors were encountered: