sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
717 stars 1.38k forks source link

Command not working "show techsupport" #6462

Open Hedgehog-Guru opened 3 years ago

Hedgehog-Guru commented 3 years ago

Description Command "show techsupport" not working on the image from master based on "7fc2d381a98c73ffbc6668c9800b07f50b4d9c04" from Jan 05.

Steps to reproduce the issue

  1. Try to run the command: show techsupport

Describe the results you received show techsupport /usr/local/bin/generate_dump: line 89: syntax error near unexpected tokenfi' /usr/local/bin/generate_dump: line 89: fi'

Describe the results you expected Command "show techsupport" should work correctly.

Output of show version

Image from master based on "7fc2d381a98c73ffbc6668c9800b07f50b4d9c04" from Jan 05

` SONiC Software Version: SONiC.app.ext.1 Distribution: Debian 10.7 Kernel: 4.19.0-9-2-amd64 Build commit: 6e183434 Build date: Tue Jan 12 19:48:43 UTC 2021 Built by: stepanb@r-build-sonic03

Platform: x86_64-mlnx_msn4700-r0 HwSKU: ACS-MSN4700 ASIC: mellanox ASIC Count: 1 Serial Number: MT2015X25486 Uptime: 10:08:46 up 20 min, 2 users, load average: 0.13, 0.61, 0.52

Docker images: REPOSITORY TAG IMAGE ID SIZE docker-platform-monitor 1.0.0 92d791d3f5b3 671MB docker-platform-monitor latest 92d791d3f5b3 671MB docker-sonic-mgmt-framework 1.0.0 d6de12943ab0 604MB docker-sonic-mgmt-framework latest d6de12943ab0 604MB docker-sflow 1.0.0 1d6a0d4ba350 451MB docker-sflow latest 1d6a0d4ba350 451MB docker-syncd-mlnx 1.0.0 84283f29217e 535MB docker-syncd-mlnx latest 84283f29217e 535MB docker-snmp 1.0.0 04321a94b86a 431MB docker-snmp latest 04321a94b86a 431MB docker-fpm-frr 1.0.0 55bd6d44e83f 468MB docker-fpm-frr latest 55bd6d44e83f 468MB docker-lldp 1.0.0 e31c7e8399c8 430MB docker-lldp latest e31c7e8399c8 430MB docker-database 1.0.0 944d79e86b82 390MB docker-database latest 944d79e86b82 390MB docker-orchagent 1.0.0 a8794949b2b2 468MB docker-orchagent latest a8794949b2b2 468MB docker-sonic-telemetry 1.0.0 520c2f2a7296 465MB docker-sonic-telemetry latest 520c2f2a7296 465MB docker-nat 1.0.0 db9f8a2e74fe 453MB docker-nat latest db9f8a2e74fe 453MB docker-dhcp-relay 1.0.0 c814038596bb 397MB docker-dhcp-relay latest c814038596bb 397MB docker-router-advertiser 1.0.0 8ccf42be85b1 390MB docker-router-advertiser latest 8ccf42be85b1 390MB docker-teamd 1.0.0 282d0d286dac 450MB docker-teamd latest 282d0d286dac 450MB `

vaibhavhd commented 3 years ago

This should be fixed in latest image. The fix was introduced by https://github.com/Azure/sonic-utilities/commit/bc2d27edc2923f5096b37a727200a8427f93463e