Skip to content

fix(anta.tests): VerifyCPUUtilization failing when added in the middle of other tests #1283

@guillaumeVilar

Description

@guillaumeVilar

When the test VerifyCPUUtilization is added in the middle of other tests, it always fails.

Example of output below.

Checking manually the CPU seems fine:

rtp-tp-campus-1#show processes top once
top - 16:00:35 up 29 days, 14:23,  2 users,  load average: 0.32, 0.41, 0.53
Tasks: 211 total,   1 running, 210 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.9 us,  5.7 sy,  0.0 ni, 91.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3860.1 total,    144.8 free,   2020.6 used,   2185.1 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   1839.5 avail Mem 

## Test Results

| Device Under Test | Categories | Test | Description | Custom Field | Result | Messages |
| ----------------- | ---------- | ---- | ----------- | ------------ | ------ | -------- |
| rtp-tp-campus-1 | Configuration | VerifyRunningConfigDiffs | Verifies there is no difference between the running-config and the startup-config. | - | success | - |
| rtp-tp-campus-1 | Configuration | VerifyZeroTouch | Verifies ZeroTouch is disabled. | - | success | - |
| rtp-tp-campus-1 | MLAG | VerifyMlagConfigSanity | Verifies there are no MLAG config-sanity inconsistencies. | - | skipped | MLAG is disabled |
| rtp-tp-campus-1 | MLAG | VerifyMlagInterfaces | Verifies there are no inactive or active-partial MLAG ports. | - | skipped | MLAG is disabled |
| rtp-tp-campus-1 | MLAG | VerifyMlagStatus | Verifies the health status of the MLAG configuration. | - | skipped | MLAG is disabled |
| rtp-tp-campus-1 | Software | VerifyEOSVersion | Verifies the EOS version of the device. | - | success | - |
| rtp-tp-campus-1 | Software | VerifyTerminAttrVersion | Verifies the TerminAttr version of the device. | - | success | - |
| rtp-tp-campus-1 | System | VerifyAgentLogs | Verifies there are no agent crash reports. | - | success | - |
| rtp-tp-campus-1 | System | VerifyCPUUtilization | Verifies whether the CPU utilization is below 75%. | - | failure | Device has reported a high CPU utilization -  Expected: < 75% Actual: 88.2% |
| rtp-tp-campus-1 | System | VerifyMaintenance | Verifies that the device is not currently under or entering maintenance. | - | success | - |
| rtp-tp-campus-1 | System | VerifyUptime | Verifies the device uptime. | - | success | - |

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions