From Fedora Project Wiki
No edit summary |
(Minor wording changes) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This | |description=This test verifies upgrading a Fedora system from the current stable release ({{FedoraVersion|long}}) to the development release (Rawhide/{{FedoraVersion|long|next}}) using [[PreUpgrade]]. Verification will confirm that {{command||preupgrade}} is able to detect and recover from 2 low disk space conditions: | ||
# Insufficient disk space on {{filename|/boot}} partition for the installer files {{filename|vmlinuz}}, {{filename|initrd.img}} and {{filename|install.img}} | |||
# Insufficient disk space on {{filename|/boot}} partition for the installer file {{filename|install.img}} | |||
{{admon/note|Note|This test requires you to have a wired connection to the internet during the install.}} | {{admon/note|Note|This test requires you to have a wired connection to the internet during the install.}} | ||
|actions= | |actions= | ||
# Perform an installation of the stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for | # Perform an installation of the current stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for {{filename|/boot}}). | ||
# Create a file that takes up enough space that preupgrade | # Create a file that takes up enough space that there is insufficient remaining disk space for preupgrade to download kernel and initrd.img. That means we need to fill up /boot. Here's how to do that as root: | ||
#:<pre> | #:<pre> | ||
#: # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=170 | #: # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=170 | ||
#:</pre> | #:</pre> | ||
# Install the newest available version of {{package|preupgrade}}. | # Install the newest available version of {{package|preupgrade}}. | ||
# Run | # Run {{command|preupgrade}} from a command prompt or the ''Run Application'' dialog. Provide the requested password for root authorization. | ||
# On the | # On the ''Choose desired release'' screen, enable ''unstable test releases''. | ||
# Choose ''Rawhide'' from the list of available upgrade targets, then click ''Apply''. | # Choose ''Rawhide'' from the list of available upgrade targets, then click ''Apply''. | ||
# | # While downloading, preupgrade should warn that it '''failed''' to download installer data. Click ''quit'' for that. | ||
# | # Next, change the amount of available disk space on the {{filename|/boot}} partition by reducing the size of the {{filename|/boot/preupgrade_filler}} file to 100MB. This should leave sufficient room for preupgrade to download the {{filename|kernel}} and {{filename|initrd.img}} but not enough room to download {{filename|install.img}}. Once again, use the {{command|dd}} command: | ||
#:<pre> | #:<pre> | ||
#: # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=100 | #: # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=100 | ||
#:</pre> | #:</pre> | ||
# Re-run preupgrade, | # Re-run {{command|preupgrade}}. When prompted, click ''Yes'' to resume your upgrade. | ||
# | # While downloading, preupgrade should warn that there wasn't enough space to download install.img but it can be downloaded after reboot if you have a wired network connection. Click ''continue'' for that. | ||
# When preupgrade is done don't reboot immediately. Instead, remove the /boot/preupgrade_filler file and make sure your computer is connected to the network via an ethernet cable. | # When preupgrade is done don't reboot immediately. Instead, remove the /boot/preupgrade_filler file and make sure your computer is connected to the network via an ethernet cable. | ||
#:<pre> | #:<pre> | ||
Line 25: | Line 27: | ||
# Click ''reboot''. | # Click ''reboot''. | ||
|results= | |results= | ||
# At first time, the preupgrade utility will fail to download installer data. | # At first time, the preupgrade utility will fail to download installer data and be unable to proceed. | ||
# At second time, | # At second time, preupgrade will offer to resume the previous upgrade attempt. Additionally, the user is prompted with a warning indicating ''Not enough space to download install.img''. Preupgrade will allow the update to continue. | ||
# After reboot, the system should boot into the installer, connect to the internet | # After reboot, the system should boot into the installer, connect to the internet and begin downloading the stage2 installer image. | ||
# The system should be upgraded to new version without error. | # The system should be upgraded to new version without error. | ||
# The | # After upgrade, a user must be able to; | ||
## Login to the desktop | |||
## Activate a network connection | |||
## The default terminal and web browsers must start successfully | |||
}} | }} | ||
[[Category:Upgrade_system]] | [[Category:Upgrade_system]] |
Revision as of 13:08, 6 January 2010
Description
This test verifies upgrading a Fedora system from the current stable release (Fedora 40) to the development release (Rawhide/Fedora 41) using PreUpgrade. Verification will confirm that is able to detect and recover from 2 low disk space conditions:
- Insufficient disk space on
/boot
partition for the installer filesvmlinuz
,initrd.img
andinstall.img
- Insufficient disk space on
/boot
partition for the installer fileinstall.img
How to test
- Perform an installation of the current stable release (e.g. Fedora 40) with default partitioning (200MB for
/boot
). - Create a file that takes up enough space that there is insufficient remaining disk space for preupgrade to download kernel and initrd.img. That means we need to fill up /boot. Here's how to do that as root:
- # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=170
- Install the newest available version of
preupgrade
. - Run
preupgrade
from a command prompt or the Run Application dialog. Provide the requested password for root authorization. - On the Choose desired release screen, enable unstable test releases.
- Choose Rawhide from the list of available upgrade targets, then click Apply.
- While downloading, preupgrade should warn that it failed to download installer data. Click quit for that.
- Next, change the amount of available disk space on the
/boot
partition by reducing the size of the/boot/preupgrade_filler
file to 100MB. This should leave sufficient room for preupgrade to download thekernel
andinitrd.img
but not enough room to downloadinstall.img
. Once again, use thedd
command:- # dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=100
- Re-run
preupgrade
. When prompted, click Yes to resume your upgrade. - While downloading, preupgrade should warn that there wasn't enough space to download install.img but it can be downloaded after reboot if you have a wired network connection. Click continue for that.
- When preupgrade is done don't reboot immediately. Instead, remove the /boot/preupgrade_filler file and make sure your computer is connected to the network via an ethernet cable.
- # rm /boot/preupgrade_filler
- Click reboot.
Expected Results
- At first time, the preupgrade utility will fail to download installer data and be unable to proceed.
- At second time, preupgrade will offer to resume the previous upgrade attempt. Additionally, the user is prompted with a warning indicating Not enough space to download install.img. Preupgrade will allow the update to continue.
- After reboot, the system should boot into the installer, connect to the internet and begin downloading the stage2 installer image.
- The system should be upgraded to new version without error.
- After upgrade, a user must be able to;
- Login to the desktop
- Activate a network connection
- The default terminal and web browsers must start successfully