From Fedora Project Wiki

(install kernel too in the example)
(s/fedup/dnf)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{admon/note|Obsolete|As of Fedora 18, preupgrade has been replaced by [[FedUp]], which was itself replaced by the [[DNF_system_upgrade]] plugin. See [[:Category:Upgrade_system]].}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test verifies upgrading a Fedora system from the current stable release ({{FedoraVersion|long}}) to the branched release ({{FedoraVersion|long|next}}) using [[PreUpgrade]].  Verification will confirm that {{command||preupgrade}} is able to detect and recover the low disk space condition below:
|description=This test verifies upgrading a Fedora system from the current stable release ({{FedoraVersion|long}}) to the branched release ({{FedoraVersion|long|next}}) using [[PreUpgrade]].  Verification will confirm that {{command||preupgrade}} is able to detect and recover the low disk space condition below:
* Insufficient disk space on {{filename|/boot}} partition for anaconda to install a new kernel
* Insufficient disk space on {{filename|/boot}} partition for anaconda to install a new kernel
|actions=
|actions=
# Perform an installation of the current stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for {{filename|/boot}}).
<ol>
# Install another kernel on the system. You can locate and download older kernel from the [http://koji.fedoraproject.org/koji/packageinfo?packageID=8 koji build system] or by using a {{command|koji}}.  For example, the following commands will list available kernels, download a specified kernel package from koji and install it:
<li> Perform an installation of the current stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for {{filename|/boot}}).
#:<pre>
<li>Install another kernel on the system. You can locate and download older kernel from the [http://koji.fedoraproject.org/koji/packageinfo?packageID=8 koji build system] or by using a {{command|koji}}.  For example, the following commands will list available kernels, download a specified kernel package from koji and install it:
#: # yum install koji
<pre># yum install koji
#: # koji list-tagged dist-f12-updates kernel
# koji list-tagged dist-f12-updates kernel
#: # koji download-build --arch $(uname -p) kernel-2.6.32.9-67.fc12
# koji download-build --arch $(uname -p) kernel-2.6.32.9-67.fc12
#: # yum localupdate kernel* --nogpgcheck
# yum localupdate kernel* --nogpgcheck </pre>
#:</pre>
<li>Install the newest available version of {{package|preupgrade}}.
# Install the newest available version of {{package|preupgrade}}.
<li>Run {{command|preupgrade}} from a command prompt or the ''Run Application'' dialog. Provide the requested password for root authorization.
# Run {{command|preupgrade}} from a command prompt or the ''Run Application'' dialog. Provide the requested password for root authorization.
<li>On the ''Choose desired release'' screen, enable ''unstable test releases''.
# On the ''Choose desired release'' screen, enable ''unstable test releases''.
<li>Choose ''{{FedoraVersion|long|next}} (Branched)'' from the list of available upgrade targets, then click ''Apply''.
# Choose ''{{FedoraVersion|long|next}} (Branched)'' from the list of available upgrade targets, then click ''Apply''.
<li>Preupgrade will present a warning dialog noting that additional disk space in {{filename|/boot}} is required to complete the upgrade process.  Remove older kernels by consulting the instructions at [[How_to_use_PreUpgrade#Troubleshooting]] to free more space in {{filename|/boot}}, then click ''Check again''  
# Preupgrade will present a warning dialog noting that additional disk space in {{filename|/boot}} is required to complete the upgrade process.  Remove older kernels by consulting the instructions at [[How_to_use_PreUpgrade#Troubleshooting]] to free more space in {{filename|/boot}}, then click ''Check again''  
<li>When the process completes, click ''Reboot''.
# When the process completes, click ''Reboot''.
<li>The system should reboot, perform the upgrade, and reboot into the new system automatically.
# The system should reboot, perform the upgrade, and reboot into the new system automatically.
<li>Log in to upgraded system, open a terminal, file browser, or other system applications.
# Log in to upgraded system, open a terminal, file browser, or other system applications.
</ol>
|results=
|results=
# The preupgrade utility will run to completion, without error.
<ol>
# The users are prompted with a ''low disk-space'' warning.
<li>The preupgrade utility will run to completion, without error.
# Removing older kernels allows the upgrade to proceed beyond the ''low disk-space'' warning.
<li>The users are prompted with a ''low disk-space'' warning.
# The system should be upgraded to new version without error.
<li>Removing older kernels allows the upgrade to proceed beyond the ''low disk-space'' warning.
# The opened terminal, file browser, or other system applications should display and work correctly.
<li>The system should be upgraded to new version without error.
<li>The opened terminal, file browser, or other system applications should display and work correctly.
</ol>
}}
}}
[[Category:Upgrade_system]]
[[Category:Obsolete_Test_Cases]]

Latest revision as of 19:03, 2 November 2015

Note.png
Obsolete
As of Fedora 18, preupgrade has been replaced by FedUp, which was itself replaced by the DNF_system_upgrade plugin. See Category:Upgrade_system.


Description

This test verifies upgrading a Fedora system from the current stable release (Fedora 39) to the branched release (Fedora 40) using PreUpgrade. Verification will confirm that is able to detect and recover the low disk space condition below:

  • Insufficient disk space on /boot partition for anaconda to install a new kernel


How to test

  1. Perform an installation of the current stable release (e.g. Fedora 39) with default partitioning (200MB for /boot).
  2. Install another kernel on the system. You can locate and download older kernel from the koji build system or by using a koji. For example, the following commands will list available kernels, download a specified kernel package from koji and install it:
    # yum install koji
    # koji list-tagged dist-f12-updates kernel
    # koji download-build --arch $(uname -p) kernel-2.6.32.9-67.fc12
    # yum localupdate kernel* --nogpgcheck 
  3. Install the newest available version of Package-x-generic-16.pngpreupgrade.
  4. Run preupgrade from a command prompt or the Run Application dialog. Provide the requested password for root authorization.
  5. On the Choose desired release screen, enable unstable test releases.
  6. Choose Fedora 40 (Branched) from the list of available upgrade targets, then click Apply.
  7. Preupgrade will present a warning dialog noting that additional disk space in /boot is required to complete the upgrade process. Remove older kernels by consulting the instructions at How_to_use_PreUpgrade#Troubleshooting to free more space in /boot, then click Check again
  8. When the process completes, click Reboot.
  9. The system should reboot, perform the upgrade, and reboot into the new system automatically.
  10. Log in to upgraded system, open a terminal, file browser, or other system applications.

Expected Results

  1. The preupgrade utility will run to completion, without error.
  2. The users are prompted with a low disk-space warning.
  3. Removing older kernels allows the upgrade to proceed beyond the low disk-space warning.
  4. The system should be upgraded to new version without error.
  5. The opened terminal, file browser, or other system applications should display and work correctly.