Project

General

Profile

Actions

action #56432

closed

[functional][y][research][SLE-5754][timeboxed:24h] Test autofs integration with YaST

Added by riafarov over 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Spike/Research
Target version:
SUSE QA - Milestone 28
Start date:
2019-09-24
Due date:
% Done:

100%

Estimated time:
(Total: 42.00 h)
Difficulty:

Description

Motivation

We got update of autofs package which used by installer and partitioner.

https://jira.suse.com/browse/SLE-5754

Acceptance criteria

  1. Package update is validated (done)
  2. Integration with yast is validated
  3. Ticket for automation is created in case makes sense

Suggestions

  1. test of mounting nfs shares during the installation
  2. same as 1. but in the installed system
  3. same as 1. but with autoyast
  4. 1-3 with different filesystems (ext4, cifs, btrfs, FUSE based file systems)
  5. smoke test of functionality is done on other architectures
  6. nfs client+server (we have basic coverage in openQA)

See https://help.ubuntu.com/community/Autofs


Subtasks 1 (0 open1 closed)

action #57314: [functional][u] Automate autofs testingRejectedzluo2019-09-24

Actions
Actions #1

Updated by riafarov over 4 years ago

  • Description updated (diff)
Actions #2

Updated by riafarov over 4 years ago

  • Description updated (diff)
Actions #3

Updated by riafarov over 4 years ago

  • Description updated (diff)
Actions #4

Updated by riafarov over 4 years ago

  • Subject changed from [functional][y][research][SLE-5754] Test autofs integration with YaST to [functional][y][research][SLE-5754][timeboxed:24h] Test autofs integration with YaST
  • Status changed from New to Workable
Actions #5

Updated by oorlov over 4 years ago

  • Status changed from Workable to In Progress
  • Assignee set to oorlov
Actions #6

Updated by oorlov over 4 years ago

  • Status changed from In Progress to Workable
  • Assignee deleted (oorlov)

I have to stop working on the ticket as there is one with the higher priority. The access to NVDIMM machine is limited till the end of next week. So, I have to switch to it now.

Actions #7

Updated by JRivrain over 4 years ago

  • Assignee set to JRivrain
Actions #8

Updated by JRivrain over 4 years ago

  • Status changed from Workable to In Progress
Actions #9

Updated by JRivrain over 4 years ago

Tried so far:

  • In installer: there is no autofs in installer, so N/A
  • nfs and cifs are working fine
  • ext2/4: bug, Autofs/automount cannot mount local filesystem
  • ssh and ftp mounting require respectively sshfs and CurlFTPfs, which do no seem to be supported in SLE
  • Direct and Indirect Maps

What remains to be done:

  • fuse with usb stick irrelevant
  • btrfs (but will probably fail just like ext4) fails like ext4
  • report bug upstream for (very) erroneous examples in /etc/auto.misc
  • smoke test for other architectures
  • ticket for automation
Actions #10

Updated by JRivrain over 4 years ago

Smoke test passed on sle 15sp2 aarch64, including mounting of local FS (???) (see video: https://openqa.suse.de/tests/3381822/file/video.ogv)

For all tests on sle15, you may need to comment this line: +auto.master in /etc/auto.master. I am trying to clarify this sometimes causes autofs to search for nis instead of files

NFS test:

  • mkdir /srv/nfs
  • echo "/srv/nfs *(fsid=0,rw,no_root_squash,sync,no_subtree_check)" >>/etc/exports
  • zypper in nfs-kernel-server
  • echo "/nfs /etc/auto.nfs --timeout=10" >>/etc/auto.master
  • echo "localnfs -fstype=nfs localhost:/srv/nfs" >> /etc/auto.nfs
  • systemctl restart autofs nfsserver
  • touch /nfs/localnfs/testfile
  • ls /srv/nfs/testfile # If OK, test passed.

Samba test:

  • mkdir /srv/smb; chmod 777 /srv/smb
  • Append this to /etc/samba/smb.conf:

    [stuff]
    browseable = yes
    path = /srv/smb
    guest ok = yes
    read only = No
    create mask = 777

  • echo "/cifs /etc/auto.smb --timeout=10" >> /etc/auto.master

  • no need to edit /etc/auto.smb.

  • systemctl restart autofs smb

  • touch /cifs/localhost/stuff/testfile

  • ls /srv/smb/testfile # If OK, test passed.

Local FS test

  • dd if=/dev/zero of=/root/fakedd bs=1M count=50
  • mke2fs -t ext2 /root/fakedd
  • echo "/- /etc/auto.misc --timeout=10" >> /etc/auto.master
  • echo "/mnt -fstype=ext2 :/root/fakedd" >> /etc/auto.misc
  • systemctl restart autofs
  • ls /mnt/lost+found # If OK, test passed.
Actions #11

Updated by riafarov over 4 years ago

  • Description updated (diff)
Actions #12

Updated by JERiveraMoya over 4 years ago

  • Status changed from In Progress to Resolved
Actions #13

Updated by JRivrain over 4 years ago

So, smoke test passed in all architectures on sle12. I lost time because initially I did not know it was only for sle12, but the good point is that I found a bad bug in sle15. Since I had to use vnc for other arches, so no copy-paste, I did a script, which maybe we could be used in openqa: https://github.com/JRivrain/scripts/blob/master/autofs-test.sh

Actions #14

Updated by JERiveraMoya over 4 years ago

  • Due date set to 2019-10-08

due to changes in a related task

Actions #15

Updated by JERiveraMoya over 4 years ago

  • Due date changed from 2019-10-08 to 2019-09-24

due to changes in a related task

Actions

Also available in: Atom PDF