Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa: use kclient xattr to lookup client id #42081

Merged
merged 3 commits into from
Jul 2, 2021
Merged

Conversation

batrick
Copy link
Member

@batrick batrick commented Jun 29, 2021

No description provided.

@@ -202,18 +180,54 @@ def read_debug_file(self, filename):
return None
raise

def _get_global_id(self):
try:
p = self.run_shell_payload(f"getfattr --only-values -n ceph.client_id .", stdout=StringIO())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you not call getxattr() directly from python? I'd think that would be possible, and it would be more efficient.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're probably thinking of the python programs that call getxattr for us. Those are transmitted to the "client" host and then executed. It would probably be less efficient than calling /bin/getfattr.

@batrick
Copy link
Member Author

batrick commented Jun 29, 2021

https://pulpito.ceph.com/pdonnell-2021-06-29_14:48:22-fs-master-distro-basic-smithi/

will test more widely in a future qa run

@batrick
Copy link
Member Author

batrick commented Jun 29, 2021

jenkins test make check

@batrick batrick requested review from lxbsz and jtlayton June 29, 2021 16:52
batrick added a commit to batrick/ceph that referenced this pull request Jun 29, 2021
* refs/pull/42081/head:
	qa: use kclient xattr to lookup client id
	qa: refactor reading debug file code
	qa: get mount id before failing fs
Copy link
Member

@lxbsz lxbsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Otherwise getxattr will hang.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
No need to invoke Python to read a file!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
batrick added a commit to batrick/ceph that referenced this pull request Jun 30, 2021
* refs/pull/42081/head:
	qa: use kclient xattr to lookup client id
	qa: refactor reading debug file code
	qa: get mount id before failing fs
batrick added a commit to batrick/ceph that referenced this pull request Jul 2, 2021
* refs/pull/42081/head:
	qa: use kclient xattr to lookup client id
	qa: refactor reading debug file code
	qa: get mount id before failing fs
Added relatively recently but in RHEL 8.4.

Fixes: https://tracker.ceph.com/issues/51183
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@batrick
Copy link
Member Author

batrick commented Jul 2, 2021

https://tracker.ceph.com/projects/cephfs/wiki/Master#2021-July-01

with small follow-on fix in test branch.

@batrick batrick merged commit f987914 into ceph:master Jul 2, 2021
@batrick batrick deleted the i51183 branch July 2, 2021 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants