Skip to content

"sonic_installer install " command not working in sonic mainline #997

@BaluAlluru

Description

@BaluAlluru

Steps to reproduce the issue:

  1. load sonic Jenkins image 350 on the box.
  2. execute the command "sonic_installer install "
  3. 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

**Attach debug file `sudo generate_dump`:**

sonic_dump_sonic_20200717_223808.tar.gz

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions