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

The admin_status of the port on the device is inconsistent with the configuration file config_db.json #1770

Closed
leoli-nps opened this issue Jun 6, 2018 · 1 comment
Assignees
Milestone

Comments

@leoli-nps
Copy link

Description
Take Ethernet50 and Ethernet51 as examples.
In config_db.json, the relevant configuration is as follows:

     "PORT": {
         "Ethernet50": {
             "alias": "Ethernet51/1",
             "lanes": "82",
             "admin_status": "up",
             "speed": "10000",
             "index": "50"
         },
         "Ethernet51": {
             "alias": "Ethernet52/1",
             "lanes": "83",
             "admin_status": "down",
             "speed": "10000",
             "index": "51"
         }
     },
     "INTERFACE": {
         "Ethernet51|192.168.51.100/24": {}
     },

When the device starts up, you can see the following phenomena:
show interface status, you can see that both Ethernet50 and Ethernet51 are up; but using ip link show, you can see that Ethernet50 is down and Ehernet51 is up.

admin@switch100:~$ show interfaces status
Command: intfutil status
  Interface            Lanes    Speed    MTU         Alias    Oper    Admin
-----------  ---------------  -------  -----  ------------  ------  -------
  Ethernet0                8      10G   9302   Ethernet1/1    down     down
  Ethernet1                9      10G   9302   Ethernet2/1    down     down
  Ethernet2               10      10G   9302   Ethernet3/1    down     down
  Ethernet3               11      10G   9302   Ethernet4/1    down     down
  Ethernet4               12      10G   9302   Ethernet5/1    down     down
  Ethernet5               13      10G   9302   Ethernet6/1    down     down
  Ethernet6               14      10G   9302   Ethernet7/1    down     down
  Ethernet7               15      10G   9302   Ethernet8/1    down     down
  Ethernet8               16      10G   9302   Ethernet9/1    down     down
  Ethernet9               17      10G   9302  Ethernet10/1    down     down
 Ethernet10               18      10G   9302  Ethernet11/1    down     down
 Ethernet11               19      10G   9302  Ethernet12/1    down     down
 Ethernet12               20      10G   9302  Ethernet13/1    down     down
 Ethernet13               21      10G   9302  Ethernet14/1    down     down
 Ethernet14               22      10G   9302  Ethernet15/1    down     down
 Ethernet15               23      10G   9302  Ethernet16/1    down     down
 Ethernet16               32      10G   9302  Ethernet17/1    down     down
 Ethernet17               33      10G   9302  Ethernet18/1    down     down
 Ethernet18               34      10G   9302  Ethernet19/1    down     down
 Ethernet19               35      10G   9302  Ethernet20/1    down     down
 Ethernet20               40      10G   9302  Ethernet21/1    down     down
 Ethernet21               41      10G   9302  Ethernet22/1    down     down
 Ethernet22               42      10G   9302  Ethernet23/1    down     down
 Ethernet23               43      10G   9302  Ethernet24/1    down     down
 Ethernet24               48      10G   9302  Ethernet25/1    down     down
 Ethernet25               49      10G   9302  Ethernet26/1    down     down
 Ethernet26               50      10G   9302  Ethernet27/1    down     down
 Ethernet27               51      10G   9302  Ethernet28/1    down     down
 Ethernet28               56      10G   9302  Ethernet29/1    down     down
 Ethernet29               57      10G   9302  Ethernet30/1    down     down
 Ethernet30               58      10G   9302  Ethernet31/1    down     down
 Ethernet31               59      10G   9302  Ethernet32/1    down     down
 Ethernet32               64      10G   9302  Ethernet33/1    down     down
 Ethernet33               65      10G   9302  Ethernet34/1    down     down
 Ethernet34               66      10G   9302  Ethernet35/1    down     down
 Ethernet35               67      10G   9302  Ethernet36/1    down     down
 Ethernet36               68      10G   9302  Ethernet37/1    down     down
 Ethernet37               69      10G   9302  Ethernet38/1    down     down
 Ethernet38               70      10G   9302  Ethernet39/1    down     down
 Ethernet39               71      10G   9302  Ethernet40/1    down     down
 Ethernet40               72      10G   9302  Ethernet41/1    down     down
 Ethernet41               73      10G   9302  Ethernet42/1    down     down
 Ethernet42               74      10G   9302  Ethernet43/1    down     down
 Ethernet43               75      10G   9302  Ethernet44/1    down     down
 Ethernet44               76      10G   9302  Ethernet45/1    down     down
 Ethernet45               77      10G   9302  Ethernet46/1    down     down
 Ethernet46               78      10G   9302  Ethernet47/1    down     down
 Ethernet47               79      10G   9302  Ethernet48/1    down     down
 Ethernet48               80      10G   9302  Ethernet49/1    down     down
 Ethernet49               81      10G   9302  Ethernet50/1    down     down
 Ethernet50               82      10G   9302  Ethernet51/1      up       up
 Ethernet51               83      10G   9100  Ethernet52/1      up       up
 Ethernet52      84,85,86,87     100G   9302  Ethernet53/1    down     down
 Ethernet53  104,105,106,107     100G   9302  Ethernet54/1    down     down
 Ethernet54  108,109,110,111     100G   9302  Ethernet55/1    down     down
 Ethernet55  112,113,114,115     100G   9302  Ethernet56/1    down     down
 Ethernet56  116,117,118,119     100G   9302  Ethernet57/1    down     down
