Project

General

Profile

Actions

Bug #43308

closed

negative num_objects can set PG_STATE_DEGRADED

Added by Neha Ojha over 4 years ago. Updated about 4 years ago.

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

0%

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

Description

2019-12-05 02:06:37.943 7f830d1c5700 20 osd.0 pg_epoch: 325 pg[2.25( v 325'60 (0'0,325'60] local-lis/les=309/310 n=-1 ec=210/20 lis/c 309/309 les/c/f 310/310/0 303/309/289) [0,5]/[0,5,6] r=0 lpr=309 crt=325'60 lcod 324'58 mlcod 323'56 active+clean+remapped+snaptrim trimq=[f9~1] ps=57] _update_calc_stats degraded -1
2019-12-05 02:06:37.943 7f830d1c5700 20 osd.0 pg_epoch: 325 pg[2.25( v 325'60 (0'0,325'60] local-lis/les=309/310 n=-1 ec=210/20 lis/c 309/309 les/c/f 310/310/0 303/309/289) [0,5]/[0,5,6] r=0 lpr=309 crt=325'60 lcod 324'58 mlcod 323'56 active+clean+remapped+snaptrim trimq=[f9~1] ps=57] _update_calc_stats misplaced 0
2019-12-05 02:06:37.943 7f830d1c5700 20 osd.0 pg_epoch: 325 pg[2.25( v 325'60 (0'0,325'60] local-lis/les=309/310 n=-1 ec=210/20 lis/c 309/309 les/c/f 310/310/0 303/309/289) [0,5]/[0,5,6] r=0 lpr=309 crt=325'60 lcod 324'58 mlcod 323'56 active+clean+degraded+remapped+snaptrim trimq=[f9~1] ps=57] publish_stats_to_osd reporting purged_snaps [92~1,94~1,9a~5,a0~1,a3~3,a7~1,ad~1,b0~1,b2~2,b5~1,b8~4,bd~1,c0~2,c3~3,c8~3,cd~2,d1~2,d4~1,d6~2,d9~1,dc~2,e0~3,e4~1,e6~1,e9~3,ef~1,f1~1,f5~1,f8~1,fb~2,fe~1,101~1,106~1] 

/a/yuriw-2019-12-04_22:44:10-rados-wip-yuri2-testing-2019-12-04-1938-mimic-distro-basic-smithi/4567200

if (pool.info.is_replicated()) {
// Add degraded for missing targets (num_objects missing)
ceph_assert(target >= upset.size());
unsigned needed = target - upset.size();
degraded += num_objects * needed;

and

if (info.stats.stats.sum.num_objects_degraded) {
state_set(PG_STATE_DEGRADED);


Related issues 2 (0 open2 closed)

Copied to RADOS - Backport #43471: nautilus: negative num_objects can set PG_STATE_DEGRADEDResolvedNathan CutlerActions
Copied to RADOS - Backport #43472: mimic: negative num_objects can set PG_STATE_DEGRADEDResolvedNathan CutlerActions
Actions #1

Updated by Neha Ojha over 4 years ago

  • Status changed from New to In Progress
  • Assignee set to Neha Ojha
Actions #2

Updated by Neha Ojha over 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Backport set to mimic,nautilus
  • Pull request ID set to 32305
Actions #3

Updated by Kefu Chai over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #43471: nautilus: negative num_objects can set PG_STATE_DEGRADED added
Actions #5

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #43472: mimic: negative num_objects can set PG_STATE_DEGRADED added
Actions #6

Updated by Nathan Cutler about 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF