Comments (3)
Hi, the above unavailableDataError is always seen in the syslog when swss is restarted. But, when I connect to the redis-cli and I could able to dump the COUNTERS_PORT_NAME_MAP as follows:
127.0.0.1:6379[2]> hgetall COUNTERS_PORT_NAME_MAP
- "Ethernet0"
- "oid:0x100000000049a"
- "Ethernet4"
- "oid:0x100000000049b"
- "Ethernet8"
- "oid:0x100000000049c"
- "Ethernet12"
- "oid:0x100000000049d"
- "Ethernet16"
- "oid:0x100000000049e"
- "Ethernet20"
- "oid:0x100000000049f"
- "Ethernet24"
- "oid:0x10000000004a0"
- "Ethernet28"
- "oid:0x10000000004a1"
- "Ethernet32"
- "oid:0x10000000004a2"
- "Ethernet36"
- "oid:0x10000000004a3"
- "Ethernet40"
- "oid:0x10000000004a4"
- "Ethernet44"
- "oid:0x10000000004a5"
- "Ethernet48"
- "oid:0x10000000004a6"
- "Ethernet52"
- "oid:0x10000000004a7"
- "Ethernet56"
- "oid:0x10000000004a8"
- "Ethernet60"
- "oid:0x10000000004a9"
- "Ethernet64"
- "oid:0x10000000004aa"
- "Ethernet68"
- "oid:0x10000000004ab"
- "Ethernet72"
- "oid:0x1000000000488"
- "Ethernet76"
- "oid:0x1000000000489"
- "Ethernet80"
- "oid:0x100000000048a"
- "Ethernet84"
- "oid:0x100000000048b"
- "Ethernet88"
- "oid:0x100000000048c"
- "Ethernet92"
- "oid:0x100000000048d"
- "Ethernet96"
- "oid:0x100000000048e"
- "Ethernet100"
- "oid:0x100000000048f"
- "Ethernet104"
- "oid:0x1000000000490"
- "Ethernet108"
- "oid:0x1000000000491"
- "Ethernet112"
- "oid:0x1000000000492"
- "Ethernet116"
- "oid:0x1000000000493"
- "Ethernet120"
- "oid:0x1000000000494"
- "Ethernet124"
- "oid:0x1000000000495"
- "Ethernet128"
- "oid:0x1000000000496"
- "Ethernet132"
- "oid:0x1000000000497"
- "Ethernet136"
- "oid:0x1000000000498"
- "Ethernet140"
- "oid:0x1000000000499"
127.0.0.1:6379[2]>
from sonic-snmpagent.
We have similar error log as previous, it seems that SNMP tries to get queue_stat_map before it's created. Since SNMP would retry to get it again, it should not be a problem, so we low down the log level from error to warning.
"Oct 5 06:26:20.005020 as7816-64x ERR snmp#snmp-subagent [sonic_ax_impl] ERROR: No queue stat counters found in the Counter DB. SyncD database is incoherent.",
"Oct 5 06:26:20.006722 as7816-64x ERR snmp#snmp-subagent [ax_interface] ERROR: MIBUpdater.start() caught an unexpected exception during update_data()#012Traceback (most recent call last):#012 File \"/usr/local/lib/python3.6/dist-packages/ax_interface/mib.py\", line 40, in start#012 self.reinit_data()#012 File \"/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py\", line 79, in reinit_data#012 mibs.init_sync_d_queue_tables(self.db_conn)#012 File \"/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/_init_.py\", line 332, in init_sync_d_queue_tables#012 raise RuntimeError('The queue_stat_map is not defined')#012RuntimeError: The queue_stat_map is not defined",
from sonic-snmpagent.
The root cause should be the difference in time between containers.
PortOrch would write QUEUE_COUNTER_ID_LIST to Flex_Counter_DB when initialize, and SyncD_Flex_Counter would write counter to Counter_DB after it collects counter.
But SNMP may query Counter_DB by QUEUE_COUNTER_ID_LIST before SyncD_Flex_Counter write counters to Counter_DB, then SNMP can't get it and write this log.
from sonic-snmpagent.
Related Issues (20)
- 'PhysicalTableMIBUpdater' object has no attribute 'physical_entites'
- setup.py error HOT 1
- why does SNMP QOS queue not follow CLI queue or vice-versa? HOT 2
- Value mismatch for ipAddressIfIndex? HOT 1
- Reuse enum XcvrInfoDB
- RIF SAI ID key unavailable error in COUNTERS_DB HOT 1
- [201811] build failure due to psutil version change, 5.7.0 is fine, higher version causes failure HOT 2
- Add a test case for LLDP_LOC_CHASSIS.lldp_loc_man_addr has only one IPv6 address
- Implement sysName OID
- Reduce verbose log about mgmt ports
- why sonic need snmp?
- 'sonic_py_common.multi_asic' has no attribute 'ROLE'" error message
- ipCidrRouteTable snmp walk fails
- ifPhysAddress MIB doesn't return Mac address HOT 1
- The payload length of PDU cannot exceed 1500 HOT 1
- AgentX error seen if Transceiver_info table contains bad string HOT 1
- [chassis][supervisor] snmpwalk failed on supervisor card
- Add unit-test to check if interface MIB includes IB and Rec ports
- snmp agent should check the config_db before trying to access the QUEUE OIDs
- Test gap: add unit test of IfHighSpeed with PortChannel with no member ports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonic-snmpagent.