admin@switch100:~$ sudo ip link show Ethernet50
58: Ethernet50: <BROADCAST,MULTICAST> mtu 9302 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether a8:2b:b5:4f:9c:b2 brd ff:ff:ff:ff:ff:ff
admin@switch100:~$ sudo ip link show Ethernet51
59: Ethernet51: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9100 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether a8:2b:b5:4f:9c:b2 brd ff:ff:ff:ff:ff:ff
admin@switch100:~$

Steps to reproduce the issue:
1.As described in “Description”.
2.
3.

Describe the results you received:
As described in “Description”.

Describe the results you expected:
The port status seen by “show interface status” and “ip link show“ should be the same as those configured in config_db.json.

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**
admin@switch100:~$ show version
SONiC Software Version: SONiC.201803.0-dirty-20180510.051907
Distribution: Debian 8.10
Kernel: 3.16.0-5-amd64
Build commit: 1dd26fe
Build date: Thu May 10 05:35:51 UTC 2018
Built by: simon@debian89

Docker images:
REPOSITORY                 TAG                              IMAGE ID            SIZE
docker-syncd-nephos        201803.0-dirty-20180510.051907   d740eeeac60d        319.6 MB
docker-syncd-nephos        latest                           d740eeeac60d        319.6 MB
docker-orchagent-nephos    201803.0-dirty-20180510.051907   b1cf7aedb0ea        290.7 MB
docker-orchagent-nephos    latest                           b1cf7aedb0ea        290.7 MB
docker-dhcp-relay          201803.0-dirty-20180510.051907   cf16ce48da3f        285.2 MB
docker-dhcp-relay          latest                           cf16ce48da3f        285.2 MB
docker-database            201803.0-dirty-20180510.051907   d65afb7f3be5        285.2 MB
docker-database            latest                           d65afb7f3be5        285.2 MB
docker-snmp-sv2            201803.0-dirty-20180510.051907   29ea5346df9d        323 MB
docker-snmp-sv2            latest                           29ea5346df9d        323 MB
docker-teamd               201803.0-dirty-20180510.051907   a07ea8d2781f        290.5 MB
docker-teamd               latest                           a07ea8d2781f        290.5 MB
docker-router-advertiser   201803.0-dirty-20180510.051907   77904de1774b        282.8 MB
docker-router-advertiser   latest                           77904de1774b        282.8 MB
docker-platform-monitor    201803.0-dirty-20180510.051907   63445adc75bb        304.8 MB
docker-platform-monitor    latest                           63445adc75bb        304.8 MB
docker-lldp-sv2            201803.0-dirty-20180510.051907   1c66277f9e10        303.6 MB
docker-lldp-sv2            latest                           1c66277f9e10        303.6 MB
docker-fpm-quagga          201803.0-dirty-20180510.051907   a0584bb3cf43        297.1 MB
docker-fpm-quagga          latest                           a0584bb3cf43        297.1 MB
**Attach debug file `sudo generate_dump`:**

sonic_dump_switch100_20180606_020846.tar.gz

@stcheng stcheng added this to the 2018 milestone Aug 17, 2018
@stcheng
Copy link
Contributor

stcheng commented Sep 19, 2019

resolved

@stcheng stcheng closed this as completed Sep 19, 2019
renukamanavalan added a commit to renukamanavalan/sonic-buildimage that referenced this issue Aug 24, 2021
* e12c1c8 (origin/master, origin/HEAD) disk_check: Script updated (sonic-net#1747)
* 27502f0 [dhcp_relay] Update CLI reference document and add a new API for ip address type (sonic-net#1717)
* cd3ee78 [Config] Update config command of kdump (sonic-net#1700)
* 4cb3b72 [Show] Update the subcommands of Kdump. (sonic-net#1682)
* c03342f [sfputil] Gracefully handle improper 'specification_compliance' field (sonic-net#1741)
* 103de86 [CLI][MPLS][Show] Fixed show and config mpls cli bug where invalid interfaces would pasâsonic-net#1770)
* 04cc047 [route_check] Filter out VNET routes (sonic-net#1612)
* 9395ebd [show][platform] Revise chassis info fallback to only fall back on pmon crash (sonic-net#1751)
lguohan pushed a commit that referenced this issue Aug 25, 2021
* e12c1c8 (origin/master, origin/HEAD) disk_check: Script updated (#1747)
* 27502f0 [dhcp_relay] Update CLI reference document and add a new API for ip address type (#1717)
* cd3ee78 [Config] Update config command of kdump (#1700)
* 4cb3b72 [Show] Update the subcommands of Kdump. (#1682)
* c03342f [sfputil] Gracefully handle improper 'specification_compliance' field (#1741)
* 103de86 [CLI][MPLS][Show] Fixed show and config mpls cli bug where invalid interfaces would pasâ#1770)
* 04cc047 [route_check] Filter out VNET routes (#1612)
* 9395ebd [show][platform] Revise chassis info fallback to only fall back on pmon crash (#1751)
taras-keryk pushed a commit to taras-keryk/sonic-buildimage that referenced this issue Apr 28, 2022
…terfaces would pas… (sonic-net#1770)

* Added unit tests for both single and multi ASIC platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants