Bug #81398
closedqa: Filesystem.create() resets allow_standby_replay, failing test_fs_creation_valid_ops
0%
Description
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.
YP Updated by yash pawar about 2 months ago
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
- 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
- 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
- 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
- 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
- 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