Project

General

Profile

Fix #38801

qa: ignore "ceph.dir.pin: No such attribute" for (old) kernel client

Added by Patrick Donnelly 5 months ago. Updated 4 months ago.

Status:
Need Review
Priority:
High
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
nautilus,mimic,luminous
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
qa-suite
Labels (FS):
qa, task(easy)
Pull request ID:

Description

The issue is that getxattr support for "ceph.dir.pin" is not yet backported to RHEL. We want to ignore these spurious failures while we're still testing the older kernel client without the backport.

Failure: Test failure: test_export_pin (tasks.cephfs.test_exports.TestExports)
10 jobs: ['3731253', '3730866', '3730952', '3730909', '3730995', '3731167', '3731124', '3731038', '3731081', '3731210']
suites intersection: ['conf/{client.yaml', 'fuse-default-perm-no.yaml}', 'mds.yaml', 'mon.yaml', 'mount/kclient/{mount.yaml', 'ms-die-on-skipped.yaml}}', 'multimds/basic/{begin.yaml', 'osd.yaml}', 'overrides/{basic/{frag_enable.yaml', 'overrides/{distro/rhel/{k-distro.yaml', 'q_check_counter/check_counter.yaml', 'rhel_7.6.yaml}', 'tasks/cephfs_test_exports.yaml}', 'whitelist_health.yaml', 'whitelist_wrongly_marked_down.yaml}']
suites union: ['clusters/3-mds.yaml', 'clusters/9-mds.yaml', 'conf/{client.yaml', 'fuse-default-perm-no.yaml}', 'inline/no.yaml', 'inline/yes.yaml', 'mds.yaml', 'mon.yaml', 'mount/kclient/{mount.yaml', 'ms-die-on-skipped.yaml}}', 'multimds/basic/{begin.yaml', 'objectstore-ec/bluestore-bitmap.yaml', 'objectstore-ec/bluestore-comp-ec-root.yaml', 'objectstore-ec/bluestore-comp.yaml', 'objectstore-ec/bluestore-ec-root.yaml', 'objectstore-ec/filestore-xfs.yaml', 'osd.yaml}', 'overrides/{basic/{frag_enable.yaml', 'overrides/{distro/rhel/{k-distro.yaml', 'q_check_counter/check_counter.yaml', 'rhel_7.6.yaml}', 'tasks/cephfs_test_exports.yaml}', 'whitelist_health.yaml', 'whitelist_wrongly_marked_down.yaml}']

From: /ceph/teuthology-archive/pdonnell-2019-03-16_00:19:15-multimds-wip-pdonnell-testing-20190315.213331-distro-basic-smithi/

For example:

2019-03-17T17:17:04.110 INFO:teuthology.orchestra.run.smithi185:Running:
2019-03-17T17:17:04.110 INFO:teuthology.orchestra.run.smithi185:> cd /home/ubuntu/cephtest/mnt.0 && sudo getfattr --only-values -n ceph.dir.pin 1
2019-03-17T17:17:04.170 INFO:teuthology.orchestra.run.smithi185.stderr:1: ceph.dir.pin: No such attribute
2019-03-17T17:17:04.171 DEBUG:teuthology.orchestra.run:got remote process result: 1
2019-03-17T17:17:04.174 INFO:tasks.cephfs_test_runner:test_export_pin (tasks.cephfs.test_exports.TestExports) ... FAIL

To ignore this correctly, check that (a) the kclient is in use, (b) the kernel is older than 5.0, and (c) that the error is "No such attribute". Use:

from unittest import SkipTest
...
            raise SkipTest("Require FUSE client")

To skip the test in this case.

History

#1 Updated by Sidharth Anupkrishnan 4 months ago

  • Status changed from Verified to Need Review
  • Pull request ID set to 27377

Also available in: Atom PDF