Project

General

Profile

Actions

Bug #58690

open

thrashosds: IndexError: Cannot choose from an empty sequence

Added by Laura Flores about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

/a/lflores-2023-02-08_20:25:06-rados-wip-lflores-testing-2023-02-06-1529-distro-default-smithi/7162184

2023-02-09T06:25:04.977 DEBUG:teuthology.orchestra.run.smithi188:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 30 ceph --cluster ceph --admin-daemon /var/run/ceph/ceph-osd.6.asok dump_historic_ops
2023-02-09T06:25:05.018 INFO:tasks.ceph.osd.4.smithi188.stderr:2023-02-09T06:25:05.018+0000 7fe15d04e700 -1 received  signal: Hangup from /usr/bin/python3 /bin/daemon-helper kill ceph-osd -f --cluster ceph -i 4  (PID: 177284) UID: 0
2023-02-09T06:25:05.055 INFO:tasks.thrashosds.thrasher:in_osds:  [] out_osds:  [3, 0, 1, 5, 7, 4, 6, 2] dead_osds:  [] live_osds:  [3, 0, 5, 1, 7, 6, 4, 2]
2023-02-09T06:25:05.055 INFO:tasks.thrashosds.thrasher:choose_action: min_in 4 min_out 0 min_live 2 min_dead 0 chance_down 0.40
2023-02-09T06:25:05.055 INFO:tasks.thrashosds.thrasher:primary_affinity
2023-02-09T06:25:05.088 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_ljflores_ceph_7d92b57b28ac7cab8bd62c6c814011e285b54dfc/qa/tasks/ceph_manager.py", line 190, in wrapper
    return func(self)
  File "/home/teuthworker/src/github.com_ljflores_ceph_7d92b57b28ac7cab8bd62c6c814011e285b54dfc/qa/tasks/ceph_manager.py", line 1422, in _do_thrash
    self.choose_action()()
  File "/home/teuthworker/src/github.com_ljflores_ceph_7d92b57b28ac7cab8bd62c6c814011e285b54dfc/qa/tasks/ceph_manager.py", line 652, in primary_affinity
    osd = random.choice(self.in_osds)
  File "/usr/lib/python3.8/random.py", line 290, in choice
    raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence

The issue is that in_osds is empty when random.choice tries to pick a random osd id.

Actions

Also available in: Atom PDF