Line 67: | Line 67: | ||
! Operation !!Options!! Values !! Description !! Required !! Typical | ! Operation !!Options!! Values !! Description !! Required !! Typical | ||
|- | |- | ||
| rowspan=28 style="font-style:italic; font-size:120%; | | rowspan=28 style="font-style:italic; font-size:120%; background-color:green;" | Template (these options has been written in kickstart template.) | ||
|- | |- | ||
| rowspan=2 style="font-style:italic;" | mode | | rowspan=2 style="font-style:italic;background-color:green;"| mode | ||
|style="font-style:italic;" | text | |style="font-style:italic;" | text | ||
| | | | ||
| | | | ||
| style="font-style:italic;" |text | | style="font-style:italic;" |text | ||
|- | |- | ||
| style="font-style:italic;" style="background-color:green;"| | | style="font-style:italic;background-color:green;"|graphical | ||
| | |style="background-color:green;"| | ||
|style="font-style:italic; | |style="background-color:green;" | | ||
|style="font-style:italic;background-color:green;"| graphical | |||
|- | |- | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|reboot | ||
| style="font-style:italic;" |--reject | | style="font-style:italic;background-color:green;"|--reject | ||
| | | | ||
| | | | ||
| style="font-style:italic; | | style="font-style:italic;background-color:green;"|reboot | ||
|- | |- | ||
|rowspan="3" style="font-style:italic;" |firstboot | |rowspan="3" style="font-style:italic;" |firstboot | ||
Line 115: | Line 116: | ||
|style="font-style:italic;" |halt | |style="font-style:italic;" |halt | ||
|- | |- | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|keyboard | ||
| | | | ||
| | | | ||
|style="font-style:italic;" |yes | |style="font-style:italic;" |yes | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;" |keyboard us | ||
|- | |- | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|lang | ||
| | | | ||
| | | | ||
|style="font-style:italic;" |yes | |style="font-style:italic;" |yes | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|lang en_US.UTF-8 | ||
|- | |- | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|timezone | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;" | --utc | ||
| | | | ||
|style="font-style:italic;" | | |style="font-style:italic;background-color:green;" | | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|timezone --utc America/New_York | ||
|- | |- | ||
|style="font-style:italic;" | |style="font-style:italic;background-color:green;" rowspan="2"|rootpw | ||
| style="font-style:italic; | |style="font-style:italic;background-color:green;"| --iscrypted/--plaintext | ||
| | | | ||
| rowspan="2" style="font-style:italic; | |rowspan="2" style="font-style:italic;background-color:green;"| | ||
|style="font-style:italic; | |style="font-style:italic;background-color:green;"|rootpw --iscrypted $1$Cuh1FaJT$ogG37tqIhVDeq27uvfAYK1 | ||
|- | |- | ||
|style="font-style:italic;" | --lock | |style="font-style:italic;" | --lock | ||
Line 143: | Line 144: | ||
| | | | ||
|- | |- | ||
| rowspan="4" style="background-color:green; | |rowspan="4" style="background-color:green;font-style:italic;" |install | ||
|style="background-color:green; | |style="background-color:green;font-style:italic;" | url | ||
| | | | ||
| rowspan="4" style="font-style:italic;" |yes | | rowspan="4" style="font-style:italic;" |yes | ||
| style="font-style:italic;" |url --url | | style="font-style:italic;" |url --url | ||
|- | |- | ||
| style="background-color:#66FF00; | | style="background-color:#66FF00;font-style:italic;" |cdrom | ||
| | | | ||
|style="font-style:italic;" | cdrom | |style="font-style:italic;" | cdrom | ||
|- | |- | ||
|style="background-color:lightgreen; | |style="background-color:lightgreen;font-style:italic;" | harddrive | ||
| | | | ||
| | | | ||
|- | |- | ||
|style="background-color:lightgreen; | |style="background-color:lightgreen;font-style:italic;" | nfs | ||
| | | | ||
| | | | ||
|- | |- | ||
|rowspan="3" style="font-style:italic; | |rowspan="3" style="font-style:italic;background-color:green;"|selinux | ||
| style="font-style:italic;" |--disabled | | style="font-style:italic;" |--disabled | ||
| | | | ||
Line 170: | Line 171: | ||
| | | | ||
|- | |- | ||
| style="font-style:italic; | | style="font-style:italic;background-color:green;"|--permissive | ||
| | | | ||
|- | |- | ||
|rowspan="6" style="font-style:italic; | |rowspan="6" style="font-style:italic;background-color:green;"|firewall | ||
| style="font-style:italic;" |--enabled or --enable | | style="font-style:italic;" |--enabled or --enable | ||
| | | | ||
Line 179: | Line 180: | ||
|rowspan="6" style="font-style:italic;" | | |rowspan="6" style="font-style:italic;" | | ||
|- | |- | ||
|style="background-color:green; | |style="background-color:green;font-style:italic;" | --disabled or --disable | ||
| | | | ||
|- | |- | ||
Line 196: | Line 197: | ||
|rowspan=28 style="background-color:green;" | Disk Partition | |rowspan=28 style="background-color:green;" | Disk Partition | ||
|- | |- | ||
|rowspan="2" |autopart | |rowspan="2" style="background-color:green;" |autopart | ||
| | | | ||
| | | | ||
|rowspan="2" | | |rowspan="2" | | ||
| | | | ||
|- | |- | ||
| --passphrase | | --encrypted --passphrase | ||
| | | | ||
| | | |
Revision as of 11:10, 16 March 2011
This page provides a high-level roadmap for implementing the Is_anaconda_broken_proposal project. More detailed tasks can be found in autoqa TRAC roadmap. We follow these steps to define the methods by which we initiate testing
Step 1: Identify boot methods, retrieve files and check file sanity
Method | Files | Sanity | Implementation |
---|---|---|---|
URL | initrd.img, vmlinuz | sha256sum,md5sum,version | /autoinstall/url_install/url_sanity.py |
DVD | DVD.iso | size,sha256sum, md5sum | /autoinstall/dvd_install/dvd_sanity.py |
CD | 4 CD.iso | size,sha256sum, md5sum | /autoinstall/cd_install/cd_sanity.py |
Minimal Boot Media | boot.iso | size,sha256sum, md5sum | /autoinstall/bootiso_install/bootiso_sanity.py |
Live | live.iso | size,sha256sum, md5sum | /autoinstall/live_install/live_sanity.py |
Step 2: Prepare kick start file to cover test cases
Most of the test cases can be covered by configure different kick start files. There are kickstart templates in different installation method folders.
Method | Kick Start File Template | |
---|---|---|
Install | URL | /autoinstall/url_install/url_ks.cfg |
DVD | /autoinstall/dvd_install/dvd_ks.cfg | |
CD | /autoinstall/cd_install/cd_ks.cfg | |
boot.iso | /autoinstall/bootiso_install/bootiso_ks.cfg | |
Upgrade | ||
Rescure |
The kick start options are below [1]:
Install Kick start options | |||||
---|---|---|---|---|---|
Operation | Options | Values | Description | Required | Typical |
Template (these options has been written in kickstart template.) | |||||
mode | text | text | |||
graphical | graphical | ||||
reboot | --reject | reboot | |||
firstboot | --enable or --enabled | no | |||
--disable or --disabled | |||||
--reconfig | |||||
shutdown | shutdown | ||||
poweroff | no | poweroff | |||
halt | no | halt | |||
keyboard | yes | keyboard us | |||
lang | yes | lang en_US.UTF-8 | |||
timezone | --utc | timezone --utc America/New_York | |||
rootpw | --iscrypted/--plaintext | rootpw --iscrypted $1$Cuh1FaJT$ogG37tqIhVDeq27uvfAYK1 | |||
--lock | |||||
install | url | yes | url --url | ||
cdrom | cdrom | ||||
harddrive | |||||
nfs | |||||
selinux | --disabled | no | |||
--enforcing | |||||
--permissive | |||||
firewall | --enabled or --enable | no | |||
--disabled or --disable | |||||
--trust= | |||||
<incoming> | |||||
--port= | |||||
--service= | |||||
Disk Partition | |||||
autopart | |||||
--encrypted --passphrase | |||||
clearpart | --all | no | |||
--drives | |||||
--initlabel | |||||
--linux | |||||
--none | |||||
part or partition | --size | yes | |||
--grow | |||||
--maxsize | |||||
--noformat | |||||
--onpart= or --usepart= | |||||
--ondisk= or --ondrive= | |||||
--asprimary | |||||
--fsprofile= | |||||
--fstype= | |||||
--fsoptions= | |||||
--label= | |||||
--recommended | |||||
--onbiosdisk= | |||||
--encrypted | |||||
--passphrase= | |||||
--escrowcert=<url> | |||||
--backuppassphrase | |||||
ignoredisk | ignoredisk --drives=[disk1,disk2,...] | no | |||
ignoredisk --only-use=[disk1,disk2,...] | |||||
zerombr | zerombr | ||||
autostep | --autoscreenshot | no | |||
bootloader | --append | yes | |||
--driveorder | |||||
--location | |||||
--password | |||||
--md5pass | |||||
--upgrade | |||||
--timeout | |||||
comdline | |||||
device | --opts | ||||
dmraid | dmraid --name= --dev= | ||||
group | group --name=<name> [--gid=<gid>] | ||||
logging | --host= | no | |||
--port= | |||||
--level= | |||||
raid | --level | no | |||
--device | |||||
--spares= | |||||
--fstype | |||||
--fsoptions | |||||
--label= | |||||
--noformat | |||||
--useexisting | |||||
--encrypted | |||||
--passphrase= | |||||
--escrowcert=<url> | |||||
--backuppassphrase | |||||
repo | --name= | no | |||
--baseurl= | |||||
--mirrorlist= | |||||
--cost= | |||||
--excludepkgs= | |||||
--includepkgs= | |||||
--proxy=[protocol://][username[:password]@]host[:port] | |||||
--ignoregroups=true | |||||
--noverifyssl | |||||
rescue | --romount] | no | |||
sshpw | --username | no | |||
--plaintext | |||||
--lock | |||||
skipx | skipx | no | skipx | ||
updates | updates [URL] | ||||
services | --enabled= | no | |||
--disabled= | |||||
user | --name= | no | |||
--gecos= | |||||
--groups= | |||||
--homedir= | |||||
--lock | |||||
--password= | |||||
--plaintext | |||||
--shell= | |||||
--uid= | |||||
vnc | --host= | no | |||
--port= | |||||
--password= | |||||
volgroup | <name> | no | |||
--noformat | |||||
--useexiting | |||||
--pesize | |||||
xconfig | --defaultdesktop= | ||||
--startxonboot | |||||
zfcp | --devnum= | ||||
--fcplun= | |||||
--wwpn= |
List test scenarios,it will make clear that which suite needs to
support.
Test Scenarios | ||||||
---|---|---|---|---|---|---|
Boot Method [2] | ||||||
Test | DVD | CD | boot.iso | PXE images | efidisk.img | Live Image |
Installation Method [3][4] | ||||||
autodetect cdrom | yes | yes | yes | yes | yes | no |
repo=cdrom | yes | yes | yes | yes | yes | no |
repo=http://host/path | yes | yes | yes | yes | yes | no |
repo=ftp://[user:passwd@]server/path | yes | yes | yes | yes | yes | no |
repo=nfs:server:/path | yes | yes | yes | yes | yes | no |
repo=nfsiso:server:/path | yes | yes | yes | yes | yes | no |
repo=hd:device/path | yes | yes | yes | yes | yes | no |
repo=hdiso: | yes | yes | yes | yes | yes | no |
repo=livecd: | no | no | no | no | no | yes |
Methods to locate kickstart file [4] | ||||||
ks (autodetect from dhcp ???(default is nfs)) | yes | yes | yes | yes | yes | unknown |
ks=http://server/path | yes | yes | yes | yes | yes | unknown |
ks=ftp://[user:passwd@]server/path | yes | yes | yes | yes | yes | unknown |
ks=nfs:server:/path | yes | yes | yes | yes | yes | unknown |
ks=file:/path | yes | yes | yes | yes | yes | unknown |
ks=hd:device:/path | yes | yes | yes | yes | yes | unknown |
ks=bd:biosdevice:/path | yes | yes | yes | yes | yes | unknown |
ks=floppy | yes | yes | yes | yes | yes | unknown |
ks=cdrom | yes | yes | yes | yes | yes | unknown |
Methods to locate updates.img | ||||||
updates | yes | yes | yes | yes | yes | no |
updates=http | yes | yes | yes | yes | yes | no |
images/updates.img | no | no | no | yes | yes | no |
RHUpdates | no | no | no | yes | yes | no |
Methods to determine display device | ||||||
graphical | yes | yes | yes | yes | yes | yes |
text | yes | yes | yes | yes | yes | yes |
vnc | yes | yes | yes | yes | yes | no |
cmdline | yes | yes | yes | yes | yes | no |
serial console=ttyS0 | yes | yes | yes | yes | yes | no |
telnet | yes | yes | yes | yes | yes | no |
Methods to choose kickstart network device [4] | ||||||
ksdevice=link | yes | yes | yes | yes | yes | no |
ksdevice=bootif | yes | yes | yes | yes | yes | no |
ksdevice=eth0 | yes | yes | yes | yes | yes | no |
ksdevice=AA:BB:CC:DD:EE:FF | yes | yes | yes | yes | yes | no |
Methods to activate network device | ||||||
ip=dhcp | yes | yes | yes | yes | yes | no |
ip=a.b.c.d | yes | yes | yes | yes | yes | no |
dns= | yes | yes | yes | yes | yes | no |
gateway= | yes | yes | yes | yes | yes | no |
netmask= | yes | yes | yes | yes | yes | no |
Step 3: Install Fedora
from virtguest import VirtGuest, the methods to initialize a guest for both tree compose and iso image have been implemented.
Identify potential test drivers that trigger off of those events.
- URL install source available (typically, http://download.fedoraproject.org/pub/fedora/linux/development/13/i386/os)
- url_install.py
- iso_sanity.py (for provided
images/boot.iso
) - bootiso_install.py
- pxe_install.py (kind of silly, but a possible future test)
- DVD image(s) available (typically, somewhere on http://serverbeach1.fedoraproject.org/pub/alt/stage/)
- iso_sanity.py
- dvd_install.py
- hdiso_install.py
- nfsiso_install.py
- CD image(s) available (typically, somewhere on http://serverbeach1.fedoraproject.org/pub/alt/stage/)
- iso_sanity.py
- cd_install.py
- hdiso_install.py
- nfsiso_install.py
Step 5
Write test drivers using requirements gathered in steps #2,#3,#4
Key
Set priorities for each test. The test drivers will support the tests with high priority.
Colour | Explanation |
---|---|
yes | supported and default (high priority) |
yes | supported (medium priority) |
yes | supported (low priority) |
no | unsupported configuration |
unknown | unknown |
References
- ↑ Kick start options: http://fedoraproject.org/wiki/Anaconda/Kickstart
- ↑ Boot Method: http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/ch04s06.html
- ↑ Installation Method: http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/s1-installmethod-x86.html
- ↑ 4.0 4.1 4.2 Anaconda Boot Options: http://fedoraproject.org/wiki/Anaconda/Options