Skip to content
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

Cannot launch sonic-cli. #14614

Closed
tjarosz-stdair opened this issue Apr 11, 2023 · 3 comments
Closed

Cannot launch sonic-cli. #14614

tjarosz-stdair opened this issue Apr 11, 2023 · 3 comments
Labels
BRCM Triaged this issue has been triaged

Comments

@tjarosz-stdair
Copy link

tjarosz-stdair commented Apr 11, 2023

Description

I cannot start sonic-cli. Runing the command sonic-cli results in this error:

Error: Unresolved PTYPE "MCLAG_KA_INTERVAL_RANGE" in PARAM "KA"

image

I see that issue #84 in the sonic-mgmt-framework repo is identical but there is a PR that was supposed to resolve it. I'm re-opening the issue since I had this issue with both the custom build (with iccpd enabled) as well as the nightly build from March 13th, 2023.

Steps to reproduce the issue:

  1. Build SONiC or use the nightly build. (I built with ICCPD enabled but I also received the error using the nightly build.)
  2. Install on Mellanox SN2010.
  3. Open serial console session to hardware and login as admin, or any user with admin/root privileges.
  4. Run the command "sonic-cli".

I built sonic on April 1, 2023 using master branch. The build target platform is mellanox and I enabled ICCPD in the build config. I installed SONiC on a Mellanox SN2010. Configuring the switch using the normal Click commands works fine (i.e. sudo config portchannel add PortChannel0001 completes successfully.)

Describe the results you expected:

sonic-cli should run successfully without error. I would then be able to use CLI commands instead of Click commands.

Output of show version:

tajadmin@cSwitch1:~$ sudo show version

SONiC Software Version: SONiC.master.0-dirty-20230401.215816
Distribution: Debian 11.6
Kernel: 5.10.0-18-2-amd64
Build commit: 66d3586fd
Build date: Sat Apr  1 23:28:27 UTC 2023
Built by: tajadmin@ubuntu20

Platform: x86_64-mlnx_msn2010-r0
HwSKU: ACS-MSN2010
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1821X14175
Model Number: MSN2010-CB2F
Hardware Revision: A2
Uptime: 11:32:32 up 7 days,  3:25,  1 user,  load average: 0.61, 0.46, 0.58
Date: Mon 05 Sep 2022 11:32:32

Docker images:
REPOSITORY                    TAG                              IMAGE ID       SIZE
docker-orchagent              latest                           5faa8551e2ec   327MB
docker-orchagent              master.0-dirty-20230401.215816   5faa8551e2ec   327MB
docker-fpm-frr                latest                           c497031b75a1   345MB
docker-fpm-frr                master.0-dirty-20230401.215816   c497031b75a1   345MB
docker-teamd                  latest                           8c064c178e24   315MB
docker-teamd                  master.0-dirty-20230401.215816   8c064c178e24   315MB
docker-macsec                 latest                           4362902a0556   318MB
docker-iccpd                  latest                           b767f01bb037   315MB
docker-iccpd                  master.0-dirty-20230401.215816   b767f01bb037   315MB
docker-syncd-mlnx             latest                           1289879266d6   729MB
docker-syncd-mlnx             master.0-dirty-20230401.215816   1289879266d6   729MB
docker-platform-monitor       latest                           412f3d6015ac   730MB
docker-platform-monitor       master.0-dirty-20230401.215816   412f3d6015ac   730MB
docker-dhcp-relay             latest                           bb01481252bb   308MB
docker-eventd                 latest                           671ad62321d2   298MB
docker-eventd                 master.0-dirty-20230401.215816   671ad62321d2   298MB
docker-snmp                   latest                           90614554d27a   337MB
docker-snmp                   master.0-dirty-20230401.215816   90614554d27a   337MB
docker-sonic-p4rt             latest                           b04e38099ca0   869MB
docker-sonic-p4rt             master.0-dirty-20230401.215816   b04e38099ca0   869MB
docker-router-advertiser      latest                           53a279b8dfee   298MB
docker-router-advertiser      master.0-dirty-20230401.215816   53a279b8dfee   298MB
docker-mux                    latest                           7f8edd135588   347MB
docker-mux                    master.0-dirty-20230401.215816   7f8edd135588   347MB
docker-lldp                   latest                           231ef218c26e   341MB
docker-lldp                   master.0-dirty-20230401.215816   231ef218c26e   341MB
docker-database               latest                           d9642ae5a30a   298MB
docker-database               master.0-dirty-20230401.215816   d9642ae5a30a   298MB
docker-sonic-telemetry        latest                           f6c83d5c3663   597MB
docker-sonic-telemetry        master.0-dirty-20230401.215816   f6c83d5c3663   597MB
docker-nat                    latest                           7fb2610fc957   291MB
docker-nat                    master.0-dirty-20230401.215816   7fb2610fc957   291MB
docker-sflow                  latest                           6851fed6b8be   289MB
docker-sflow                  master.0-dirty-20230401.215816   6851fed6b8be   289MB
docker-sonic-mgmt-framework   latest                           e054c369bea7   416MB
docker-sonic-mgmt-framework   master.0-dirty-20230401.215816   e054c369bea7   416MB

Output of show techsupport:

Attached.

SONiC_showtechsupport_20230411.log

@adyeung adyeung added BRCM Triaged this issue has been triaged labels Apr 12, 2023
@kpostrup
Copy link

I have the same issue on the VS platform. Either using the latest master or 202211.

@Nhyos
Copy link

Nhyos commented Apr 19, 2023

Has someone fix this issue?

@adyeung
Copy link
Collaborator

adyeung commented Apr 24, 2023

Fixed by
sonic-net/sonic-mgmt-framework#103

@adyeung adyeung closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BRCM Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants