Project

General

Profile

Actions

Bug #81398

closed
VS VS

qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops

Bug #81398: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops

Added by Venky Shankar 2 months ago. Updated about 1 month ago.

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

0%

Source:
Development
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
qa, qa-failure
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-5059-g932a319280
Released In:
Upkeep Timestamp:
2026-10-28T09:07:35+00:00

Description

- https://pulpito.ceph.com/vshankar-2026-10-02_21:48:19-fs-wip-vshankar-testing-20261002.175142-distro-default-trial/602745/

test_fs_creation_valid_ops (tasks.cephfs.test_misc.TestNewFSCreation) fails on the allow_standby_replay case.

  File "qa/tasks/cephfs/test_misc.py", line 846, in test_fs_creation_valid_ops
    self.assertEqual(fs_op_val, fs_ops_list[i+1])
  AssertionError: 'false' != 'true'

The mon applies the option correctly; the qa helper overrides it right
after. mon acks for that case:

  fs new test_fs ... set allow_standby_replay true      =0 (v271)
  fs set test_fs standby_count_wanted 0                  =0 (v272)  <- Filesystem.create()
  fs set test_fs standby_enable_host_anti_affinity false =0 (v273)  <- Filesystem.create()
  fs set test_fs allow_standby_replay false              =0 (v274)  <- Filesystem.create()
  fs dump -> flags_state.allow_standby_replay = false

After "fs new", Filesystem.create() runs

  if self.fs_config is not None:
      ...
      standby_replay = self.fs_config.get('standby_replay', False)
      self.set_allow_standby_replay(standby_replay)

fs_config defaults to {} (never None), so every create() ends with "fs set <fs> allow_standby_replay false".

"fs new ... set allow_standby_replay true" succeeds (fsmap v271), but the qa helper explicitly disables the option right after (v274), before the test reads it back. The test therefore never observes the value set by "fs new"; whether the mon applied it is not verified by this run.


Related issues 3 (3 open — 0 closed)

Copied to CephFS - Backport #82215: tentacle: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_opsNewVenky Shankar

Actions
Copied to CephFS - Backport #82216: squid: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_opsNewVenky Shankar

Actions
Copied to CephFS - Backport #82217: umbrella: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_opsNewVenky Shankar

Actions

YP Updated by yash pawar about 2 months ago Actions #1

Hi, I'd like to work on this. Please assign it to me (yash). I'll post a PR fixing Filesystem.create() overriding allow_standby_replay when fs_config doesn't set it.

VS Updated by Venky Shankar about 2 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Assignee set to Venky Shankar
  • Pull request ID set to 72817

yash pawar wrote in #note-1:

Hi, I'd like to work on this. Please assign it to me (yash). I'll post a PR fixing Filesystem.create() overriding allow_standby_replay when fs_config doesn't set it.

I already had the fix in my branch before you reached out. Sorry!

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

  • Copied to Backport #82215: tentacle: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops added

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

  • Copied to Backport #82216: squid: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops added

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

  • Copied to Backport #82217: umbrella: qa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops added

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

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to 932a319280eb4166ed8ac7ce871c1300462c1b62
  • Fixed In set to v21.3.0-5059-g932a319280
  • Upkeep Timestamp set to 2026-10-28T09:07:35+00:00
Actions

Also available in: PDF Atom