Page MenuHomePhabricator

[ceph,network] Intermittent network packets lost
Closed, ResolvedPublic

Description

Network task: T371879: cloudsw1-d5-eqiad instability Aug 6 2024

We are seeing intermittent errors from ceph about heartbeats being lost:

root@cloudcephmon1001:~# ceph health detail
HEALTH_WARN Slow OSD heartbeats on back (longest 4069.103ms); Slow OSD heartbeats on front (longest 4758.555ms)
[WRN] OSD_SLOW_PING_TIME_BACK: Slow OSD heartbeats on back (longest 4069.103ms)
    Slow OSD heartbeats on back from osd.215 [E4] to osd.185 [D5] 4069.103 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.187 [D5] 4069.047 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.179 [D5] 4069.044 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.188 [D5] 4069.005 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.176 [D5] 4068.977 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.146 [D5] 4068.947 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.112 [D5] 4068.943 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.119 [D5] 4068.939 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.141 [D5] 4068.918 msec
    Slow OSD heartbeats on back from osd.215 [E4] to osd.136 [D5] 4068.915 msec
    Truncated long network list.  Use ceph daemon mgr.# dump_osd_network for more information
[WRN] OSD_SLOW_PING_TIME_FRONT: Slow OSD heartbeats on front (longest 4758.555ms)
    Slow OSD heartbeats on front from osd.215 [E4] to osd.188 [D5] 4758.555 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.187 [D5] 4758.461 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.185 [D5] 4758.396 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.89 [D5] 4743.249 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.90 [D5] 4741.362 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.91 [D5] 4741.343 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.93 [D5] 4741.323 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.96 [D5] 4721.570 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.100 [D5] 4719.752 msec
    Slow OSD heartbeats on front from osd.215 [E4] to osd.99 [D5] 4719.597 msec
    Truncated long network list.  Use ceph daemon mgr.# dump_osd_network for more information

These seem to be always between E4/F4 and D5, not always the same node.

On the graphs I can see that pings are being lost:
https://grafana.wikimedia.org/d/P1tFnn3Mk/wmcs-ceph-eqiad-health?orgId=1

image.png (3,152×317 px, 40 KB)

https://grafana.wikimedia.org/d/613dNf3Gz/wmcs-ceph-eqiad-performance?orgId=1

image.png (1,581×608 px, 127 KB)

The switches seem ok, not overloaded though.

Event Timeline

dcaro triaged this task as High priority.

It seems that the root issue is the switch cloudsw-d5-eqiad having trouble keeping the non-physical interfaces up (not cpu though, but behaves as if cpu was the issue), that makes bgp and LAG interfaces flap, and creates small periodicall network outages that affect everything else (ceph loses heartbeats and starts thinking osds are down, etc.).

The solution (or at least next step) is to reboot the switch.

Currently we have increased the timeouts and changed the LACP mode from 'fast' to 'slow' keepalive messages and that seems to have stabilized the network (21min and counting).

Hi @dcaro, can you please associate one or more active project tags with this task (via the Add Action... → Change Project Tags dropdown)? That will allow to see a task when looking at project workboards or searching for tasks in certain projects, and get notified about a task when watching a related project tag. Thanks!

Also see: T371879#10049699 Something created a large traffic spike between cloudsw1-d5 and cloudsw1-f4 today.

dcaro claimed this task.

This was sorted out by hard-rebooting the switch that was misbehaving, and has not happened again (something related but not exactly the same is happening with the switch on C8, but there's another task for it T373986: cloudsw1-c8-eqiad is unstable)