Skip to content

[SNMP] When uptime is less than the boot time of snmp, to pause the task until snmp service is up.#1496

Closed
EmmaLin11 wants to merge 4 commits intosonic-net:masterfrom
EmmaLin11:pause_snmp_task
Closed

[SNMP] When uptime is less than the boot time of snmp, to pause the task until snmp service is up.#1496
EmmaLin11 wants to merge 4 commits intosonic-net:masterfrom
EmmaLin11:pause_snmp_task

Conversation

@EmmaLin11
Copy link
Contributor

Description of PR

Summary:
When uptime is less than the boot time of snmp, to pause the task until snmp service is up.

The default boot time of snmp service is 3m30s in /etc/systemd/system/snmp.timer. Perform snmp ansible test before snmp service up , it will cause test failed. Because it cannot get the response from snmp.

Type of change

  • [v] Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

Check if ansible_uptime_seconds is larger than 3m30s firstly or not. If uptime is larger than 3m30s, perform the test immediately. If uptime is less than 3m30s, shall perform the test after have a (3m30s - ansible_uptime_seconds) delay.

How did you verify/test it?

Perform snmp ansible test when uptime is less than 3m30s, check if have a (3m30s - ansible_uptime_seconds) delay.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…o is ptf32 or ptf64.

When topo is ptf32 or ptf64, snmp lldp pytest will failed. Because there are no lldp data respond from sonic device. The topologies for lldp does not include ptf32 and ptf64 on testcase.yml. Thus the ptf32 and ptf64 topo shall be skipped.

Signed-off-by: Emma Lin <[email protected]>
…s defined in tests/conftest.py to identify testbed type.
@EmmaLin11 EmmaLin11 closed this Mar 27, 2020
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…ux-kernel submodules (sonic-net#7064)

sonic-swss
* Add table descriptions for dynamic buffer calculation to the documents (sonic-net#1664)
* Remove vxlanmgrd dependency on orchagent (sonic-net#1647)

sonic-utilities
* [show] Fix 'show mac' output, when FDB entry with Vlan 1 is present (sonic-net#1368)
* [warm-reboot]: Check empty key before issuing redis hget (sonic-net#1496)
* [generate-dump] Remove Arista specific logic (sonic-net#1482)
* [warm-reboot]: added automated recover for ISSU file (sonic-net#1466)
* [warm-reboot] Check if warm restart flag is set when issuing a warm-reboot (sonic-net#1460)
* [show][config] fix for show/config muxcable hwmode model value; fix show/config muxcable return codes; (sonic-net#1494)

sonic-linux-kernel
* [net] Disable prio and cls cgroups to make working cgroup2 sock matching (sonic-net#198)

Signed-off-by: Danny Allen <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Including the following changes:
[bitmap_vnet] Remove BMTOR implementation (sonic-net#1496)
[intfsorch] Init proxy_arp variable while adding router interface. (sonic-net#1473)
[drop counters] Clarify log messages for initial counter setup (sonic-net#1445)

Signed-off-by: Liat Grozovik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant