From Fedora Project Wiki

No edit summary
(make it more generic (don't specify button names))
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case verifies adding a NFS-based package repository through graphical repository dialog during installation. Testing also includes verifying proper installation of packages included in the repository.
|description=This is to verify that an installation can be performed from a NFS repository configured in the [[Anaconda]] GUI.
|setup=
# You need to have a Fedora repository accessible over an NFS protocol. If you do have it, no further setup is needed. If you don't, you can mount a {{filename|DVD.iso}} image and export it over NFS this way:
#* Mount the image over loopback: {{command|# mount -o loop Fedora-{{FedoraVersionNumber|next}}-x86_64-DVD.iso /mnt/repo}}
#* Install {{package|nfs-utils}}.
#* Let's say your (virtual) test machine is in the <code>192.168.1.0/24</code> subnet. Put the following line into {{filename|/etc/exports}}: <pre>/mnt/repo    192.168.1.0/24(ro)</pre>
#* Restart NFS service: {{command|# systemctl restart nfs-server.service}}
#* The repository is now accessible over NFS via <code>&lt;your_IP&gt;:/mnt/repo</code>
|actions=
|actions=
# Boot the installer using any available non-live means ({{filename|netinst.iso}}, pxeboot images or {{filename|DVD.iso}})
# Boot the installer using any available non-live means (anything except {{filename|Live.iso}})
# Enter the ''Installation Source'' screen
# Change the installation source to point to a custom NFS repository
# Click the ''On the network'' radio button and change the drop-down to ''nfs''
#* The correct syntax is <code>server:/path</code>, e.g. <code>&lt;your_IP&gt;:/mnt/repo</code>
# Enter the path to an NFS repository in the text box - this must be a complete repository for the Fedora release you are testing. e.g. mynfsserver.mydomain.net:/path/to/fedora/{{FedoraVersionNumber|next}}/x86_64/os/
# Proceed with installation
# Enter any necessary mount options in the appropriate box and click ''Done''
# Configure partitioning in a normal way and complete the installation  
|results=
|results=
# The package metadata from NFS-based repository is read correctly
<ol>
# The repository selected is actually used for installation: this can be checked by examining the {{filename|packaging.log}} log file  
<li>The installer accepts the NFS repository definition</li>
# Installation completes and system reboots successfully
<li>The said repository is used for installation. This can be checked by examining the {{filename|/tmp/packaging.log}} file. Example output:
<pre>14:44:07,093 INFO packaging: mounting 192.168.1.1:/mnt/repo: on /mnt/install/source
...
14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
14:44:07,568 DEBUG packaging: disabling repo fedora
14:44:07,569 DEBUG packaging: disabling repo updates-testing
14:44:07,569 DEBUG packaging: disabling repo updates</pre></li>
<li>The installation completes and the new system initiates boot properly</li>
</ol>
}}
}}
[[Category:Repository]]
[[Category:Repository]]
[[Category:Installation Repository NFS]]
[[Category:Installation Repository NFS]]

Revision as of 14:31, 30 October 2012

Description

This is to verify that an installation can be performed from a NFS repository configured in the Anaconda GUI.

Setup

  1. You need to have a Fedora repository accessible over an NFS protocol. If you do have it, no further setup is needed. If you don't, you can mount a DVD.iso image and export it over NFS this way:
    • Mount the image over loopback: # mount -o loop Fedora-41-x86_64-DVD.iso /mnt/repo
    • Install Package-x-generic-16.pngnfs-utils.
    • Let's say your (virtual) test machine is in the 192.168.1.0/24 subnet. Put the following line into /etc/exports:
      /mnt/repo    192.168.1.0/24(ro)
    • Restart NFS service: # systemctl restart nfs-server.service
    • The repository is now accessible over NFS via <your_IP>:/mnt/repo

How to test

  1. Boot the installer using any available non-live means (anything except Live.iso)
  2. Change the installation source to point to a custom NFS repository
    • The correct syntax is server:/path, e.g. <your_IP>:/mnt/repo
  3. Proceed with installation

Expected Results

  1. The installer accepts the NFS repository definition
  2. The said repository is used for installation. This can be checked by examining the /tmp/packaging.log file. Example output:
    14:44:07,093 INFO packaging: mounting 192.168.1.1:/mnt/repo: on /mnt/install/source
    ...
    14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
    14:44:07,568 DEBUG packaging: disabling repo fedora
    14:44:07,569 DEBUG packaging: disabling repo updates-testing
    14:44:07,569 DEBUG packaging: disabling repo updates
  3. The installation completes and the new system initiates boot properly