(Updates to the problem space definition) |
(Minor re-organization of problem space) |
||
Line 1: | Line 1: | ||
{{header|qa}} | {{header|qa}} | ||
{{draft}} | {{draft}} | ||
<!-- This is the FESCo proposal template. It is not necessary that you use this template but it is encouraged that you do. It will help FESCo focus on the issue being addressed and the parts that need discussion, as well as identify the scope of the proposal. You may remove all these comment sections from your proposal. --> | <!-- This is the FESCo proposal template. It is not necessary that you use this template but it is encouraged that you do. It will help FESCo focus on the issue being addressed and the parts that need discussion, as well as identify the scope of the proposal. You may remove all these comment sections from your proposal. --> | ||
Line 16: | Line 17: | ||
The installation process covers the following sections, therefore, failures typically come from the following areas: | The installation process covers the following sections, therefore, failures typically come from the following areas: | ||
''' Image Sanity ''' | |||
# Image size too large (or small) | |||
# Invalid SHA256 checksum | |||
# Invalid implanted ISO md5sum | |||
# Versions check | |||
''' Boot Methods''' | |||
# Boot media improperly built (PXE, boot.iso, CD/DVD, efidisk.img) | |||
# Installer fails to boot as a KVM guest | |||
# Installer fails to boot as a XEN guest | |||
'''Install Source''' | |||
# Unable to detect install.img media | |||
# Unable to transition to stage#2 installer | |||
'''Kickstart Delivery''' | |||
# Ks.cfg could not be obtained from specified location (http, ftp, nfs, hd, initrd) | |||
# Install fails to proceed in accordance with the directives in the ks.cfg file | |||
# Install improperly sets up networking based on command-line and kickstart network parameters (boot with <code>ksdevice=eth1</code>, {{filename|ks.cfg}} contains <code>eth2</code>) | |||
'''User Interface''' | |||
# X driver problems while transitioning to graphical install | |||
# Screen corruption during text-mode install | |||
# VNC fails to start | |||
# Serial console redirection improperly setup | |||
'''Storage Devices''' | |||
# Fail to detect existing storage device(s) | |||
# Failure to clear stale data off of existing devices | |||
# Unable to add iSCSI volumes | |||
'''Partitioning''' | |||
# Failure detecting existing partition scheme (lvm, mdraid, dmraid, luks) | |||
# Failure when attempting to resize existing partitions | |||
# Failures while attempting to re-use existing partitions | |||
# Improperly clearing stale information from disks | |||
# Unable to consistently resize an existing filesystem | |||
# General failures while attempting to manually partition a system | |||
'''Package Repository''' | |||
# Recovery | # Unable to read metadata from package repositories (http, ftp, nfs, media) | ||
# Failures while adding or modifying existing package repositories | |||
'''Package Set''' | |||
# Network timeout while retrieving packages | |||
# Dependency problems while resolving package list | |||
# File conflicts during package install | |||
# Package order and install errors in {{filename|install.log}} | |||
# Improperly formatted {{filename|comps.xml}} data | |||
'''Boot loader configuration''' | |||
# Unable to properly detect other operating systems | |||
# Failure while setting up chainloader for another OS | |||
'''Upgrade system''' | |||
# Failure to detect previously installed systems | |||
# Errors while attempting to update bootloader configuration during upgrade | |||
# Package upgrade errors in {{filename|upgrade.log}} | |||
'''Recovery''' | |||
# Rescue mode fails to detect existing installations (lvm, raid, luks) | |||
# Rescue mode fails to establish networking | |||
# Problems saving traceback information (local disk, bugzilla, remote server) | |||
# Anaconda unable to download and use updates.img (from install source, local media or URL) | |||
# Unable to transition to debug mode | |||
Auto-test will test anaconda of these media:DVD,CDROM, LiveCD,Network boot CD.If anaconda broken,typically have these issues: | Auto-test will test anaconda of these media:DVD,CDROM, LiveCD,Network boot CD.If anaconda broken,typically have these issues: |
Revision as of 21:25, 14 December 2009
Overview
provide small auto-test system with a web-based interface which can help to customize autoinstall testing.The test system should be small enough for personal use.
Problem Space
The purpose of AutoQA install test automation is to simplify testing, reduce the test execution time and improve efficiency. The AutoQA install test should help us to solve the following problems:
- The system should be small enough to allow for developer use
- Have a clear method for customizing and creating new tests
- Work within existing Fedora infrastructure services, but not require them
- Test results are easy to verify
The installation process covers the following sections, therefore, failures typically come from the following areas:
Image Sanity
- Image size too large (or small)
- Invalid SHA256 checksum
- Invalid implanted ISO md5sum
- Versions check
Boot Methods
- Boot media improperly built (PXE, boot.iso, CD/DVD, efidisk.img)
- Installer fails to boot as a KVM guest
- Installer fails to boot as a XEN guest
Install Source
- Unable to detect install.img media
- Unable to transition to stage#2 installer
Kickstart Delivery
- Ks.cfg could not be obtained from specified location (http, ftp, nfs, hd, initrd)
- Install fails to proceed in accordance with the directives in the ks.cfg file
- Install improperly sets up networking based on command-line and kickstart network parameters (boot with
ksdevice=eth1
,ks.cfg
containseth2
)
User Interface
- X driver problems while transitioning to graphical install
- Screen corruption during text-mode install
- VNC fails to start
- Serial console redirection improperly setup
Storage Devices
- Fail to detect existing storage device(s)
- Failure to clear stale data off of existing devices
- Unable to add iSCSI volumes
Partitioning
- Failure detecting existing partition scheme (lvm, mdraid, dmraid, luks)
- Failure when attempting to resize existing partitions
- Failures while attempting to re-use existing partitions
- Improperly clearing stale information from disks
- Unable to consistently resize an existing filesystem
- General failures while attempting to manually partition a system
Package Repository
- Unable to read metadata from package repositories (http, ftp, nfs, media)
- Failures while adding or modifying existing package repositories
Package Set
- Network timeout while retrieving packages
- Dependency problems while resolving package list
- File conflicts during package install
- Package order and install errors in
install.log
- Improperly formatted
comps.xml
data
Boot loader configuration
- Unable to properly detect other operating systems
- Failure while setting up chainloader for another OS
Upgrade system
- Failure to detect previously installed systems
- Errors while attempting to update bootloader configuration during upgrade
- Package upgrade errors in
upgrade.log
Recovery
- Rescue mode fails to detect existing installations (lvm, raid, luks)
- Rescue mode fails to establish networking
- Problems saving traceback information (local disk, bugzilla, remote server)
- Anaconda unable to download and use updates.img (from install source, local media or URL)
- Unable to transition to debug mode
Auto-test will test anaconda of these media:DVD,CDROM, LiveCD,Network boot CD.If anaconda broken,typically have these issues:
- DVD install
- Boot fails from DVD
- Stage#2 can not start successfully
- Partition fails
- Reboot to newly installed system fails
- Upgrade fails
- CDROM install
- Fail to boot from CDROM
- Stage#2 can not start successfully
- Fail to request next CDROM
- Package errors during installation
- Reboot to newly installed system fails
- BootCD install
- Fail to boot from BootCD
- kickstart install fails
- Ftp install fails
- NFS install fails
- Repo is missing
- Http install fails
- LiveCD install
- LiveCD install fails
- Reboot to newly installed system fails
Proposed Solution
- use virtual machine(libvirt+KVM) to finish install tests one by one.
- provide simple interface to customize testing.
- Create scripts to do test automatically for anaconda
- Create test cases for the above possible breakness of anaconda(DVD,CDROM,BootCD,LiveCD)
- Test result display page help to check the test result easily,the result format is good for testers to post to specified link(have no need to change a lot before post).
- Write test cases From simple to complex, kickstart to graphic.
Scope
- Any testers from community can install the testing system and run test cases
- After finish testing,testers will post test result to specified wiki
Active Ingredients
- develop a system to run install system
- convert some of the current install test cases to cases which can be run in auto test system
- Provide a test results presentation layer for manual test result submission
Roadmap
your comments
Results
Version 1.0
- Goal: Create a basic system, make it simple and run successfully.
- Case: DVD input and support simplest test cases.
- Platform: Virtual Machine.
- Inputs and Outputs:
- Inputs: DVD, kickstart files, python (shell) scripts.
- Outputs: Logs of whole process(including anaconda logs), test results.
- Approach<<Fix Me>>:
- Create a server, and prepare DVD.iso.
- Create a virtual machine by the server.
- Run test cases using some kickstarts for install tests.
- Send back some logs, successful or not...
- Have some "results parsers" which waits for the logs from the clients and then parses them
- Frameworks studied so far: kvm-autotest, autotest, libvirt, dogtail.
Version 2.0
- Graphical automation testing
- Useful links
- http://libvirt.org/
- http://jlaska.livejournal.com/tag/cobbler
- GUI automation
- http://www.linux-kvm.org/page/KVM-Autotest
- The above autotest is based on this framework: http://autotest.kernel.org/
- The steps to work with step files: http://www.linux-kvm.org/page/KVM-Autotest/Steps
Discussion Points
your comments
Comments?
To leave a comment, use the Talk page for this proposal.
Owner
Fedora auto-install test project
Meeting
This project meeting is held weekly for progress. Welcome everyone to attend it and give your valuable suggestions.
- IRC on #fedora-meeting
- Each Friday at 8:30 UTC (9:30 CET and 16:30 Bejing)