From Fedora Project Wiki

< User:Tablepc

Revision as of 18:33, 4 November 2019 by Tablepc (talk | contribs)

Description

This test case ensures that disk drive(s) are properly dismounted during a shut-down or a restart.

Setup

  1. Install the pre-released version of Fedora to be tested on bare metal using the default Anaconda disk settings except to delete all and reclaim all disk space.
  2. Reboot the system to the hard drive after the install.
Warning.png
Be sure to reclaim all disk space.

How to test

  1. On a running system, change to a virtual console by pressing Ctrl+Alt+F2
      Result: A virtual console appears with a login prompt.
  1. At the virtual console, login as the root user
      Result: Login accepted
  1. Halt the system by running the command: “halt”
      Result: The halt is accepted and halts the system.  The screen is left powered on, showing the final shutdown messages.  No system filesystem / LVM device is left mounted / active when the system finally halts.  In some cases you might see a number of retries. This is okay as long as the last retry is successful. 
  1. Read the on-screen messages.
      Result: Check for messages indicating failures. Things like “journal recovery” are a problem.
  1. You now need to manually re-boot the system. On most hardware (which complies with ACPI), you can manually power off by holding the power button down for five seconds. Then press the power button to power on again.
      Result: When the system boots, either after a halt, reboot or shutdown operation, the system successfully boots without error. All expected disk partitions are cleanly mounted. Check boot logs to see that they do not show any”fsck” (filesystem repair) operations, or “recovering journal” (ext3/4 journal recovery.  The boot logs only need to be checked after one shutdown - reboot cycle. The logs can be checked using the command “journalctl -b /usr/lib/systemd/systemd-fsck”. A result similar to the following indicates clean mounting:

“-- Logs begin at Mon 2018-11-19 13:52:18 EST, end at Sat 2019-01-12 12:27:48 ES> Jan 12 08:37:25 localhost.localdomain systemd-fsck[503]: /dev/mapper/fedora-roo> Jan 12 08:37:36 localhost.localdomain systemd-fsck[745]: /dev/mapper/fedora-hom> Jan 12 08:37:36 localhost.localdomain systemd-fsck[743]: /dev/sda1: clean, 412/>”

  1. The installer is able to activate and use the virtual network device(s)
  2. The installer is able to activate and use the virtual storage device(s)
  3. The install completes successfully
  4. The system reboots successfully, recognizing filesystems created on the virt device(s)
  5. The seamless mode will allow users to surf between the opened windows

Expected Results

  1. Step #1 completes without error
  2. The system boots into runlevel 5
  3. Program completes with exit code 0