Bug #66883
closedOSDs marked "down and dead" during rados/thrash-old-clients tests time out in recovery
100%
Description
/a/yuriw-2024-07-05_14:04:08-rados-wip-yuri3-testing-2024-07-01-1610-distro-default-smithi/7788584
2024-07-05T17:51:21.004 INFO:teuthology.orchestra.run.smithi029.stdout:{"fsid":"c021c9d6-3af2-11ef-bcab-c7b262605968","health":{"status":"HEALTH_WARN","checks":{"OSDMAP_FLAGS":{"severity":"HEALTH_WARN","summary":{"message":"nodeep-scrub flag(s) set","count":12},"muted":false},"OSD_DOWN":{"severity":"HEALTH_WARN","summary":{"message":"7 osds down","count":7},"muted":false},"OSD_HOST_DOWN":{"severity":"HEALTH_WARN","summary":{"message":"1 host (4 osds) down","count":1},"muted":false},"PG_AVAILABILITY":{"severity":"HEALTH_WARN","summary":{"message":"Reduced data availability: 7 pgs inactive, 2 pgs stale","count":9},"muted":false},"PG_DEGRADED":{"severity":"HEALTH_WARN","summary":{"message":"Degraded data redundancy: 7 pgs undersized","count":7},"muted":false},"SLOW_OPS":{"severity":"HEALTH_WARN","summary":{"message":"32 slow ops, oldest one blocked for 1310 sec, osd.3 has slow ops","count":1},"muted":false}},"mutes":[]},"election_epoch":14,"quorum":[0,1,2],"quorum_names":["a","c","b"],"quorum_age":1731,"monmap":{"epoch":3,"min_mon_release_name":"squid","num_mons":3},"osdmap":{"epoch":466,"num_osds":12,"num_up_osds":5,"osd_up_since":1720200565,"num_in_osds":12,"osd_in_since":1720200426,"num_remapped_pgs":0},"pgmap":{"pgs_by_state":[{"state_name":"undersized+peered","count":6},{"state_name":"stale+active+clean","count":1},{"state_name":"stale+undersized+peered","count":1},{"state_name":"active+clean+scrubbing","count":1}],"num_pgs":9,"num_pools":3,"num_objects":2,"data_bytes":590368,"bytes_used":385445888,"bytes_avail":1151554981888,"bytes_total":1151940427776,"inactive_pgs_ratio":0.77777779102325439},"fsmap":{"epoch":1,"btime":"2024-07-05T17:20:39:934154+0000","by_rank":[],"up:standby":0},"mgrmap":{"available":true,"num_standbys":1,"modules":["cephadm","dashboard","iostat","nfs","restful"],"services":{"dashboard":"https://172.21.15.29:8443/"}},"servicemap":{"epoch":26,"modified":"2024-07-05T17:40:17.739538+0000","services":{}},"progress_events":{}}
...
2024-07-05T17:51:33.796 INFO:tasks.cephadm.ceph_manager.ceph:{'pgid': '1.0', 'version': "34'94", 'reported_seq': 155, 'reported_epoch': 102, 'state': 'stale+active+clean', 'last_fresh': '2024-07-05T17:29:12.725352+0000', 'last_change': '2024-07-05T17:28:42.400194+0000', 'last_active': '2024-07-05T17:29:12.725352+0000', 'last_peered': '2024-07-05T17:29:12.725352+0000', 'last_clean': '2024-07-05T17:29:12.725352+0000', 'last_became_active': '2024-07-05T17:27:25.271264+0000', 'last_became_peered': '2024-07-05T17:27:25.271264+0000', 'last_unstale': '2024-07-05T17:29:18.726120+0000', 'last_undegraded': '2024-07-05T17:29:12.725352+0000', 'last_fullsized': '2024-07-05T17:29:12.725352+0000', 'mapping_epoch': 83, 'log_start': "0'0", 'ondisk_log_start': "0'0", 'created': 14, 'last_epoch_clean': 84, 'parent': '0.0', 'parent_split_bits': 0, 'last_scrub': "34'94", 'last_scrub_stamp': '2024-07-05T17:28:42.400087+0000', 'last_deep_scrub': "34'94", 'last_deep_scrub_stamp': '2024-07-05T17:28:42.400087+0000', 'last_clean_scrub_stamp': '2024-07-05T17:28:42.400087+0000', 'objects_scrubbed': 2, 'log_size': 94, 'log_dups_size': 0, 'ondisk_log_size': 94, 'stats_invalid': False, 'dirty_stats_invalid': False, 'omap_stats_invalid': False, 'hitset_stats_invalid': False, 'hitset_bytes_stats_invalid': False, 'pin_stats_invalid': False, 'manifest_stats_invalid': False, 'snaptrimq_len': 0, 'last_scrub_duration': 1, 'scrub_schedule': 'periodic scrub scheduled @ 2024-07-05T17:30:08.261802+0000', 'scrub_duration': 2, 'objects_trimmed': 0, 'snaptrim_duration': 0, 'stat_sum': {'num_bytes': 590368, 'num_objects': 2, 'num_object_clones': 0, 'num_object_copies': 4, 'num_objects_missing_on_primary': 0, 'num_objects_missing': 0, 'num_objects_degraded': 0, 'num_objects_misplaced': 0, 'num_objects_unfound': 0, 'num_objects_dirty': 2, 'num_whiteouts': 0, 'num_read': 76, 'num_read_kb': 64, 'num_write': 123, 'num_write_kb': 2150, 'num_scrub_errors': 0, 'num_shallow_scrub_errors': 0, 'num_deep_scrub_errors': 0, 'num_objects_recovered': 6, 'num_bytes_recovered': 1586784, 'num_keys_recovered': 0, 'num_objects_omap': 0, 'num_objects_hit_set_archive': 0, 'num_bytes_hit_set_archive': 0, 'num_flush': 0, 'num_flush_kb': 0, 'num_evict': 0, 'num_evict_kb': 0, 'num_promote': 0, 'num_flush_mode_high': 0, 'num_flush_mode_low': 0, 'num_evict_mode_some': 0, 'num_evict_mode_full': 0, 'num_objects_pinned': 0, 'num_legacy_snapsets': 0, 'num_large_omap_objects': 0, 'num_objects_manifest': 0, 'num_omap_bytes': 0, 'num_omap_keys': 0, 'num_objects_repaired': 0}, 'up': [7, 11], 'acting': [7, 11], 'avail_no_missing': [], 'object_location_counts': [], 'blocked_by': [], 'up_primary': 7, 'acting_primary': 7, 'purged_snaps': []}
2024-07-05T17:51:33.797 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
File "/home/teuthworker/src/github.com_ceph_ceph-c_94d903f1a5b2b6b4e586b113a2f2453c5bb8e411/qa/tasks/ceph_manager.py", line 190, in wrapper
return func(self)
File "/home/teuthworker/src/github.com_ceph_ceph-c_94d903f1a5b2b6b4e586b113a2f2453c5bb8e411/qa/tasks/ceph_manager.py", line 1453, in _do_thrash
self.ceph_manager.wait_for_recovery(
File "/home/teuthworker/src/github.com_ceph_ceph-c_94d903f1a5b2b6b4e586b113a2f2453c5bb8e411/qa/tasks/ceph_manager.py", line 2923, in wait_for_recovery
assert now - start < timeout, \
AssertionError: wait_for_recovery: failed before timeout expired
See more examples here: https://pulpito.ceph.com/yuriw-2024-07-05_14:04:08-rados-wip-yuri3-testing-2024-07-01-1610-distro-default-smithi/
I confirmed that this failure exists on another wip branch aside from this one, so it is unrelated to any PRs on this branch.
I suspect this is coming from a recent regression in the OSD code. I looked in the pulpito history and found a good and bad commit (as close together as possible), and these are the commit differences:
lflores:ceph$ git log --pretty=oneline --no-merges a0d71e581ef49e8333309f1d1bce2ff509cf66cf..94d903f1a5b2b6b4e586b113a2f2453c5bb8e411 src/osd 9f6ccafb8656865c87c3052b12422322e1d1d276 crimson/osd/pg: reset the snap mapper's backend when pg interval changes a1084f5bfcda37622accfb1467de9f5370db16ae osd: improve debugs on EC paths that turned problematic in testing 9fcc3bf9016c4192204014ce7303c3193fd05c0e osd: fix trimming of multistripe partial reads e618dc01a7a1bdfaa3e1a6fa2a9a9ac13eee11b8 osd/ECBackend.cc: Fix double increment of num_shards_repaired stat 562e13df0e2a2679e53cd3aeed35cd40ff36f1c9 Annotated Striper.cc and PrimaryLogPG.cc 1deac158036fffa8c2745f27feffcceccb889c27 osd/scrub: do not track reserving state at OSD level cca76b02828ed404ec87bf8cd8c8eae95a25a96b osd/scrub: allow new scrubs while reserving fe0dd36e16bf74e7a8567b5acf74dc1f4db0c64d (ci/wip-rf-targets-j9-prereb) osd/scrub: reuse populate_config_params() in is_time_for_deep(), ca4dab342b7ca758f04e79abf3d9a2a87f4b6d4e osd/scrub: move the scrub mode validation methods to the scrubber 0bef7998d4ecb4022e288b4bec0ad0478917eea0 unittest_osdmap aborted during OSDMapTest.BUG_42485 d89f9ccabf2d208c4de9764ec0f904626f9f6a1d osd/scrub: relocating scrub-related PG methods to PgScrubber.cc 925827850bca9e62fb6e87c805b9961c7bc3ab84 osd/scrub: move more of the scrub initiation logic into the scrubber 707025e9357e3c276adf5a650810ff145c289320 osd, tests: add unittesting for ReadPipeline::get_min_want_to_read_shards() 1af26ff29e253d71a06ea6929db5c37b9d618730 osd: don't realign EC reads to stripe in ReadPipeline::send_all_remaining_reads() f8914a677c44d019722472b15663ea2a199e3566 osd: minimize alignment requirements of ReadPipeline e8f1e7c41604af47a9c6ca717a9985494810daf3 osd: drop the is_systematic from ErasureCodeInterface c4f19f1d29d24147575beac1afc2fb28d939f121 osd: glue read scheduling with decoding in terms of want_to_read 0e3a5dfa3987cf85325659442c097b64c18686f1 osd: EC's ReadCompleters align to chunk size 786f5eda29c32d4ac50f3d49bed992a73c0c7355 osd: generalize the EC partial read optimization ebf71ea4b0c9b5c8cd5769836f56e122b0943c91 osd: refactor get_min_want_to_read_shards() of EC support d665abfbd5397446950eaf205cd076622292f3b7 osd: switch ec_extents_t from pair to named struct 313dcbae828cc24b9c9235f87711773c9f40db73 osd: switch ec_align_t from tuple to named struct c22d0ee2bae5eacb6aa7a934982670681a4d7711 osd: introduce osd_ec_partial_reads configurable 68f3f47606ca3f057f9187a0e01b27da45f4def4 osd: shuffle ECUtil::stripe_info_t::aligned_offset_len_to_chunk to .cc 8b0ed9a2d89352b47caa48149e926debc7ae31f4 osd: avoid visual confusion of var names in EC ReadPipeline 5813ce6c190995d304454d2437acf7fe76632685 osd: EC Partial Stripe Reads (Retry of #23138 and #52746) 0f9548613323120dace95e53f67f58c6e54acd9f osd: introduce aliases around EC reads 0756b702e95d5f84ba7887e4d5d2552a1421827f (rzarzynski/wip-bug-66285) osd: bump versions of decoders for upmap-primary 9865de86bccdc5cee0ed2c835fcf06656af1823e os/bluestore: enable async manual compactions 77dda5ef03979bbaa6c9c8d9bae60d5b1769f6a8 osd: Remove OSDService::get_scrub_cost() 5532f6a9d750f8437df16c4624f35adf84b24e07 osd/scrub: Change scrub cost to use average object size 07c285ae4e230454ffcdf8b9dc64d912a9994626 osd: Rename queue_scrub_event_msg to queue_scrub_event_msg_default_cost c269f352e538b795858b963644a05a65a04b6a8e osd/scrubber: Add a function to calculate scrub cost for mClock ef1cfd7fa3ad7bd9e367dd293b335ba160c52e32 osd: Add function to get osd_bandwidth_cost_per_io
The issue may not be in these commits, but I noticed several of them were not run with a full rados suite, so it's possible a commit had unforseen impacts on the thrash-old-clients tests.
LF Updated by Laura Flores over 2 years ago
In the cluster log, some of the osds are marked down and dead:
/a/yuriw-2024-07-05_14:04:08-rados-wip-yuri3-testing-2024-07-01-1610-distro-default-smithi/7788584/remote/smithi045/log/c021c9d6-3af2-11ef-bcab-c7b262605968
zcat ceph.log.gz | grep "down and dead" 2024-07-05T17:29:15.384146+0000 mon.a (mon.0) 976 : cluster [INF] osd.4 marked itself down and dead 2024-07-05T17:29:15.536243+0000 mon.a (mon.0) 977 : cluster [INF] osd.11 marked itself down and dead 2024-07-05T17:29:15.809744+0000 mon.a (mon.0) 982 : cluster [INF] osd.6 marked itself down and dead 2024-07-05T17:29:15.911467+0000 mon.a (mon.0) 983 : cluster [INF] osd.8 marked itself down and dead 2024-07-05T17:29:18.065600+0000 mon.a (mon.0) 990 : cluster [INF] osd.7 marked itself down and dead 2024-07-05T17:29:20.165563+0000 mon.a (mon.0) 999 : cluster [INF] osd.5 marked itself down and dead 2024-07-05T17:29:24.843922+0000 mon.a (mon.0) 1023 : cluster [INF] osd.2 marked itself down and dead
The last health warning shows 8 osds down and slow ops:
2024-07-06T05:00:00.000176+0000 mon.a (mon.0) 79038 : cluster [WRN] Health detail: HEALTH_WARN nodeep-scrub flag(s) set; 8 osds down; 1 host (4 osds) down; Reduced data availability: 8 pgs inactive, 3 pgs stale; Degraded data redundancy: 8 pgs undersized; 64 slow ops, oldest one blocked for 3675 sec, osd.3 has slow ops 2024-07-06T05:00:00.000201+0000 mon.a (mon.0) 79039 : cluster [WRN] [WRN] OSDMAP_FLAGS: nodeep-scrub flag(s) set 2024-07-06T05:00:00.000208+0000 mon.a (mon.0) 79040 : cluster [WRN] [WRN] OSD_DOWN: 8 osds down 2024-07-06T05:00:00.000216+0000 mon.a (mon.0) 79041 : cluster [WRN] osd.2 (root=default,host=smithi029) is down 2024-07-06T05:00:00.000223+0000 mon.a (mon.0) 79042 : cluster [WRN] osd.3 (root=default,host=smithi029) is down 2024-07-06T05:00:00.000229+0000 mon.a (mon.0) 79043 : cluster [WRN] osd.4 (root=default,host=smithi045) is down 2024-07-06T05:00:00.000239+0000 mon.a (mon.0) 79044 : cluster [WRN] osd.5 (root=default,host=smithi045) is down 2024-07-06T05:00:00.000249+0000 mon.a (mon.0) 79045 : cluster [WRN] osd.6 (root=default,host=smithi045) is down 2024-07-06T05:00:00.000259+0000 mon.a (mon.0) 79046 : cluster [WRN] osd.7 (root=default,host=smithi045) is down 2024-07-06T05:00:00.000267+0000 mon.a (mon.0) 79047 : cluster [WRN] osd.8 (root=default,host=smithi112) is down 2024-07-06T05:00:00.000274+0000 mon.a (mon.0) 79048 : cluster [WRN] osd.11 (root=default,host=smithi112) is down 2024-07-06T05:00:00.000281+0000 mon.a (mon.0) 79049 : cluster [WRN] [WRN] OSD_HOST_DOWN: 1 host (4 osds) down 2024-07-06T05:00:00.000289+0000 mon.a (mon.0) 79050 : cluster [WRN] host smithi045 (root=default) (4 osds) is down 2024-07-06T05:00:00.000297+0000 mon.a (mon.0) 79051 : cluster [WRN] [WRN] PG_AVAILABILITY: Reduced data availability: 8 pgs inactive, 3 pgs stale 2024-07-06T05:00:00.000307+0000 mon.a (mon.0) 79052 : cluster [WRN] pg 1.0 is stuck stale for 11h, current state stale+active+clean, last acting [7,11] 2024-07-06T05:00:00.000315+0000 mon.a (mon.0) 79053 : cluster [WRN] pg 2.0 is stuck inactive for 11h, current state undersized+peered, last acting [10] 2024-07-06T05:00:00.000323+0000 mon.a (mon.0) 79054 : cluster [WRN] pg 2.1 is stuck stale for 10h, current state stale+undersized+peered, last acting [3] 2024-07-06T05:00:00.000332+0000 mon.a (mon.0) 79055 : cluster [WRN] pg 2.2 is stuck inactive for 11h, current state undersized+peered, last acting [1] 2024-07-06T05:00:00.000342+0000 mon.a (mon.0) 79056 : cluster [WRN] pg 2.3 is stuck stale for 11h, current state stale+undersized+peered, last acting [2] 2024-07-06T05:00:00.000350+0000 mon.a (mon.0) 79057 : cluster [WRN] pg 3.0 is stuck inactive for 11h, current state undersized+peered, last acting [9] 2024-07-06T05:00:00.000359+0000 mon.a (mon.0) 79058 : cluster [WRN] pg 3.1 is stuck inactive for 11h, current state undersized+peered, last acting [0] 2024-07-06T05:00:00.000367+0000 mon.a (mon.0) 79059 : cluster [WRN] pg 3.2 is stuck inactive for 11h, current state undersized+peered, last acting [9] 2024-07-06T05:00:00.000375+0000 mon.a (mon.0) 79060 : cluster [WRN] pg 3.3 is stuck inactive for 11h, current state undersized+peered, last acting [0] 2024-07-06T05:00:00.000384+0000 mon.a (mon.0) 79061 : cluster [WRN] [WRN] PG_DEGRADED: Degraded data redundancy: 8 pgs undersized 2024-07-06T05:00:00.000394+0000 mon.a (mon.0) 79062 : cluster [WRN] pg 2.0 is stuck undersized for 11h, current state undersized+peered, last acting [10] 2024-07-06T05:00:00.000402+0000 mon.a (mon.0) 79063 : cluster [WRN] pg 2.1 is stuck undersized for 11h, current state stale+undersized+peered, last acting [3] 2024-07-06T05:00:00.000412+0000 mon.a (mon.0) 79064 : cluster [WRN] pg 2.2 is stuck undersized for 11h, current state undersized+peered, last acting [1] 2024-07-06T05:00:00.000419+0000 mon.a (mon.0) 79065 : cluster [WRN] pg 2.3 is stuck undersized for 11h, current state stale+undersized+peered, last acting [2] 2024-07-06T05:00:00.000428+0000 mon.a (mon.0) 79066 : cluster [WRN] pg 3.0 is stuck undersized for 11h, current state undersized+peered, last acting [9] 2024-07-06T05:00:00.000435+0000 mon.a (mon.0) 79067 : cluster [WRN] pg 3.1 is stuck undersized for 11h, current state undersized+peered, last acting [0] 2024-07-06T05:00:00.000443+0000 mon.a (mon.0) 79068 : cluster [WRN] pg 3.2 is stuck undersized for 10h, current state undersized+peered, last acting [9] 2024-07-06T05:00:00.000453+0000 mon.a (mon.0) 79069 : cluster [WRN] pg 3.3 is stuck undersized for 11h, current state undersized+peered, last acting [0] 2024-07-06T05:00:00.000462+0000 mon.a (mon.0) 79070 : cluster [WRN] [WRN] SLOW_OPS: 64 slow ops, oldest one blocked for 3675 sec, osd.3 has slow ops
The very last health update in the cluster log shows that the cluster never recovers from this state (8 osds are still down):
2024-07-06T05:01:58.461093+0000 mon.a (mon.0) 79178 : cluster [DBG] osdmap e11964: 12 total, 4 up, 12 in
LF Updated by Laura Flores over 2 years ago
- Subject changed from OSDs die during rados/thrash-old-clients tests to OSDs marked "down and dead" during rados/thrash-old-clients tests time out in recovery
NM Updated by Nitzan Mordechai over 2 years ago
/a/yuriw-2024-06-20_13:40:24-rados-wip-yuri10-testing-2024-06-19-1225-distro-default-smithi/7765299
LF Updated by Laura Flores over 2 years ago
- Assignee set to Laura Flores
LF Updated by Laura Flores over 2 years ago
- Status changed from New to In Progress
LF Updated by Laura Flores over 2 years ago
Here are all the operations of an osd after being marked down and dead by the thrasher:
2024-07-05T17:29:15.441+0000 7f9cf86c1640 20 osd.11 102 release_map epoch: 102 2024-07-05T17:29:15.441+0000 7f9cf86c1640 10 osd.11 102 maybe_share_map: con v2:172.21.15.29:6804/4086277704 our osdmap epoch of 102 is not newer than session's projected_epoch of 102 2024-07-05T17:29:15.535+0000 7f9cf66bd640 -1 received signal: Terminated from /run/podman-init -- /usr/bin/ceph-osd -n osd.11 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-journald=true --default-log-to-stderr=false (PID: 1) UID: 0 2024-07-05T17:29:15.535+0000 7f9cf66bd640 -1 osd.11 102 *** Got signal Terminated *** 2024-07-05T17:29:15.535+0000 7f9cf66bd640 0 osd.11 102 Fast Shutdown: - cct->_conf->osd_fast_shutdown = 1, null-fm = 1 2024-07-05T17:29:15.535+0000 7f9cf66bd640 -1 osd.11 102 *** Immediate shutdown (osd_fast_shutdown=true) *** 2024-07-05T17:29:15.535+0000 7f9cf66bd640 0 osd.11 102 prepare_to_stop telling mon we are shutting down and dead 2024-07-05T17:29:15.535+0000 7f9cf66bd640 1 -- [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929] --> [v2:172.21.15.29:3300/0,v1:172.21.15.29:6789/0] -- MOSDMarkMeDown(request_ack=1, down_and_dead=1, osd.11, [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929], fsid=c021c9d6-3af2-11ef-bcab-c7b262605968) -- 0x55c4c8c7e960 con 0x55c4c7c07400 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6828/3651251303,v1:172.21.15.29:6829/3651251303] conn(0x55c4c7fe1800 msgr2=0x55c4c7fe7b80 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 91 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6828/3651251303,v1:172.21.15.29:6829/3651251303] conn(0x55c4c7fe1800 msgr2=0x55c4c7fe7b80 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6828/3651251303,v1:172.21.15.29:6829/3651251303] conn(0x55c4c7fe1800 0x55c4c7fe7b80 crc :-1 s=READY pgs=13 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6828/3651251303,v1:172.21.15.29:6829/3651251303] conn(0x55c4c7fe1800 0x55c4c7fe7b80 unknown :-1 s=READY pgs=13 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-07-05T17:29:15.719+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6828/134962929,v1:172.21.15.112:6829/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c776b400 msgr2=0x55c4c7fe9180 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=1).read_bulk peer close file descriptor 94 2024-07-05T17:29:15.719+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6828/134962929,v1:172.21.15.112:6829/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c776b400 msgr2=0x55c4c7fe9180 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=1).read_until read failed 2024-07-05T17:29:15.719+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6828/134962929,v1:172.21.15.112:6829/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c776b400 0x55c4c7fe9180 crc :-1 s=READY pgs=15 cs=0 l=1 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6830/134962929,v1:172.21.15.112:6831/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c8c26000 msgr2=0x55c4c80b8580 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=1).read_bulk peer close file descriptor 95 2024-07-05T17:29:15.719+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6828/134962929,v1:172.21.15.112:6829/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c776b400 0x55c4c7fe9180 crc :-1 s=READY pgs=15 cs=0 l=1 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6830/134962929,v1:172.21.15.112:6831/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c8c26000 msgr2=0x55c4c80b8580 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=1).read_until read failed 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6830/134962929,v1:172.21.15.112:6831/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c8c26000 0x55c4c80b8580 crc :-1 s=READY pgs=15 cs=0 l=1 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.719+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6830/134962929,v1:172.21.15.112:6831/134962929] >> 172.21.15.29:0/3651251303 conn(0x55c4c8c26000 0x55c4c80b8580 crc :-1 s=READY pgs=15 cs=0 l=1 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop 2024-07-05T17:29:15.719+0000 7f9ce1c96640 20 osd.11 102 heartbeat_reset con 0x55c4c776b400 s 0x55c4c7fda5a0 2024-07-05T17:29:15.719+0000 7f9ce1c96640 10 osd.11 102 heartbeat_reset closing (old) failed hb con 0x55c4c776b400 2024-07-05T17:29:15.719+0000 7f9ce0c94640 20 osd.11 102 heartbeat_reset con 0x55c4c8c26000 s 0x55c4c810d0e0 2024-07-05T17:29:15.719+0000 7f9ce0c94640 10 osd.11 102 heartbeat_reset closing (old) failed hb con 0x55c4c8c26000 2024-07-05T17:29:15.719+0000 7f9cf76bf640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.45:6810/464525255,v1:172.21.15.45:6811/464525255] conn(0x55c4c7fe0800 msgr2=0x55c4c7fe8680 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 100 2024-07-05T17:29:15.719+0000 7f9cf76bf640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.45:6810/464525255,v1:172.21.15.45:6811/464525255] conn(0x55c4c7fe0800 msgr2=0x55c4c7fe8680 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-07-05T17:29:15.719+0000 7f9cf76bf640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.45:6810/464525255,v1:172.21.15.45:6811/464525255] conn(0x55c4c7fe0800 0x55c4c7fe8680 unknown :-1 s=READY pgs=14 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.719+0000 7f9cf76bf640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.45:6810/464525255,v1:172.21.15.45:6811/464525255] conn(0x55c4c7fe0800 0x55c4c7fe8680 unknown :-1 s=READY pgs=14 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-07-05T17:29:15.720+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.112:6802/4073986774,v1:172.21.15.112:6803/4073986774] conn(0x55c4c80b7c00 msgr2=0x55c4c80b9b80 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 92 2024-07-05T17:29:15.720+0000 7f9cf7ec0640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.112:6802/4073986774,v1:172.21.15.112:6803/4073986774] conn(0x55c4c80b7c00 msgr2=0x55c4c80b9b80 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-07-05T17:29:15.720+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.112:6802/4073986774,v1:172.21.15.112:6803/4073986774] conn(0x55c4c80b7c00 0x55c4c80b9b80 unknown :-1 s=READY pgs=17 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.720+0000 7f9cf7ec0640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.112:6802/4073986774,v1:172.21.15.112:6803/4073986774] conn(0x55c4c80b7c00 0x55c4c80b9b80 unknown :-1 s=READY pgs=17 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-07-05T17:29:15.720+0000 7f9ce90dd640 1 -- [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929] <== mon.0 v2:172.21.15.29:3300/0 35 ==== MOSDMarkMeDown(request_ack=0, down_and_dead=0, osd.11, [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929], fsid=c021c9d6-3af2-11ef-bcab-c7b262605968) ==== 119+0+0 (secure 0 0 0) 0x55c4c8c7e960 con 0x55c4c7c07400 2024-07-05T17:29:15.720+0000 7f9ce90dd640 20 osd.11 102 OSD::ms_dispatch: MOSDMarkMeDown(request_ack=0, down_and_dead=0, osd.11, [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929], fsid=c021c9d6-3af2-11ef-bcab-c7b262605968) 2024-07-05T17:29:15.720+0000 7f9ce90dd640 0 osd.11 102 got_stop_ack starting shutdown 2024-07-05T17:29:15.720+0000 7f9cf66bd640 0 osd.11 102 prepare_to_stop starting shutdown 2024-07-05T17:29:15.720+0000 7f9cf66bd640 1 -- [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929] >> [v2:172.21.15.29:6800/391989163,v1:172.21.15.29:6801/391989163] conn(0x55c4c8324000 msgr2=0x55c4c7aab080 secure :-1 s=STATE_CONNECTION_ESTABLISHED l=1).mark_down 2024-07-05T17:29:15.720+0000 7f9cf66bd640 1 --2- [v2:172.21.15.112:6824/134962929,v1:172.21.15.112:6825/134962929] >> [v2:172.21.15.29:6800/391989163,v1:172.21.15.29:6801/391989163] conn(0x55c4c8324000 0x55c4c7aab080 secure :-1 s=READY pgs=118 cs=0 l=1 rev1=1 crypto rx=0x55c4c8847020 tx=0x55c4c6738f60 comp rx=0 tx=0).stop 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6820/1044033006,v1:172.21.15.29:6821/1044033006] conn(0x55c4c7fe1c00 msgr2=0x55c4c7fe8100 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 88 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6820/1044033006,v1:172.21.15.29:6821/1044033006] conn(0x55c4c7fe1c00 msgr2=0x55c4c7fe8100 unknown :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6820/1044033006,v1:172.21.15.29:6821/1044033006] conn(0x55c4c7fe1c00 0x55c4c7fe8100 unknown :-1 s=READY pgs=22 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6820/1044033006,v1:172.21.15.29:6821/1044033006] conn(0x55c4c7fe1c00 0x55c4c7fe8100 unknown :-1 s=READY pgs=22 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6812/1668749537,v1:172.21.15.29:6813/1668749537] conn(0x55c4c7fe1400 msgr2=0x55c4c7fe7600 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 87 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 -- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6812/1668749537,v1:172.21.15.29:6813/1668749537] conn(0x55c4c7fe1400 msgr2=0x55c4c7fe7600 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-07-05T17:29:15.720+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6812/1668749537,v1:172.21.15.29:6813/1668749537] conn(0x55c4c7fe1400 0x55c4c7fe7600 crc :-1 s=READY pgs=21 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-07-05T17:29:15.721+0000 7f9cf86c1640 1 --2- [v2:172.21.15.112:6826/134962929,v1:172.21.15.112:6827/134962929] >> [v2:172.21.15.29:6812/1668749537,v1:172.21.15.29:6813/1668749537] conn(0x55c4c7fe1400 0x55c4c7fe7600 unknown :-1 s=READY pgs=21 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-07-05T17:29:15.721+0000 7f9cda487640 20 osd.11 op_wq(3) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd5c7e640 20 osd.11 op_wq(4) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd8483640 20 osd.11 op_wq(7) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd7c82640 20 osd.11 op_wq(0) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd8c84640 20 osd.11 op_wq(6) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cdbc8a640 20 osd.11 op_wq(0) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cdac88640 20 osd.11 op_wq(2) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd6c80640 20 osd.11 op_wq(2) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd4c7c640 20 osd.11 op_wq(6) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd7481640 20 osd.11 op_wq(1) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd647f640 20 osd.11 op_wq(3) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd547d640 20 osd.11 op_wq(5) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd9c86640 20 osd.11 op_wq(4) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cdb489640 20 osd.11 op_wq(1) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd447b640 20 osd.11 op_wq(7) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9cd9485640 20 osd.11 op_wq(5) _process need return immediately 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) allocation stats probe 0: cnt: 0 frags: 0 size: 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -1: 0, 0, 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -2: 0, 0, 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -4: 0, 0, 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -8: 0, 0, 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -16: 0, 0, 0 2024-07-05T17:29:15.721+0000 7f9ce9ca6640 0 bluestore(/var/lib/ceph/osd/ceph-11) ------------ 2024-07-05T17:29:15.721+0000 7f9cf66bd640 4 rocksdb: [db/db_impl/db_impl.cc:496] Shutdown: canceling all background work 2024-07-05T17:29:15.722+0000 7f9cf66bd640 4 rocksdb: [db/db_impl/db_impl.cc:704] Shutdown complete 2024-07-05T17:29:15.724+0000 7f9cf66bd640 1 bluefs umount 2024-07-05T17:29:15.724+0000 7f9cf66bd640 1 bdev(0x55c4c6763180 /var/lib/ceph/osd/ceph-11/block) close 2024-07-05T17:29:15.993+0000 7f9cf66bd640 1 freelist shutdown 2024-07-05T17:29:15.993+0000 7f9cf66bd640 1 bdev(0x55c4c6762e00 /var/lib/ceph/osd/ceph-11/block) close 2024-07-05T17:29:16.091+0000 7f9cf66bd640 0 osd.11 102 Fast Shutdown duration total :0.556501 seconds 2024-07-05T17:29:16.091+0000 7f9cf66bd640 0 osd.11 102 Fast Shutdown duration osd_drain :0.000419 seconds 2024-07-05T17:29:16.091+0000 7f9cf66bd640 0 osd.11 102 Fast Shutdown duration umount :0.370433 seconds 2024-07-05T17:29:16.091+0000 7f9cf66bd640 0 osd.11 102 Fast Shutdown duration timer :0.000051 seconds
LF Updated by Laura Flores over 2 years ago
- Backport set to squid,reef,quincy
/a/lflores-2024-07-16_17:14:03-rados:thrash-old-clients-wip-yuri3-testing-2024-07-10-1402-quincy-distro-default-smithi/7804018
2024-07-16T18:10:01.304 INFO:[email protected]:Jul 16 18:10:01 smithi177 bash[21633]: cluster 2024-07-16T18:10:00.000130+0000 mon.a (mon.0) 1330 : cluster [WRN] Health detail: HEALTH_WARN 7 osds down; 1 host (4 osds) down; Reduced data availability: 9 pgs inactive, 4 pgs peering, 1 pg stale ... ... 2024-07-16T18:11:59.628 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last): File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 198, in wrapper return func(self) File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 1446, in _do_thrash self.choose_action()() File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 1281, in <lambda> self.inject_pause(key, File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 1035, in inject_pause self.ceph_manager.set_config(the_one, **{conf_key: duration}) File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 2046, in set_config self.wait_run_admin_socket( File "/home/teuthworker/src/github.com_ljflores_ceph_a4767aaf6bff96deda3d78b0cea21f7d0cb7d48b/qa/tasks/ceph_manager.py", line 2003, in wait_run_admin_socket raise Exception('timed out waiting for admin_socket ' Exception: timed out waiting for admin_socket to appear after osd.9 restart
The traceback looks a little different for quincy, but the symptom is the same, where the thrasher marks OSDs down and dead, but they never come back up.
LF Updated by Laura Flores over 2 years ago
Note from scrub: WIP
LF Updated by Laura Flores over 2 years ago
- Related to Bug #67105: OSD killed by sighup in rados/thrash-old-clients added
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: bump up.
LF Updated by Laura Flores over 2 years ago · Edited
Consistently, the following two job descriptions pass:
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/2-size-2-min-size 1-install/squid backoff/peering_and_degraded ceph clusters/{openstack three-plus-one} d-balancer/crush-compat mon_election/classic msgr-failures/fastclose rados thrashers/none thrashosds-health workloads/snaps-few-objects}
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/3-size-2-min-size 1-install/quincy backoff/normal ceph clusters/{openstack three-plus-one} d-balancer/on mon_election/connectivity msgr-failures/few rados thrashers/pggrow thrashosds-health workloads/test_rbd_api}
While these fail:
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/3-size-2-min-size 1-install/reef backoff/peering ceph clusters/{openstack three-plus-one} d-balancer/on mon_election/connectivity msgr-failures/osd-delay rados thrashers/morepggrow thrashosds-health workloads/rbd_cls}
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/2-size-2-min-size 1-install/reef backoff/peering ceph clusters/{openstack three-plus-one} d-balancer/crush-compat mon_election/classic msgr-failures/few rados thrashers/careful thrashosds-health workloads/cache-snaps}
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/3-size-2-min-size 1-install/squid backoff/peering_and_degraded ceph clusters/{openstack three-plus-one} d-balancer/on mon_election/connectivity msgr-failures/osd-delay rados thrashers/default thrashosds-health workloads/radosbench}
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/2-size-2-min-size 1-install/quincy backoff/normal ceph clusters/{openstack three-plus-one} d-balancer/crush-compat mon_election/classic msgr-failures/fastclose rados thrashers/mapgap thrashosds-health workloads/rbd_cls}
rados/thrash-old-clients/{0-distro$/{centos_9.stream} 0-size-min-size-overrides/3-size-2-min-size 1-install/reef backoff/peering ceph clusters/{openstack three-plus-one} d-balancer/on mon_election/connectivity msgr-failures/few rados thrashers/morepggrow thrashosds-health workloads/snaps-few-objects}
Failed jobs have this in common: They use "sudo systemctl kill" to kill OSDs, then run into connection problems:
2024-07-29T23:20:24.017 DEBUG:teuthology.orchestra.run.smithi106:> sudo systemctl kill -s 1 [email protected] 2024-07-29T23:20:24.110 INFO:teuthology.orchestra.run.smithi106.stderr:admin_socket: exception getting command descriptions: [Errno 111] Connection refused
Passing jobs do not run kill commands. Rather, daemons are stopped:
2024-07-29T21:13:16.898 DEBUG:teuthology.orchestra.run.smithi175:> sudo systemctl stop [email protected]
LF Updated by Laura Flores over 2 years ago
Past teuthology jobs used "sudo docker kill" to kill daemons:
/a/lflores-2024-06-10_23:03:46-rados:thrash-old-clients-main-distro-default-smithi/7750035
2024-06-10T23:40:12.574 INFO:tasks.thrashosds.thrasher:starting do_thrash 2024-06-10T23:40:12.574 INFO:tasks.thrashosds.thrasher:in_osds: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] out_osds: [] dead_osds: [] live_osds: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] 2024-06-10T23:40:12.575 INFO:tasks.thrashosds.thrasher:choose_action: min_in 4 min_out 0 min_live 2 min_dead 0 chance_down 0.40 2024-06-10T23:40:12.575 INFO:tasks.thrashosds.thrasher:Removing osd 8, in_osds are: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] 2024-06-10T23:40:12.575 DEBUG:teuthology.orchestra.run.smithi050:> sudo /home/ubuntu/cephtest/cephadm --image quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph:a0d71e581ef49e8333309f1d1bce2ff509cf66cf shell --fsid 76a14054-2781-11ef-bc9b-c7b262605968 -- ceph osd out 8 2024-06-10T23:40:12.575 INFO:tasks.thrashosds.thrasher:starting do_sighup with a delay of 0.1 2024-06-10T23:40:12.575 DEBUG:teuthology.orchestra.run.smithi183:> sudo docker kill -s 1 ceph-76a14054-2781-11ef-bc9b-c7b262605968-osd.8
Current jobs are using "systemctl kill" instead:
/a/yuriw-2024-08-01_19:59:16-rados-wip-yuri5-testing-2024-08-01-0821-quincy-distro-default-smithi/7830609
2024-08-01T23:07:24.424 INFO:tasks.thrashosds.thrasher:starting do_thrash 2024-08-01T23:07:24.424 INFO:tasks.thrashosds.thrasher:in_osds: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] out_osds: [] dead_osds: [] live_osds: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] 2024-08-01T23:07:24.424 INFO:tasks.thrashosds.thrasher:choose_action: min_in 4 min_out 0 min_live 2 min_dead 0 chance_down 0.40 2024-08-01T23:07:24.424 INFO:tasks.thrashosds.thrasher:fixing pg num pool .mgr 2024-08-01T23:07:24.425 DEBUG:teuthology.orchestra.run.smithi003:> sudo /home/ubuntu/cephtest/cephadm --image quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph:c55b53efeefc36e12ef5fb94572a59a7114b8221 shell --fsid 1f43fffe-5058-11ef-bcca-c7b262605968 -- ceph pg dump --format=json 2024-08-01T23:07:24.425 INFO:tasks.thrashosds.thrasher:starting do_sighup with a delay of 0.1 2024-08-01T23:07:24.425 DEBUG:teuthology.orchestra.run.smithi119:> sudo systemctl kill -s 1 [email protected]
I found the change happened with this commit:
https://github.com/ceph/teuthology/commit/2c6d64a222b4d38d4782ed407e045a86df0a6524
LF Updated by Laura Flores over 2 years ago
- Related to Bug #66742: Cephadmunit: kill_cmd() method causes "Cannot kill container: ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8: No such container" added
LF Updated by Laura Flores over 2 years ago
- Related to deleted (Bug #67105: OSD killed by sighup in rados/thrash-old-clients)
LF Updated by Laura Flores over 2 years ago
- Has duplicate Bug #67105: OSD killed by sighup in rados/thrash-old-clients added
LF Updated by Laura Flores over 2 years ago
/a/yuriw-2024-08-01_19:59:16-rados-wip-yuri5-testing-2024-08-01-0821-quincy-distro-default-smithi/7830705
NM Updated by Nitzan Mordechai over 2 years ago
/a/yuriw-2024-08-01_19:44:25-rados-wip-yuri6-testing-2024-07-30-0851-distro-default-smithi/7830369
/a/yuriw-2024-08-01_19:44:25-rados-wip-yuri6-testing-2024-07-30-0851-distro-default-smithi/7830366
/a/yuriw-2024-08-01_19:44:25-rados-wip-yuri6-testing-2024-07-30-0851-distro-default-smithi/7830363
/a/yuriw-2024-08-01_19:44:25-rados-wip-yuri6-testing-2024-07-30-0851-distro-default-smithi/7830372
/a/yuriw-2024-08-01_19:44:25-rados-wip-yuri6-testing-2024-07-30-0851-distro-default-smithi/7830352
AK Updated by Adam Kupczyk over 2 years ago
- Subtask #67105 added
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: let's rise the prio to high.
LF Updated by Laura Flores over 2 years ago · Edited
Reverting that teuthology commit let the tests pass: https://pulpito.ceph.com/lflores-2024-08-06_19:53:18-rados:thrash-old-clients-main-distro-default-smithi/
The idea now is to build on the existing commit, since it was trying to solve a different bug.
A second approach would be to revert it, and then merge an improved fix that doesn't break the thrash-old-clients tests.
To test, I pushed a revert branch to origin teuthology:
https://github.com/ceph/teuthology/tree/wip-kill-cmd
And ran the tests with the teuthology branch set to "wip-kill-command":
./teuthology/virtualenv/bin/teuthology-suite -t wip-kill-cmd -v -m smithi -c main -S 023f9cc8af0a51cfbbd52d76a09dcc87b3c01977 -s rados:thrash-old-clients --subset 111/120000 -p 60
AM Updated by Aishwarya Mathuria over 2 years ago
/a/yuriw-2024-08-07_21:27:43-rados-wip-yuri2-testing-2024-08-05-1243-reef-distro-default-smithi/7842745
/a/yuriw-2024-08-07_21:27:43-rados-wip-yuri2-testing-2024-08-05-1243-reef-distro-default-smithi/7842739
ZC Updated by Zack Cerza over 2 years ago
Any theories as to why docker kill would work while systemctl kill wouldn't? Is there a bug that could be fixed there?
LF Updated by Laura Flores over 2 years ago · Edited
My current theory is that https://github.com/ceph/teuthology/commit/2c6d64a222b4d38d4782ed407e045a86df0a6524 actually exposed an underlying issue with cephadm.
Before https://github.com/ceph/teuthology/commit/2c6d64a222b4d38d4782ed407e045a86df0a6524, the command would fail right upon issuing the kill cmd because the syntax of the container was incorrect:
- 'ceph-%s-%s.%s' % (self.fsid, self.type_, self.id_),
+ 'ceph-%s@%s.%s' % (self.fsid, self.type_, self.id_),
In the following cephadm log on a failed job, cephadm attempts to deploy osd.0, but it hits "Error response from daemon: No such container: ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd-0". I think the container it should be referencing is "[email protected]" as opposed to "ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd.0" or "ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd-0"
/a/yuriw-2024-08-01_19:59:16-rados-wip-yuri5-testing-2024-08-01-0821-quincy-distro-default-smithi/7830705/remote/smithi104/log/cephadm.log.gz
cephadm ['--image', 'quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:f48605ab32ae24e2109f31777ee13a133054680ef686dc9e27e8b6fd83b37444', '--timeout', '895', 'deploy', '--fsid', '8b4dd410-5060-11ef-bcca-c7b262605968', '--name', 'osd.0', '--meta-json', '{"service_name": "osd", "ports": [], "ip": null, "deployed_by": ["quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:f48605ab32ae24e2109f31777ee13a133054680ef686dc9e27e8b6fd83b37444"], "rank": null, "rank_generation": null, "extra_container_args": null, "extra_entrypoint_args": null}', '--config-json', '-', '--osd-fsid', 'e84e5a68-8d3f-4a39-8bc9-e3731958deec', '--allow-ptrace']
2024-08-01 23:53:27,985 7f5a9613e740 INFO Non-zero exit code 1 from /usr/bin/docker container inspect --format {{.State.Status}} ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd-0
2024-08-01 23:53:27,986 7f5a9613e740 INFO /usr/bin/docker: stdout
2024-08-01 23:53:27,986 7f5a9613e740 INFO /usr/bin/docker: stderr Error response from daemon: No such container: ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd-0
2024-08-01 23:53:28,007 7f5a9613e740 INFO Non-zero exit code 1 from /usr/bin/docker container inspect --format {{.State.Status}} ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd.0
2024-08-01 23:53:28,007 7f5a9613e740 INFO /usr/bin/docker: stdout
2024-08-01 23:53:28,007 7f5a9613e740 INFO /usr/bin/docker: stderr Error response from daemon: No such container: ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd.0
2024-08-01 23:53:28,007 7f5a9613e740 INFO Deploy daemon osd.0 ...
2024-08-01 23:53:31,814 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-console-messages.conf ...
2024-08-01 23:53:31,814 7f5a9613e740 DEBUG sysctl: stdout kernel.printk = 4 4 1 7
2024-08-01 23:53:31,814 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-ipv6-privacy.conf ...
2024-08-01 23:53:31,814 7f5a9613e740 DEBUG sysctl: stdout net.ipv6.conf.all.use_tempaddr = 2
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.ipv6.conf.default.use_tempaddr = 2
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-kernel-hardening.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.kptr_restrict = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-link-restrictions.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.protected_hardlinks = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.protected_symlinks = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-magic-sysrq.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.sysrq = 176
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-network-security.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.ipv4.conf.default.rp_filter = 2
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.ipv4.conf.all.rp_filter = 2
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-ptrace.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.yama.ptrace_scope = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/10-zeropage.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout vm.mmap_min_addr = 65536
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/30-ceph-osd.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.aio-max-nr = 1048576
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.pid_max = 4194304
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /usr/lib/sysctl.d/50-default.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.ipv4.conf.default.promote_secondaries = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.ipv4.ping_group_range = 0 2147483647
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout net.core.default_qdisc = fq_codel
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.protected_regular = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.protected_fifos = 1
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.pid_max = 4194304
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/90-ceph-8b4dd410-5060-11ef-bcca-c7b262605968-osd.conf ...
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout fs.aio-max-nr = 1048576
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout kernel.pid_max = 4194304
2024-08-01 23:53:31,815 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.d/99-sysctl.conf ...
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout kernel.core_pattern = /home/ubuntu/cephtest/archive/coredump/%t.%p.core
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout * Applying /usr/lib/sysctl.d/protect-links.conf ...
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout fs.protected_fifos = 1
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout fs.protected_hardlinks = 1
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout fs.protected_regular = 2
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout fs.protected_symlinks = 1
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout * Applying /etc/sysctl.conf ...
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stdout kernel.core_pattern = /home/ubuntu/cephtest/archive/coredump/%t.%p.core
2024-08-01 23:53:31,816 7f5a9613e740 DEBUG sysctl: stderr sysctl: setting key "net.ipv4.conf.all.promote_secondaries": Invalid argument
2024-08-01 23:53:32,043 7f5a9613e740 DEBUG Non-zero exit code 1 from systemctl reset-failed [email protected]
2024-08-01 23:53:32,043 7f5a9613e740 DEBUG systemctl: stderr Failed to reset failed state of unit [email protected]: Unit [email protected] not loaded.
2024-08-01 23:53:32,250 7f5a9613e740 DEBUG systemctl: stderr Created symlink /etc/systemd/system/ceph-8b4dd410-5060-11ef-bcca-c7b262605968.target.wants/[email protected] -> /etc/systemd/system/[email protected]
LF Updated by Laura Flores over 2 years ago
- Project changed from RADOS to Orchestrator
- Assignee changed from Laura Flores to Adam King
@Adam King can you take a look at this issue? I think the container names are being referenced incorrectly in cephadm. This affects thrashing tests AND upgrade tests.
LF Updated by Laura Flores over 2 years ago · Edited
Full summary of the bug:
Several months ago, this commit was merged to teuthology (https://github.com/ceph/teuthology/commit/2c6d64a222b4d38d4782ed407e045a86df0a6524) with the intent of fixing errors like this in the rados/thrash-old-clients tests:
https://pulpito.ceph.com/teuthology-2024-06-20_21:00:02-rados-squid-distro-default-smithi/7766113/
sudo docker kill -s 1 ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8 2024-06-23T11:57:38.131 INFO:teuthology.orchestra.run.smithi204.stderr:Error response from daemon: Cannot kill container: ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8: No such container: ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8 2024-06-23T11:57:38.133 DEBUG:teuthology.orchestra.run:got remote process result: 1 2024-06-23T11:57:38.133 INFO:tasks.cephadm.osd.8:Ignoring exception while sending signal: Command failed on smithi204 with status 1: 'sudo docker kill -s 1 ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8'
The issue above was that the container name was formatted incorrectly (should have been [email protected] instead of ceph-104fc5c2-3155-11ef-bc9d-c7b262605968-osd.8). Despite the above error, rados:thrash-old-clients tests where passing, which is why it didn't raise any alarm bells.
After the teuthology merge, rados:thrash-old-clients tests started dying/timing out. This is an example, where the kill commands now target the correct container names, but the OSDs are not coming back up in the cluster after being marked "down and dead".
Example: https://pulpito.ceph.com/teuthology-2024-08-11_20:00:16-rados-main-distro-default-smithi/7847636/
teuthology.log
2024-08-12T09:09:01.297 DEBUG:teuthology.orchestra.run.smithi176:> sudo systemctl kill -s 1 [email protected] 2024-08-12T09:09:01.300 INFO:[email protected]:Aug 12 09:09:01 smithi076 systemd[1]: [email protected]: Sending signal SIGHUP to process 43191 (podman-init) on client request. 2024-08-12T09:09:01.300 INFO:[email protected]:Aug 12 09:09:01 smithi076 systemd[1]: [email protected]: Sending signal SIGHUP to process 43193 (ceph-osd) on client request. 2024-08-12T09:09:01.300 INFO:[email protected]:Aug 12 09:09:01 smithi076 systemd[1]: [email protected]: Sending signal SIGHUP to process 60801 (podman-init) on client request. ... 2024-08-12T09:09:03.665 INFO:teuthology.orchestra.run.smithi176.stderr:Inferring config /var/lib/ceph/d0a2c1b2-5888-11ef-bcce-c7b262605968/mon.c/config 2024-08-12T09:09:03.695 DEBUG:teuthology.orchestra.run:got remote process result: 22 2024-08-12T09:09:03.697 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last): File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 192, in wrapper return func(self) File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 1496, in _do_thrash self.choose_action()() File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 1334, in <lambda> self.inject_pause(key, File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 1081, in inject_pause self.ceph_manager.set_config(the_one, **{conf_key: duration}) File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 2111, in set_config self.wait_run_admin_socket( File "/home/teuthworker/src/git.ceph.com_ceph_530a2608c02c5e070e0e86b7f0b897f8a2174c6e/qa/tasks/ceph_manager.py", line 2068, in wait_run_admin_socket raise Exception('timed out waiting for admin_socket ' Exception: timed out waiting for admin_socket to appear after osd.11 restart
Focusing on osd.11, we can see that the osd gets shut down but never comes back up as it should in a thrashing test:
2024-08-12T09:06:05.004+0000 7f4d43e81640 10 osd.11 95 _committed_osd_maps bailing, we are shutting down 2024-08-12T09:06:05.005+0000 7f4d39e6d640 20 osd.11 op_wq(1) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d36e67640 20 osd.11 op_wq(7) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d37668640 20 osd.11 op_wq(6) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d33660640 20 osd.11 op_wq(6) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d3866a640 20 osd.11 op_wq(4) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d35664640 20 osd.11 op_wq(2) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d32e5f640 20 osd.11 op_wq(7) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d33e61640 20 osd.11 op_wq(5) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d37e69640 20 osd.11 op_wq(5) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d36666640 20 osd.11 op_wq(0) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d3966c640 20 osd.11 op_wq(2) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d34662640 20 osd.11 op_wq(4) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d38e6b640 20 osd.11 op_wq(3) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d34e63640 20 osd.11 op_wq(3) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d35e65640 20 osd.11 op_wq(1) _process need return immediately 2024-08-12T09:06:05.005+0000 7f4d3a66e640 20 osd.11 op_wq(0) _process need return immediately 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) allocation stats probe 0: cnt: 0 frags: 0 size: 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -1: 0, 0, 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -2: 0, 0, 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -4: 0, 0, 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -8: 0, 0, 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) probe -16: 0, 0, 0 2024-08-12T09:06:05.007+0000 7f4d4868a640 0 bluestore(/var/lib/ceph/osd/ceph-11) ------------ 2024-08-12T09:06:05.007+0000 7f4d51099640 4 rocksdb: [db/db_impl/db_impl.cc:496] Shutdown: canceling all background work 2024-08-12T09:06:05.008+0000 7f4d51099640 4 rocksdb: [db/db_impl/db_impl.cc:704] Shutdown complete 2024-08-12T09:06:05.011+0000 7f4d51099640 1 bluefs umount 2024-08-12T09:06:05.012+0000 7f4d51099640 1 bdev(0x55a9c2cd2400 /var/lib/ceph/osd/ceph-11/block) close 2024-08-12T09:06:05.032+0000 7f4d5309d640 1 -- [v2:172.21.15.176:6826/256734366,v1:172.21.15.176:6827/256734366] >> [v2:172.21.15.76:6812/3606429089,v1:172.21.15.76:6813/3606429089] conn(0x55a9c323a000 msgr2=0x55a9c3c02680 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_bulk peer close file descriptor 95 2024-08-12T09:06:05.032+0000 7f4d5309d640 1 -- [v2:172.21.15.176:6826/256734366,v1:172.21.15.176:6827/256734366] >> [v2:172.21.15.76:6812/3606429089,v1:172.21.15.76:6813/3606429089] conn(0x55a9c323a000 msgr2=0x55a9c3c02680 crc :-1 s=STATE_CONNECTION_ESTABLISHED l=0).read_until read failed 2024-08-12T09:06:05.032+0000 7f4d5309d640 1 --2- [v2:172.21.15.176:6826/256734366,v1:172.21.15.176:6827/256734366] >> [v2:172.21.15.76:6812/3606429089,v1:172.21.15.76:6813/3606429089] conn(0x55a9c323a000 0x55a9c3c02680 crc :-1 s=READY pgs=20 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_read_frame_preamble_main read frame preamble failed r=-1 2024-08-12T09:06:05.032+0000 7f4d5309d640 1 --2- [v2:172.21.15.176:6826/256734366,v1:172.21.15.176:6827/256734366] >> [v2:172.21.15.76:6812/3606429089,v1:172.21.15.76:6813/3606429089] conn(0x55a9c323a000 0x55a9c3c02680 unknown :-1 s=READY pgs=20 cs=0 l=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0)._fault with nothing to send, going to standby 2024-08-12T09:06:05.283+0000 7f4d51099640 1 freelist shutdown 2024-08-12T09:06:05.283+0000 7f4d51099640 1 bdev(0x55a9c2b6cc00 /var/lib/ceph/osd/ceph-11/block) close 2024-08-12T09:06:05.524+0000 7f4d51099640 0 osd.11 95 Fast Shutdown duration total :1.053714 seconds 2024-08-12T09:06:05.524+0000 7f4d51099640 0 osd.11 95 Fast Shutdown duration osd_drain :0.000366 seconds 2024-08-12T09:06:05.524+0000 7f4d51099640 0 osd.11 95 Fast Shutdown duration umount :0.518900 seconds 2024-08-12T09:06:05.524+0000 7f4d51099640 0 osd.11 95 Fast Shutdown duration timer :0.000050 seconds
Looking at cephadm.log.gz and following the same osd.11, we can see that cephadm tries to deploy the daemon, but fails from "Error: no such container ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd.11".
2024-08-12 09:04:48,986 7f006f660740 DEBUG Loaded deploy configuration: {'fsid': 'd0a2c1b2-5888-11ef-bcce-c7b262605968', 'name': 'osd.11', 'image': '', 'deploy_arguments': [], 'params': {'osd_fsid': '898409ff-0669-4e5a-a42d-201286f7cd5f', 'allow_ptrace': True}, 'meta': {'service_name': 'osd', 'ports': [], 'ip': None, 'deployed_by': ['quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:9b547a1c6d6c6f3c0368ad9f1d4e4cd47c328b96b598ad26aab3bae205c54331'], 'rank': None, 'rank_generation': None, 'extra_container_args': None, 'extra_entrypoint_args': None}, 'config_blobs': {'config': '# minimal ceph.conf for d0a2c1b2-5888-11ef-bcce-c7b262605968\n[global]\n\tfsid = d0a2c1b2-5888-11ef-bcce-c7b262605968\n\tmon_host = [v2:172.21.15.76:3300/0,v1:172.21.15.76:6789/0] [v2:172.21.15.155:3300/0,v1:172.21.15.155:6789/0] [v2:172.21.15.176:3300/0,v1:172.21.15.176:6789/0]\n', 'keyring': '[osd.11]\n\tkey = AQAo0LlmsirqNxAA/O58ahUlK9Gaoy863LyooQ==\n\tcaps mgr = "allow profile osd"\n\tcaps mon = "allow profile osd"\n\tcaps osd = "allow *"\n'}}
2024-08-12 09:04:48,986 7f006f660740 DEBUG Determined image: 'quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:9b547a1c6d6c6f3c0368ad9f1d4e4cd47c328b96b598ad26aab3bae205c54331'
2024-08-12 09:04:49,028 7f006f660740 INFO Non-zero exit code 125 from /usr/bin/podman container inspect --format {{.State.Status}} ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd-11
2024-08-12 09:04:49,028 7f006f660740 INFO /usr/bin/podman: stderr Error: no such container ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd-11
2024-08-12 09:04:49,051 7f006f660740 INFO Non-zero exit code 125 from /usr/bin/podman container inspect --format {{.State.Status}} ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd.11
2024-08-12 09:04:49,052 7f006f660740 INFO /usr/bin/podman: stderr Error: no such container ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd.11
2024-08-12 09:04:49,052 7f006f660740 INFO Deploy daemon osd.11 ...
2024-08-12 09:04:51,381 7f006f660740 DEBUG sysctl: stdout 1048576
2024-08-12 09:04:51,383 7f006f660740 DEBUG sysctl: stdout 4194304
2024-08-12 09:04:51,645 7f006f660740 DEBUG Non-zero exit code 1 from systemctl reset-failed [email protected]
2024-08-12 09:04:51,645 7f006f660740 DEBUG systemctl: stderr Failed to reset failed state of unit [email protected]: Unit [email protected] not loaded.
This looks very similar to the problem that https://github.com/ceph/teuthology/commit/2c6d64a222b4d38d4782ed407e045a86df0a6524 was originally trying to solve, but I think that fix has exposed this underlying issue in cephadm, where the daemon names are also incorrectly formatted, and therefore not getting redeployed correctly.
This same issue affects the upgrade tests, which you can see in all the "hit max timeout" failures from the upgrade runs done on the latest squid-release branch:
https://pulpito.ceph.com/yuriw-2024-08-02_15:47:00-upgrade:reef-x-squid-release-distro-default-smithi/
My guess at this level is that cephadm needs to be fixed so that it properly references the daemon to redeploy it.
LF Updated by Laura Flores over 2 years ago
After working on this with @Adam King, here's where we're at in our understanding of this bug:
Adam clarified that the errors about containers not being found (see https://tracker.ceph.com/issues/66883#note-26) are actually expected due to changes in container naming conventions. However, he pointed out that the real issue might be with the `systemctl reset-failed` command (https://github.com/ceph/ceph/blob/main/src/cephadm/cephadmlib/systemd.py#L81) used for stopping daemons. He also looked into the thrashing logic and noticed that the thrashosds task was spamming `systemctl stop` commands at the OSDs, sometimes stopping the same OSD multiple times within a few milliseconds. He wondered if that was the intended behavior.
For example, osd.3 gets 4 kill commands within half a second, while 2,4, and 5 get none. Even without that random spam towards osd.3, in general they're all getting killed almost every second. Adam wondered if that's the intended behavior of this task or if these are supposed to be more spread out:
2024-08-13 15:48:17,410.410 INFO:teuthology.orchestra.run.smithi117.stdout:osd.0: {}
2024-08-13 15:48:17,410.410 INFO:teuthology.orchestra.run.smithi117.stdout:osd.1: {}
2024-08-13 15:48:17,410.410 INFO:teuthology.orchestra.run.smithi117.stdout:osd.2: {}
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:osd.0: osd_enable_op_tracker = ''
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:osd.1: osd_enable_op_tracker = ''
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:osd.2: osd_enable_op_tracker = ''
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:Error ENXIO: problem getting command descriptions from osd.3
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:Error ENXIO: problem getting command descriptions from osd.4
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:Error ENXIO: problem getting command descriptions from osd.5
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:Error ENXIO: problem getting command descriptions from osd.6
2024-08-13 15:48:17,411.411 INFO:teuthology.orchestra.run.smithi117.stderr:Error ENXIO: problem getting command descriptions from osd.7
2024-08-13 15:48:17,412.412 DEBUG:teuthology.orchestra.run.smithi194:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:17,546.546 DEBUG:teuthology.orchestra.run.smithi194:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:17,639.639 INFO:teuthology.orchestra.run.smithi117.stderr:Inferring config /var/lib/ceph/0e655fe8-5981-11ef-bcce-c7b262605968/mon.a/config
2024-08-13 15:48:17,681.681 DEBUG:teuthology.orchestra.run.smithi117:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:17,812.812 DEBUG:teuthology.orchestra.run.smithi117:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:17,825.825 INFO:tasks.radosbench.radosbench.0.smithi117.stdout: 1341 16 37 21 0.000978636 0 - 0.00230848
2024-08-13 15:48:17,942.942 DEBUG:teuthology.orchestra.run.smithi117:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:18,072.072 DEBUG:teuthology.orchestra.run.smithi117:> sudo systemctl kill -s 1 [email protected]
2024-08-13 15:48:18,203.203 DEBUG:teuthology.orchestra.run.smithi117:> sudo systemctl kill -s 1 [email protected]
I looked into the sighup settings in the thrashing task. I found that the default value for sighup delay in the thrashosds task is 0.1 seconds: https://github.com/ceph/ceph/blob/2b06a578e52fe59bc10d60965173668d2bb779ad/qa/tasks/thrashosds.py#L151-L152.
`do_sighup`, which is called during the thrashing event, picks a random OSD out of the list of live OSDs and issues a sighup signal. Then it sleeps for 0.1 seconds before doing it to another "live" OSD: https://github.com/ceph/ceph/blob/2b06a578e52fe59bc10d60965173668d2bb779ad/qa/tasks/ceph_manager.py#L1376-L1387
The interesting thing is that the osd is picked out of "self.live_osds", so we're supposed to be sending SIGHUP signals only to live OSDs: https://github.com/ceph/ceph/blob/2b06a578e52fe59bc10d60965173668d2bb779ad/qa/tasks/ceph_manager.py#L1385
Looking at the output more, I saw we're sending sighup signals to the OSDs, but we're not ever taking them out of the "live_osds" list. For example here, we're killing osd.4, but it still reports as "live". I suspected that do_sighup spams certain OSDs because it still thinks the OSD is live.
2024-08-09T15:23:53.251 DEBUG:teuthology.orchestra.run.smithi067:> sudo systemctl kill -s 1 [email protected] 2024-08-09T15:23:53.259 INFO:tasks.thrashosds.thrasher:in_osds: [0, 1, 2, 3, 4, 5, 6, 7] out_osds: [] dead_osds: [] live_osds: [0, 1, 2, 3, 4, 5, 6, 7]
In the do_thrash function, we revive dead OSDs once they exceed "maxdead" osds:
@log_exc
def _do_thrash(self):
"""
Loop to select random actions to thrash ceph manager with.
"""
cleanint = self.config.get("clean_interval", 60)
scrubint = self.config.get("scrub_interval", -1)
maxdead = self.config.get("max_dead", 0)
delay = self.config.get("op_delay", 5)
self.rerrosd = self.live_osds[0]
if self.random_eio > 0:
self.ceph_manager.inject_args('osd', self.rerrosd,
'bluestore_debug_random_read_err',
self.random_eio)
self.log("starting do_thrash")
while not self.stopping:
to_log = [str(x) for x in ["in_osds: ", self.in_osds,
"out_osds: ", self.out_osds,
"dead_osds: ", self.dead_osds,
"live_osds: ", self.live_osds]]
self.log(" ".join(to_log))
if random.uniform(0, 1) < (float(delay) / cleanint):
while len(self.dead_osds) > maxdead:
self.revive_osd()
My theory was, in the do_sighup function, we are not updating the "self.live_osds" and "self.dead_osds" lists properly. I suspected that updating these properly would mean that the do_thrash function would see that the OSDs are dead, and then actually revive them if the number exceeds max dead. I tried this change out:
@log_exc
def do_sighup(self):
"""
Loops and sends signal.SIGHUP to a random live osd.
Loop delay is controlled by the config value sighup_delay.
"""
delay = float(self.sighup_delay)
self.log("starting do_sighup with a delay of {0}".format(delay))
while not self.stopping:
osd = random.choice(self.live_osds)
+ self.live_osds.remove(osd)
+ self.dead_osds.append(osd)
self.ceph_manager.signal_osd(osd, signal.SIGHUP, silent=True)
time.sleep(delay)
I scheduled tests here: https://pulpito.ceph.com/lflores-2024-08-13_20:59:56-rados:thrash-old-clients-main-distro-default-smithi/
But the solution didn't quite work due to the following traceback: (Note that I killed the teuthology run after seeing this and didn't let the tests run to completion)
/a/lflores-2024-08-13_20:59:56-rados:thrash-old-clients-main-distro-default-smithi/7853449
2024-08-13T21:25:16.746 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
File "/home/teuthworker/src/github.com_ljflores_ceph_a08c93919831eedcdd8257d4c0b956eaf53b32fc/qa/tasks/ceph_manager.py", line 192, in wrapper
return func(self)
File "/home/teuthworker/src/github.com_ljflores_ceph_a08c93919831eedcdd8257d4c0b956eaf53b32fc/qa/tasks/ceph_manager.py", line 1385, in do_sighup
osd = random.choice(self.live_osds)
File "/usr/lib/python3.10/random.py", line 378, in choice
return seq[self._randbelow(len(seq))]
IndexError: list index out of range
BH Updated by Brad Hubbard over 2 years ago
$ pwd /a/teuthology-2024-08-11_20:00:16-rados-main-distro-default-smithi/7847636 ./remote/smithi176/log/d0a2c1b2-5888-11ef-bcce-c7b262605968/ceph-osd.11.log.gz: 2024-08-12T09:06:04.470+0000 7f4d51099640 -1 received signal: Terminated from /run/podman-init -- /usr/bin/ceph-osd -n osd.11 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-journald=true --default-log-to-stderr=false (PID: 1) UID: 0 2024-08-12T09:06:04.470+0000 7f4d51099640 -1 osd.11 95 *** Got signal Terminated *** 2024-08-12T09:06:04.470+0000 7f4d51099640 0 osd.11 95 Fast Shutdown: - cct->_conf->osd_fast_shutdown = 1, null-fm = 1 2024-08-12T09:06:04.470+0000 7f4d51099640 -1 osd.11 95 *** Immediate shutdown (osd_fast_shutdown=true) *** 2024-08-12T09:06:04.470+0000 7f4d51099640 0 osd.11 95 prepare_to_stop telling mon we are shutting down and dead
That was at 2024-08-12T09:06:04.470+0000...
Looking in teuthology.log.
2024-08-12T09:06:03.687 INFO:[email protected]:Aug 12 09:06:03 smithi176 systemd[1]: [email protected]: Sending signal SIGHUP to process 54966 (ceph-osd) on client request. 2024-08-12T09:06:04.308 INFO:[email protected]:Aug 12 09:06:04 smithi176 podman[59512]: 2024-08-12 09:06:04.142403326 +0000 UTC m=+0.693844827 container died 634c7f7c5fe9d375f089e2adf0aa66f9bc30707ecea2b6ff0c71b5595f9b1dd3 (image=quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:9b547a1c6d6c6f3c0368ad9f1d4e4cd47c328b96b598ad26aab3bae205c54331, name=ceph-d0a2c1b2-5888-11ef-bcce-c7b262605968-osd-10-deactivate, org.label-schema.name=CentOS Stream 9 Base Image, maintainer=Guillaume Abrioux <[email protected]>, io.buildah.version=1.36.0, CEPH_POINT_RELEASE=, org.label-schema.schema-version=1.0, org.label-schema.vendor=CentOS, GIT_BRANCH=HEAD, ceph=True, org.label-schema.build-date=20240731, GIT_CLEAN=True, [email protected]:ceph/ceph-container.git, GIT_COMMIT=c5aaba5e3282b30e4782f2b5d6e4e362e22dfcb7, org.label-schema.license=GPLv2, RELEASE=main-530a260) 2024-08-12T09:06:05.161 INFO:[email protected]:Aug 12 09:06:05 smithi176 ceph-mon[32716]: osd.11 marked itself down and dead
My theory was, in the do_sighup function, we are not updating the
"self.live_osds" and "self.dead_osds" lists properly
There's a reason for that, let me explain. When I send a SIGHUP to an osd in a
vstart cluster I get the following log entry.
2024-08-14T02:42:24.572+0000 7f00649a4640 -1 received signal: Hangup from -bash (PID: 1468023) UID: 1126
That comes from here in src/global/signal_handler.cc.
message << "received signal: " << sig_str(signum);
switch (siginfo->si_code) {
case SI_USER:
message << " from " << get_name_by_pid(siginfo->si_pid);
// If PID is undefined, it doesn't have a meaning to be displayed
if (siginfo->si_pid) {
message << " (PID: " << siginfo->si_pid << ")";
} else {
message << " ( Could be generated by pthread_kill(), raise(), abort(), alarm() )";
}
message << " UID: " << siginfo->si_uid;
break;
default:
/* As we have a not expected signal, let's report the structure to help debugging */
message << ", si_code : " << siginfo->si_code;
message << ", si_value (int): " << siginfo->si_value.sival_int;
message << ", si_value (ptr): " << siginfo->si_value.sival_ptr;
message << ", si_errno: " << siginfo->si_errno;
message << ", si_pid : " << siginfo->si_pid;
message << ", si_uid : " << siginfo->si_uid;
message << ", si_addr" << siginfo->si_addr;
message << ", si_status" << siginfo->si_status;
break;
}
derr << message.str() << dendl;
handlers[signum]->handler(signum); <------ Call registered signal handler
src/ceph_osd.cc:
// install signal handlers
init_async_signal_handler();
register_async_signal_handler(SIGHUP, sighup_handler);
src/global/signal_handler.cc:
void sighup_handler(int signum)
{
g_ceph_context->reopen_logs();
}
So all a SIGHUP should do to an OSD is get it to reopen it's logs and in the
logs of the vstart cluster I do not see the OSD shutting down, and it doesn't
shut down.
So do_sighup is not supposed to shut down an OSD IIUC so the fact it is is
probably a large part of the issue and this is clearly linked to the commit you
mentioned which introduced the systemctl kill command. If do_sighup is sending
SIGHUPs too often that is something that should be looked at at some stage but
is low impact and that's why it's been missed until now I guess?
Going back to the log message we see when the osd dies.
2024-08-12T09:06:04.470+0000 7f4d51099640 -1 received signal: Terminated from /run/podman-init -- /usr/bin/ceph-osd -n osd.11 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-journald=true --default-log-to-stderr=false (PID: 1) UID: 0
Looking at this the OSD received a signal not from systemctl, but from
podman-init.
Fron the systemctl man page.
kill PATTERN...
Send a UNIX process signal to one or more processes of the unit. Use --kill-whom= to select which process to send the signal to. Use --signal= to select the signal to send. Combine with --kill-value= to enqueue a POSIX
Realtime Signal with an associated value.
So maybe what's happening here is sometimes the wrong process gets the SIGHUP
and translates it into a SIGTERM for the OSD process?
So maybe we need a '--kill-whom=' entry to be more specific, or maybe we need to
look at whether this change was valid and necessary?
If I start this test and go into interactive mode I can do the following.
root@smithi001:~# systemctl kill -s 1 [email protected] root@smithi001:~# ceph -s cluster: id: a68c8f8a-59ef-11ef-bccf-c7b262605968 health: HEALTH_WARN 1 osds down services: mon: 3 daemons, quorum a,b,c (age 27m) mgr: y(active, since 29m), standbys: x osd: 12 osds: 11 up (since 4s), 12 in (since 17m) data: pools: 1 pools, 1 pgs objects: 2 objects, 577 KiB usage: 363 MiB used, 1.0 TiB / 1.0 TiB avail pgs: 1 active+clean
That brings the osd down.
# journalctl -u [email protected] -- Logs begin at Sun 2022-08-14 12:20:24 UTC, end at Wed 2024-08-14 04:20:20 UTC. -- Aug 14 03:50:43 smithi001 systemd[1]: Started Ceph osd.0 for a68c8f8a-59ef-11ef-bccf-c7b262605968. Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/ceph-bluestore-tool prime-osd-dir --path /var/lib/ceph/osd/ceph-0 --no-mon-config --dev /dev/mapper/vg_nvme-lv_4 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -h ceph:ceph /dev/mapper/vg_nvme-lv_4 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /dev/dm-3 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/ln -s /dev/mapper/vg_nvme-lv_4 /var/lib/ceph/osd/ceph-0/block Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 03:50:45 smithi001 bash[34375]: --> ceph-volume raw activate successful for osd ID: 0 Aug 14 03:50:47 smithi001 bash[34684]: debug 2024-08-14T03:50:47.112+0000 7f85cf5d8640 1 -- 172.21.15.1:0/3635382355 <== mon.0 v2:172.21.15.1:3300/0 4 ==== auth_reply(proto 2 0 (0) Success) v1 ==== 194+0+0 (secure 0 0 0) 0x55c813db71e> Aug 14 03:50:47 smithi001 bash[34684]: debug 2024-08-14T03:50:47.656+0000 7f85d1e3e640 -1 Falling back to public interface Aug 14 03:50:50 smithi001 bash[34684]: debug 2024-08-14T03:50:50.604+0000 7f85d1e3e640 -1 osd.0 0 log_to_monitors true Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.560+0000 7f85cddbf640 -1 osd.0 0 waiting for initial osdmap Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.588+0000 7f85c5be0640 -1 osd.0 7 set_numa_affinity unable to identify public interface '' numa node: (2) No such file or directory Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.701+0000 7f85cedd7640 -1 received signal: Hangup from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --def> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 received signal: Terminated from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false -> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Got signal Terminated *** Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Immediate shutdown (osd_fast_shutdown=true) *** Aug 14 04:17:26 smithi001 bash[70776]: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:26 smithi001 bash[70853]: Error response from daemon: No such container: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:29 smithi001 systemd[1]: [email protected]: Succeeded. # systemctl status [email protected] * [email protected] - Ceph osd.0 for a68c8f8a-59ef-11ef-bccf-c7b262605968 Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled) Active: inactive (dead) since Wed 2024-08-14 04:17:29 UTC; 3min 49s ago Process: 34342 ExecStart=/bin/bash /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0/unit.run (code=killed, signal=HUP) <-------------------- NOTE Process: 70745 ExecStop=/bin/bash -c bash /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0/unit.stop (code=exited, status=0/SUCCESS) Process: 70826 ExecStopPost=/bin/bash /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0/unit.poststop (code=exited, status=0/SUCCESS) Main PID: 34342 (code=killed, signal=HUP) Aug 14 03:50:50 smithi001 bash[34684]: debug 2024-08-14T03:50:50.604+0000 7f85d1e3e640 -1 osd.0 0 log_to_monitors true Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.560+0000 7f85cddbf640 -1 osd.0 0 waiting for initial osdmap Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.588+0000 7f85c5be0640 -1 osd.0 7 set_numa_affinity unable to identify public interface '' numa node: (2) No such file or directory Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.701+0000 7f85cedd7640 -1 received signal: Hangup from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --def> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 received signal: Terminated from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false -> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Got signal Terminated *** Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Immediate shutdown (osd_fast_shutdown=true) *** Aug 14 04:17:26 smithi001 bash[70776]: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:26 smithi001 bash[70853]: Error response from daemon: No such container: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:29 smithi001 systemd[1]: [email protected]: Succeeded.
Continuing in another comment....
BH Updated by Brad Hubbard over 2 years ago · Edited
If I restart that osd and send the osd process itself SIGHUP.
# ps auwwx|grep -P "\d /usr/bin/ceph-osd -n osd.0 " 167 71522 0.6 0.1 705460 64596 ? Sl 04:24 0:01 /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-stderr=true --default-log-stderr-prefix=debug root@smithi001:~# kill -SIGHUP 71522 root@smithi001:~# ps auwwx|grep -P "\d /usr/bin/ceph-osd -n osd.0 " 167 71522 0.5 0.2 708532 67564 ? Sl 04:24 0:03 /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-stderr=true --default-log-stderr-prefix=debug root@smithi001:~# kill -SIGHUP 71522 root@smithi001:~# journalctl -u [email protected] -- Logs begin at Sun 2022-08-14 12:20:24 UTC, end at Wed 2024-08-14 04:37:01 UTC. -- Aug 14 03:50:43 smithi001 systemd[1]: Started Ceph osd.0 for a68c8f8a-59ef-11ef-bccf-c7b262605968. Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/ceph-bluestore-tool prime-osd-dir --path /var/lib/ceph/osd/ceph-0 --no-mon-config --dev /dev/mapper/vg_nvme-lv_4 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -h ceph:ceph /dev/mapper/vg_nvme-lv_4 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /dev/dm-3 Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/ln -s /dev/mapper/vg_nvme-lv_4 /var/lib/ceph/osd/ceph-0/block Aug 14 03:50:45 smithi001 bash[34375]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 03:50:45 smithi001 bash[34375]: --> ceph-volume raw activate successful for osd ID: 0 Aug 14 03:50:47 smithi001 bash[34684]: debug 2024-08-14T03:50:47.112+0000 7f85cf5d8640 1 -- 172.21.15.1:0/3635382355 <== mon.0 v2:172.21.15.1:3300/0 4 ==== auth_reply(proto 2 0 (0) Success) v1 ==== 194+0+0 (secure 0 0 0) 0x55c813db71e> Aug 14 03:50:47 smithi001 bash[34684]: debug 2024-08-14T03:50:47.656+0000 7f85d1e3e640 -1 Falling back to public interface Aug 14 03:50:50 smithi001 bash[34684]: debug 2024-08-14T03:50:50.604+0000 7f85d1e3e640 -1 osd.0 0 log_to_monitors true Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.560+0000 7f85cddbf640 -1 osd.0 0 waiting for initial osdmap Aug 14 03:50:52 smithi001 bash[34684]: debug 2024-08-14T03:50:52.588+0000 7f85c5be0640 -1 osd.0 7 set_numa_affinity unable to identify public interface '' numa node: (2) No such file or directory Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.701+0000 7f85cedd7640 -1 received signal: Hangup from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --def> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 received signal: Terminated from /sbin/docker-init -- /usr/bin/ceph-osd -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false -> Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Got signal Terminated *** Aug 14 04:17:24 smithi001 bash[34684]: debug 2024-08-14T04:17:24.789+0000 7f85cedd7640 -1 osd.0 263 *** Immediate shutdown (osd_fast_shutdown=true) *** Aug 14 04:17:26 smithi001 bash[70776]: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:26 smithi001 bash[70853]: Error response from daemon: No such container: ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 Aug 14 04:17:29 smithi001 systemd[1]: [email protected]: Succeeded. Aug 14 04:24:41 smithi001 systemd[1]: Started Ceph osd.0 for a68c8f8a-59ef-11ef-bccf-c7b262605968. Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/ceph-bluestore-tool prime-osd-dir --path /var/lib/ceph/osd/ceph-0 --no-mon-config --dev /dev/mapper/vg_nvme-lv_4 Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/chown -h ceph:ceph /dev/mapper/vg_nvme-lv_4 Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/chown -R ceph:ceph /dev/dm-3 Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/ln -s /dev/mapper/vg_nvme-lv_4 /var/lib/ceph/osd/ceph-0/block Aug 14 04:24:42 smithi001 bash[71165]: Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-0 Aug 14 04:24:42 smithi001 bash[71165]: --> ceph-volume raw activate successful for osd ID: 0 Aug 14 04:24:44 smithi001 bash[71470]: debug 2024-08-14T04:24:44.675+0000 7f53d8d0f640 1 -- 172.21.15.1:0/1732878270 <== mon.0 v2:172.21.15.1:3300/0 4 ==== auth_reply(proto 2 0 (0) Success) v1 ==== 194+0+0 (secure 0 0 0) 0x559d90ea31e> Aug 14 04:24:45 smithi001 bash[71470]: debug 2024-08-14T04:24:45.219+0000 7f53db575640 -1 Falling back to public interface Aug 14 04:24:48 smithi001 bash[71470]: debug 2024-08-14T04:24:48.199+0000 7f53db575640 -1 osd.0 263 log_to_monitors true Aug 14 04:24:48 smithi001 bash[71470]: debug 2024-08-14T04:24:48.475+0000 7f53caefb640 -1 osd.0 263 failed to load OSD map for epoch 272, got 0 bytes Aug 14 04:24:48 smithi001 bash[71470]: debug 2024-08-14T04:24:48.491+0000 7f53cf317640 -1 osd.0 326 set_numa_affinity unable to identify public interface '' numa node: (2) No such file or directory Aug 14 04:28:09 smithi001 bash[71470]: debug 2024-08-14T04:28:09.200+0000 7f53d850e640 -1 received signal: Hangup from Kernel ( Could be generated by pthread_kill(), raise(), abort(), alarm() ) UID: 0 Aug 14 04:36:54 smithi001 bash[71470]: debug 2024-08-14T04:36:54.276+0000 7f53d850e640 -1 received signal: Hangup from Kernel ( Could be generated by pthread_kill(), raise(), abort(), alarm() ) UID: 0 root@smithi001:~# ceph osd tree ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF -1 1.04755 root default -3 0.34918 host smithi001 0 ssd 0.08730 osd.0 up 1.00000 1.00000 1 ssd 0.08730 osd.1 up 1.00000 1.00000 2 ssd 0.08730 osd.2 up 1.00000 1.00000 3 ssd 0.08730 osd.3 up 1.00000 1.00000 -7 0.34918 host smithi066 8 ssd 0.08730 osd.8 up 1.00000 1.00000 9 ssd 0.08730 osd.9 up 1.00000 1.00000 10 ssd 0.08730 osd.10 up 1.00000 1.00000 11 ssd 0.08730 osd.11 up 1.00000 1.00000 -5 0.34918 host smithi119 4 ssd 0.08730 osd.4 up 1.00000 1.00000 5 ssd 0.08730 osd.5 up 1.00000 1.00000 6 ssd 0.08730 osd.6 up 1.00000 1.00000 7 ssd 0.08730 osd.7 up 1.00000 1.00000
That's a big difference in behaviour.
# docker kill -s 1 ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0
Behaves the same in that the osd just receives SIGHUP, not SIGTERM.
The problem, as I see it at the moment, is that the bash process seen in
systemctl status output gets sent SIGHUP which causes the bash process to exit
and everything dies withit :( I beleive this is normal behaviour for bash
according to https://www.gnu.org/software/bash/manual/html_node/Signals.html You
can see in some of the log excerpts above we actually recieve the SIGHUP first
and then get a SIGTERM after it.
# systemctl status [email protected]|head -10 * [email protected] - Ceph osd.0 for a68c8f8a-59ef-11ef-bccf-c7b262605968 Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-08-14 05:23:16 UTC; 16min ago Main PID: 84668 (bash) Tasks: 10 (limit: 38318) Memory: 10.5M CGroup: /system.slice/system-ceph\x2da68c8f8a\x2d59ef\x2d11ef\x2dbccf\x2dc7b262605968.slice/[email protected] |-84668 /bin/bash /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0/unit.run <------------- **************** THIS ONE ****************** `-84948 /usr/bin/docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint /usr/bin/ceph-osd --privileged --group-add=disk --init --name ceph-a68c8f8a-59ef-11ef-bccf-c7b262605968-osd-0 --pids-limit=0 -e CONTAINER_IMAGE=quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:8c7d8e7afdcc248f29636c2acfe0261d19b263a646df5802a302656c0228cc70 -e NODE_NAME=smithi001 -e CEPH_USE_RANDOM_NONCE=1 -e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728 -v /var/run/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968:/var/run/ceph:z -v /var/log/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968:/var/log/ceph:z -v /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/crash:/var/lib/ceph/crash:z -v /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0:/var/lib/ceph/osd/ceph-0:z -v /var/lib/ceph/a68c8f8a-59ef-11ef-bccf-c7b262605968/osd.0/config:/etc/ceph/ceph.conf:z -v /dev:/dev -v /run/udev:/run/udev -v /sys:/sys -v /run/lvm:/run/lvm -v /run/lock/lvm:/run/lock/lvm -v /:/rootfs quay-quay-quay.apps.os.sepia.ceph.com/ceph-ci/ceph@sha256:8c7d8e7afdcc248f29636c2acfe0261d19b263a646df5802a302656c0228cc70 -n osd.0 -f --setuser ceph --setgroup ceph --default-log-to-file=false --default-log-to-stderr=true --default-log-stderr-prefix=debug
I played around and don't see a way around this so far looking at, and testing
the various options. Not sure how this ever worked for any signal other than
SIGTERM?
LF Updated by Laura Flores over 2 years ago
- Project changed from Orchestrator to teuthology
- Assignee changed from Adam King to Laura Flores
Making this a teuthology issue.
LF Updated by Laura Flores over 2 years ago · Edited
This PR reverts the commit for now: https://github.com/ceph/teuthology/pull/1999
If there needs to be follow up, it can happen in a separate PR that is carefully tested against the rados:thrash-old-clients tests, the orch suite, and upgrade suites.
LF Updated by Laura Flores over 2 years ago
- Backport deleted (
squid,reef,quincy)
Removing backport fields since this is not ceph code.
LF Updated by Laura Flores over 2 years ago
- Status changed from In Progress to Resolved
LF Updated by Laura Flores over 2 years ago
@Brad Hubbard FYI we decided to address sighup handling in a separate PR and go with a revert for now. @Vallari Agrawal will explore using `kill-whom` to direct the sighup to the OSD rather than bash.
BH Updated by Brad Hubbard over 2 years ago
Just FYI, I looked at 'kill-whom' but the options are 'main' or 'control' [0]
and neither work in our case, should have mentioned that, sorry.
LF Updated by Laura Flores over 2 years ago
- Subtask deleted (
#67105)
LF Updated by Laura Flores over 2 years ago
- Has duplicate Bug #67105: OSD killed by sighup in rados/thrash-old-clients added
LF Updated by Laura Flores over 2 years ago
/a/yuriw-2024-08-09_22:43:18-rados-wip-yuri2-testing-2024-08-09-0834-reef-distro-default-smithi/7846482