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

RIF SAI ID key unavailable error in COUNTERS_DB #148

Open
SuvarnaMeenakshi opened this issue Jul 15, 2020 · 1 comment
Open

RIF SAI ID key unavailable error in COUNTERS_DB #148

SuvarnaMeenakshi opened this issue Jul 15, 2020 · 1 comment
Assignees
Labels

Comments

@SuvarnaMeenakshi
Copy link
Contributor

Description

Steps to reproduce the issue:

  1. Load later master image(.345) , with SNMP docker build off of SNMP master branch code compiled using sonic-py-swsssdk from master branch.
  2. Once SNMP service comes up, view syslog to look for snmp error.

Describe the results you received:

syslog has error message:
raise UnavailableDataError(message, _hash)#012swsssdk.exceptions.UnavailableDataError: Key 'b'COUNTERS:oid:0x60000000005a1'' unavailable in database '2'

The counters DB does not have counter for any of the RIF SAI IDs

Seen after #133

Describe the results you expected:
The unavailable data error should not be visible.

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

**Output of `show version`:**

```
(paste your output here)
```

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

```
(paste your output here)
```
@qiluo-msft
Copy link
Contributor

@liatgrozovik Please help assign the owner for this issue. The original feature is reverted in #151

qiluo-msft pushed a commit that referenced this issue Dec 8, 2020
…rs (#169)

**- What I did**
Rework based on #133 and feedback #148.
**- How I did it**
- merge #133 with upstream master.
- Fix UnavailableDataError when RIF counters are not enabled.
- Make RIF keys in maps unique in multi asic env.
**- How to verify it**
- Disable rif counters
- restart swss
- snmpwalk
- Verify no UnavailableDataError in logs
- Verify port counters are returned
- Enable rif counters
- snmpwalk
- Verify no error in logs
- Verify error in/out counters are aggregated for rif ports and portchannels
- Verify VLAN RIF counters are present in the MIB.
**- Description for the changelog**
Added support for aggregated router interface counters and L3 VLAN counters to RFC1213 MIB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants