Project

General

Profile

Actions

Bug #62246

closed
RD RD

qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent fails

Bug #62246: qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent fails

Added by Rishabh Dave over 3 years ago. Updated over 1 year ago.

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

0%

Source:
Backport:
quincy,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-5932-g849fbd1d5b1
Released In:
v19.2.0~1673
Upkeep Timestamp:
2025-07-12T03:35:59+00:00

Description

Test method test_mount_mon_and_osd_caps_present_mds_caps_absent (in test_multifs_auth.TestClientsWithoutAuth) fails. Following is the traceback printed when it fails with vstart_runner.py -

2023-07-31 19:28:20,634.634 INFO:__main__:======================================================================
2023-07-31 19:28:20,634.634 INFO:__main__:ERROR: test_mount_mon_and_osd_caps_present_mds_caps_absent (tasks.cephfs.test_multifs_auth.TestClientsWithoutAuth.test_mount_mon_and_osd_caps_present_mds_caps_absent)
2023-07-31 19:28:20,634.634 INFO:__main__:----------------------------------------------------------------------
2023-07-31 19:28:20,634.634 INFO:__main__:Traceback (most recent call last):
2023-07-31 19:28:20,634.634 INFO:__main__:  File "/home/rishabh/repos/ceph/fs-authorize/qa/tasks/cephfs/test_multifs_auth.py", line 303, in test_mount_mon_and_osd_caps_present_mds_caps_absent
2023-07-31 19:28:20,634.634 INFO:__main__:    keyring_path = self.mount_a.client_remote.mktemp(data=keyring)
2023-07-31 19:28:20,634.634 INFO:__main__:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-07-31 19:28:20,634.634 INFO:__main__:  File "/home/rishabh/repos/teuthology/venv-teuth/lib/python3.11/site-packages/teuthology/orchestra/remote.py", line 80, in mktemp
2023-07-31 19:28:20,634.634 INFO:__main__:    self.write_file(path=path, data=data)
2023-07-31 19:28:20,634.634 INFO:__main__:  File "/home/rishabh/repos/teuthology/venv-teuth/lib/python3.11/site-packages/teuthology/orchestra/remote.py", line 295, in write_file
2023-07-31 19:28:20,634.634 INFO:__main__:    self.run(args=args, stdin=data, quiet=True)
2023-07-31 19:28:20,634.634 INFO:__main__:  File "/home/rishabh/repos/ceph/fs-authorize/build/../qa/tasks/vstart_runner.py", line 417, in run
2023-07-31 19:28:20,634.634 INFO:__main__:    return self._do_run(**kwargs)
2023-07-31 19:28:20,634.634 INFO:__main__:           ^^^^^^^^^^^^^^^^^^^^^^
2023-07-31 19:28:20,634.634 INFO:__main__:  File "/home/rishabh/repos/ceph/fs-authorize/build/../qa/tasks/vstart_runner.py", line 448, in _do_run
2023-07-31 19:28:20,634.634 INFO:__main__:    subproc.stdin.write(stdin.getvalue())
2023-07-31 19:28:20,634.634 INFO:__main__:                        ^^^^^^^^^^^^^^
2023-07-31 19:28:20,634.634 INFO:__main__:AttributeError: 'LocalRemoteProcess' object has no attribute 'getvalue'

The root cause for this failure is this line in the helper method create_client() (which is located in qa.tasks.cephfs.cephfs_test_case.CephFSTestCase) - return self.run_ceph_cmd(f'auth get {self.client_name}'). The class that represents the process launched for running this command is returned by this line. This is incorrect since stdout of the command being run should be returned (which will contain the keyring of the client).


Related issues 3 (0 open — 3 closed)

Related to CephFS - Bug #62188: AttributeError: 'RemoteProcess' object has no attribute 'read'DuplicateRishabh Dave

Actions
Copied to CephFS - Backport #65440: reef: qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent failsResolvedRishabh Dave

Actions
Copied to CephFS - Backport #65441: quincy: qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent failsResolvedRishabh Dave

Actions

RD Updated by Rishabh Dave over 3 years ago Actions #1

This failure might be same as the one reported here - https://tracker.ceph.com/issues/62188. If the cause of both the failures are same, the difference in this issue's manifestation, is due to usage of different tracker tickets. For failure on ticket #62188, teuthology was used. And for the failure/traceback reported here, vstart_runner.py was used to run tests.

VS Updated by Venky Shankar over 3 years ago Actions #2

  • Related to Bug #62188: AttributeError: 'RemoteProcess' object has no attribute 'read' added

VS Updated by Venky Shankar over 3 years ago Actions #3

Rishabh Dave wrote:

This failure might be same as the one reported here - https://tracker.ceph.com/issues/62188. If the cause of both the failures are same, the difference in this issue's manifestation, is due to usage of different tracker tickets. For failure on ticket #62188, teuthology was used. And for the failure/traceback reported here, vstart_runner.py was used to run tests.

The status says "Fix Under Review", but has no link to the PR and I cannot find one.

VS Updated by Venky Shankar over 3 years ago Actions #4

Rishabh, were you able to push a fix for this?

VS Updated by Venky Shankar over 2 years ago Actions #5

Rishabh, ping?

RD Updated by Rishabh Dave over 2 years ago Actions #6

  • Status changed from Fix Under Review to Resolved
  • Pull request ID set to 41779

RD Updated by Rishabh Dave over 2 years ago ยท Edited Actions #7

RD Updated by Rishabh Dave over 2 years ago Actions #8

  • Status changed from Resolved to Pending Backport
  • Backport set to quincy,reef

RD Updated by Rishabh Dave over 2 years ago Actions #9

  • Copied to Backport #65440: reef: qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent fails added

RD Updated by Rishabh Dave over 2 years ago Actions #10

  • Copied to Backport #65441: quincy: qa/cephfs: test_mount_mon_and_osd_caps_present_mds_caps_absent fails added

VS Updated by Venky Shankar over 2 years ago Actions #12

Rishabh, do we need this for squid too?

VS Updated by Venky Shankar over 2 years ago Actions #13

Venky Shankar wrote in #note-12:

Rishabh, do we need this for squid too?

Answering this myself - the PR was merged in Sep 2023, so the fix is a part of squid branch.

RD Updated by Rishabh Dave over 2 years ago Actions #14

  • Status changed from Pending Backport to Resolved

All backports have been merged.

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

  • Merge Commit set to 849fbd1d5b1d232e29feeb23f7c93e767569c31f
  • Fixed In set to v18.0.0-5932-g849fbd1d5b1
  • Released In set to v19.2.0~1673
  • Upkeep Timestamp set to 2025-07-12T03:35:59+00:00
Actions

Also available in: PDF Atom