Project

General

Profile

action #70981

[opensuse][qem] Improve zfs test

Added by ph03nix almost 2 years ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
-
Start date:
2020-12-22
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Difficulty:

Description

This progress issue is to collect ideas and issues to improve the existing zfs test (https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10873)

From https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10873#discussion_r483432814

  • snapshot mounted by mount.zfs: /mnt/tank/initial is snapshot mounted ro by mount.zfs, which is not but recommended, but supported. It's mounted ro by default, so users cannot mess up with the content. So I would take out the ro option from the command on line 144 and add test, it it's really mounted this way.
  • clone created from the snapshot and mounted by zfs mount: /mnt/tank/second/ is mounted this way
  • add also recommended way of access to the snapshot - snaps are stored in the .zfs/snapshot directory within the root of the snapped file system, in this case it should be in /tank/.zfs/snapshot/initial
  • add NFS automount

Checklist

  • Add handling for .zfs/snapshot directories
  • NFS automount
  • Schedule in Tumbleweed Development group

Subtasks

action #81266: Improve output of zfs test failureResolvedph03nix

History

#1 Updated by SLindoMansilla almost 2 years ago

  • Subject changed from Improve zfs test to [qam] Improve zfs test

As Felix is working on it

#2 Updated by tjyrinki_suse almost 2 years ago

  • Status changed from New to Workable
  • Start date deleted (2020-09-04)

#3 Updated by tjyrinki_suse almost 2 years ago

  • Subject changed from [qam] Improve zfs test to [qe-core][qam] Improve zfs test

#4 Updated by tjyrinki_suse over 1 year ago

  • Project changed from openQA Tests to QE Kernel
  • Subject changed from [qe-core][qam] Improve zfs test to [qam] Improve zfs test
  • Status changed from Workable to In Progress

Moved filesystem ticket to QE Kernel queue, set to In Progress instead of New if Felix is still working on it.

#5 Updated by pcervinka over 1 year ago

  • Project changed from QE Kernel to SUSE QA
  • Assignee changed from ph03nix to tjyrinki_suse

Kernel QE is not responsible for zfs testing.

#6 Updated by tjyrinki_suse over 1 year ago

  • Project changed from SUSE QA to openQA Tests
  • Subject changed from [qam] Improve zfs test to [opensuse][qem] Improve zfs test
  • Assignee changed from tjyrinki_suse to ph03nix

Yes this is actually opensuse specific task for now at least.

#7 Updated by ph03nix over 1 year ago

  • Priority changed from Normal to Low

Still working on this one but with low priority.

#8 Updated by ph03nix over 1 year ago

Hmmm, accessing snapshots via .zfs/snapshots yields the following error: http://phoenix-openqa.qam.suse.de/tests/4386#step/zfs/112

tumbleweed:/tank/.zfs/snapshot # ls
ls: cannot access 'initial': Too many levels of symbolic links
ls: cannot access 'second': Too many levels of symbolic links
ls: cannot access 'third': Too many levels of symbolic links

There are many closed issues about this error and this one is fresh: https://github.com/openzfs/zfs/issues/11334 https://github.com/openzfs/zfs/issues/9958

I've added our observations to the existing issue: https://github.com/openzfs/zfs/issues/9958#issuecomment-749488690

#9 Updated by ph03nix over 1 year ago

  • % Done changed from 0 to 80

Resolved the issue in the test case. Last missing part if NFS automount, which we will do in a later moment.

#10 Updated by ph03nix over 1 year ago

  • Checklist item changed from to [ ] Add handling for .zfs/snapshot directories, [ ] NFS automount, [ ] Schedule in Tumbleweed Development group

#11 Updated by ph03nix over 1 year ago

  • Checklist item changed from to [x] Add handling for .zfs/snapshot directories

#13 Updated by tjyrinki_suse over 1 year ago

  • Category set to Enhancement to existing tests

#14 Updated by ph03nix 10 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF