Project

General

Profile

Actions

Bug #62713

closed
KS NM

sync && sudo umount -f /var/lib/ceph/osd/ceph-6

Bug #62713: sync && sudo umount -f /var/lib/ceph/osd/ceph-6

Added by Kamoltat (Junior) Sirivadhna about 3 years ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle,squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-598-ga7052198d9
Released In:
v21.2.0~2874
Upkeep Timestamp:
2026-11-04T01:05:22+00:00

Description

Description of problem

/a/yuriw-2023-08-16_18:39:08-rados-wip-yuri3-testing-2023-08-15-0955-distro-default-smithi/7370263/

Traceback:

2023-08-16T22:19:50.948 DEBUG:teuthology.orchestra.run.smithi123:> sync && sudo umount -f /var/lib/ceph/osd/ceph-6
2023-08-16T22:19:51.024 INFO:teuthology.orchestra.run.smithi123.stderr:umount: /var/lib/ceph/osd/ceph-6: target is busy.

We suspect that the problem might be to do with systemd


Related issues 3 (2 open — 1 closed)

Copied to RADOS - Backport #71540: tentacle: sync && sudo umount -f /var/lib/ceph/osd/ceph-6Fix Under ReviewNitzan Mordechai

Actions
Copied to RADOS - Backport #71541: reef: sync && sudo umount -f /var/lib/ceph/osd/ceph-6RejectedNitzan Mordechai

Actions
Copied to RADOS - Backport #71542: squid: sync && sudo umount -f /var/lib/ceph/osd/ceph-6Fix Under ReviewNitzan Mordechai

Actions

LF Updated by Laura Flores about 3 years ago Actions #1

@Junior have you seen any further instances of this?

KS Updated by Kamoltat (Junior) Sirivadhna about 3 years ago Actions #2

/a/yuriw-2023-11-02_14:18:00-rados-wip-yuri-testing-2023-11-01-1538-reef-distro-default-smithi/7444612/

LF Updated by Laura Flores over 2 years ago Actions #3

/a/lflores-2024-07-23_16:58:04-rados-squid-distro-default-smithi/7814104
/a/lflores-2024-07-23_16:58:04-rados-squid-distro-default-smithi/7814102

LF Updated by Laura Flores over 2 years ago Actions #4

/a/yuriw-2024-08-06_00:08:05-rados-wip-yuri6-testing-2024-08-05-0905-squid-distro-default-smithi/7838404

LF Updated by Laura Flores over 2 years ago Actions #5

/a/yuriw-2024-08-02_15:32:29-rados-squid-release-distro-default-smithi/7833174

LF Updated by Laura Flores over 2 years ago Actions #6

/a/yuriw-2024-08-28_23:20:36-rados-wip-yuri4-testing-2024-08-28-1359-distro-default-smithi/7879426

LF Updated by Laura Flores about 2 years ago Actions #7

/a/yuriw-2024-08-29_14:15:40-rados-wip-yuri8-testing-2024-08-28-1632-squid-distro-default-smithi/7880295

LF Updated by Laura Flores about 2 years ago Actions #8

/a/yuriw-2024-10-15_14:06:51-rados-wip-yuri8-testing-2024-10-14-1103-distro-default-smithi/7948329

KS Updated by Kamoltat (Junior) Sirivadhna about 2 years ago Actions #9

/a/yuriw-2024-10-16_22:34:49-rados-wip-yuri10-testing-2024-10-15-1007-distro-default-smithi/7952607/

LF Updated by Laura Flores about 2 years ago Actions #10

/a/yuriw-2024-10-16_14:57:58-rados-wip-yuri2-testing-2024-10-15-0703-distro-default-smithi/7950794

LF Updated by Laura Flores about 2 years ago Actions #11

/a/yuriw-2024-11-18_23:57:04-rados-wip-yuri4-testing-2024-11-18-0759-squid-distro-default-smithi/7999083

SS Updated by Sridhar Seshasayee about 2 years ago Actions #12

/a/skanta-2024-11-26_00:08:32-rados-wip-bharath8-testing-2024-11-25-1916-squid-distro-default-smithi/8009802

NM Updated by Nitzan Mordechai almost 2 years ago Actions #13

/a/skanta-2025-01-24_10:43:00-rados-wip-bharath10-testing-2025-01-24-0941-squid-distro-default-smithi/8091987
/a/skanta-2025-01-24_10:43:00-rados-wip-bharath10-testing-2025-01-24-0941-squid-distro-default-smithi/8091815
/a/skanta-2025-01-24_10:43:00-rados-wip-bharath10-testing-2025-01-24-0941-squid-distro-default-smithi/8091962

LF Updated by Laura Flores over 1 year ago Actions #14

/a/skanta-2025-03-01_01:42:21-rados-wip-bharath3-testing-2025-03-01-0356-distro-default-smithi/8162042

LF Updated by Laura Flores over 1 year ago Actions #15

/a/yuriw-2025-02-26_00:53:37-rados-wip-yuri2-testing-2025-02-25-1331-squid-distro-default-smithi/8154000

LF Updated by Laura Flores over 1 year ago Actions #16

/a/yuriw-2025-03-14_20:32:49-rados-wip-yuri7-testing-2025-03-11-0847-distro-default-smithi/8190596

NM Updated by Nitzan Mordechai over 1 year ago Actions #17

/a/yuriw-2025-03-18_01:22:46-rados-wip-yuri5-testing-2025-03-17-1441-reef-distro-default-smithi/
['8196387', '8196551', '8196575', '8196409']

AK Updated by Adam Kupczyk over 1 year ago Actions #18

https://pulpito.ceph.com/akupczyk-2025-03-25_08:05:35-rados-aclamk-wip-ifed-fix-bluefs-reserved2-distro-default-smithi/8207871/

There are 16 deployed OSD. All seem to be running fine.
At some point we do:

2025-03-25T10:38:22.772 INFO:teuthology.misc:Shutting down osd daemons...

This initiates shutting down loop (teuthology/misc.py):

def stop_daemons_of_type(ctx, type_, cluster='ceph', timeout=300):
    """ 
    :param type_: type of daemons to be stopped.
    :param cluster: Cluster name, default is 'ceph'.
    :param timeout: Timeout in seconds for stopping each daemon.
    """ 
    log.info('Shutting down %s daemons...' % type_)
    exc = None
    for daemon in ctx.daemons.iter_daemons_of_role(type_, cluster):
        try:
            daemon.stop(timeout)
        except (CommandFailedError,
                CommandCrashedError,
                ConnectionLostError) as e:
            exc = e
            log.exception('Saw exception from %s.%s', daemon.role, daemon.id_)
    if exc is not None:
        raise exc

But somehow now all OSDs are processed by "for daemon in ctx.daemons.iter_daemons_of_role(type_, cluster):"
There are messages for stopping:
0, 4, 8, 12,
1, 5, 9, 13,
2, 6, 10, 14,
3
and that's it.
At this point we continue to shuttdown monitors.

This is reflected with sequence of osds getting termination signals.
But 7, 11, 15 are not there.

2025-03-25T10:38:22.776+0000 add6640 -1 osd.0 347 *** Got signal Terminated ***
2025-03-25T10:41:13.732+0000 add6640 -1 osd.4 348 *** Got signal Terminated ***
2025-03-25T10:41:19.794+0000 add6640 -1 osd.8 350 *** Got signal Terminated ***
2025-03-25T10:41:25.899+0000 add6640 -1 osd.12 352 *** Got signal Terminated ***
2025-03-25T10:41:32.000+0000 add6640 -1 osd.1 354 *** Got signal Terminated ***
2025-03-25T10:41:38.103+0000 add6640 -1 osd.5 356 *** Got signal Terminated ***
2025-03-25T10:41:44.204+0000 add6640 -1 osd.9 357 *** Got signal Terminated ***
2025-03-25T10:41:50.307+0000 add6640 -1 osd.13 359 *** Got signal Terminated ***
2025-03-25T10:41:56.411+0000 add6640 -1 osd.2 360 *** Got signal Terminated ***
2025-03-25T10:42:02.514+0000 add6640 -1 osd.6 361 *** Got signal Terminated ***
2025-03-25T10:42:08.616+0000 add6640 -1 osd.10 362 *** Got signal Terminated ***
2025-03-25T10:42:14.718+0000 add6640 -1 osd.14 363 *** Got signal Terminated ***
2025-03-25T10:42:20.822+0000 add6640 -1 osd.3 364 *** Got signal Terminated ***

At this point is seems only natural that we cannot umount osd.7 device.

LF Updated by Laura Flores over 1 year ago Actions #21

/a/skanta-2025-04-04_06:10:17-rados-wip-bharath10-testing-2025-04-03-2112-distro-default-smithi/8223483

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #22

yuriw-2025-03-26_14:16:14-rados-wip-yuri8-testing-2025-03-25-0803-squid-distro-default-smithi/8210861/

LF Updated by Laura Flores over 1 year ago Actions #23

/a/teuthology-2025-04-06_20:00:14-rados-main-distro-default-smithi/8226707
3 jobs: ['8226707', '8226537', '8226683']

LF Updated by Laura Flores over 1 year ago Actions #24

  • Project changed from Infrastructure to RADOS
  • Description updated (diff)

LF Updated by Laura Flores over 1 year ago Actions #25

/a/skanta-2025-04-05_15:49:33-rados-wip-bharath8-testing-2025-04-05-1439-distro-default-smithi/8225226

LF Updated by Laura Flores over 1 year ago Actions #26

Pinged in #ceph-devel to see if someone can pick this up.

NM Updated by Nitzan Mordechai over 1 year ago Actions #27

  • Status changed from New to In Progress
  • Assignee set to Nitzan Mordechai

@Laura Flores looks like we are not waiting enough for the osd to terminate before umount. we can use "stop-daemons-timeout" that I added recently.
I'll create PR for that

NM Updated by Nitzan Mordechai over 1 year ago Actions #28

  • Pull request ID set to 62823

NM Updated by Nitzan Mordechai over 1 year ago Actions #29

  • Status changed from In Progress to Fix Under Review

LF Updated by Laura Flores over 1 year ago Actions #30

Awesome, thanks Nitzan!

LF Updated by Laura Flores over 1 year ago Actions #31

Approved the fix and added "needs QA".

LF Updated by Laura Flores over 1 year ago Actions #32

  • Backport set to squid

/a/skanta-2025-04-25_13:44:10-rados-wip-bharath10-testing-2025-04-25-0722-squid-distro-default-smithi/8259017

LF Updated by Laura Flores over 1 year ago Actions #33

  • Backport changed from squid to squid,reef

/a/skanta-2025-04-03_15:46:29-rados-wip-bharath5-testing-2025-04-03-1526-reef-distro-default-smithi/8223045

LF Updated by Laura Flores over 1 year ago Actions #34

Fix has been approved; waiting for ci to pass.

LF Updated by Laura Flores over 1 year ago Actions #35

Retriggered ci again.

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #36

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from squid,reef to tentacle,squid,reef

Merged in main.

UB Updated by Upkeep Bot over 1 year ago Actions #37

  • Copied to Backport #71540: tentacle: sync && sudo umount -f /var/lib/ceph/osd/ceph-6 added

UB Updated by Upkeep Bot over 1 year ago Actions #38

  • Copied to Backport #71541: reef: sync && sudo umount -f /var/lib/ceph/osd/ceph-6 added

UB Updated by Upkeep Bot over 1 year ago Actions #39

  • Copied to Backport #71542: squid: sync && sudo umount -f /var/lib/ceph/osd/ceph-6 added

UB Updated by Upkeep Bot over 1 year ago Actions #40

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #41

  • Merge Commit set to a7052198d9bd906b8a162745c4604a12a44bc94d
  • Fixed In set to v20.3.0-598-ga7052198d9b
  • Upkeep Timestamp set to 2025-07-09T16:09:40+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #42

  • Fixed In changed from v20.3.0-598-ga7052198d9b to v20.3.0-598-ga7052198d9
  • Upkeep Timestamp changed from 2025-07-09T16:09:40+00:00 to 2025-07-14T17:41:50+00:00

LS Updated by Lee Sanders over 1 year ago Actions #43

/a/skanta-2025-07-16_13:08:53-rados-wip-bharath3-testing-2025-07-16-1352-squid-distro-default-smithi/8390617

LS Updated by Lee Sanders over 1 year ago Actions #44

/a/skanta-2025-07-16_13:08:53-rados-wip-bharath3-testing-2025-07-16-1352-squid-distro-default-smithi/8390677/

LS Updated by Lee Sanders over 1 year ago Actions #45

/a/skanta-2025-07-16_22:44:28-rados-wip-bharath3-testing-2025-07-16-1352-squid-distro-default-smithi/8391937

JB Updated by Jonathan Bailey over 1 year ago Actions #46

/a/skanta-2025-07-20_23:27:54-rados-wip-bharath6-testing-2025-07-20-0524-reef-distro-default-smithi/8399136
/a/skanta-2025-07-20_23:27:54-rados-wip-bharath6-testing-2025-07-20-0524-reef-distro-default-smithi/8399152
/a/skanta-2025-07-20_02:53:19-rados-wip-bharath6-testing-2025-07-20-0524-reef-distro-default-smithi/8397555

KS Updated by Kamoltat (Junior) Sirivadhna about 1 year ago Actions #47

/a/skanta-2025-08-16_00:23:08-rados-wip-bharath6-testing-2025-08-15-1555-reef-distro-default-smithi/8445287

LF Updated by Laura Flores about 1 year ago Actions #48

/a/lflores-2025-09-24_21:18:12-rados-reef-distro-default-smithi/8518886

UB Updated by Upkeep Bot 3 months ago Actions #49

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-07-14T17:41:50+00:00 to 2026-08-27T18:03:11+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #50

  • Released In set to v21.2.0~2873
  • Upkeep Timestamp changed from 2026-08-27T18:03:11+00:00 to 2026-10-24T01:05:50+00:00

UB Updated by Upkeep Bot 29 days ago Actions #51

  • Released In changed from v21.2.0~2873 to v21.2.0~2874
  • Upkeep Timestamp changed from 2026-10-24T01:05:50+00:00 to 2026-11-04T01:05:22+00:00
Actions

Also available in: PDF Atom