Line 57: | Line 57: | ||
The kick start options are below <ref> Kick start options: http://fedoraproject.org/wiki/Anaconda/Kickstart</ref>: | The kick start options are below <ref> Kick start options: http://fedoraproject.org/wiki/Anaconda/Kickstart</ref>: | ||
{| class="wikitable collapsible collapsed" border="1" width="85%" | {| class="wikitable collapsible collapsed" border="1" width="85%" | ||
! colspan=" | ! colspan="6"| Kick start options | ||
|- | |- | ||
! Operation !!Options!! Values !! Description !! | ! Operation !!Options!! Values !! Description !! Required !! Typical | ||
|- | |- | ||
| rowspan=6 | Install or Upgrade | | rowspan=6 | Install or Upgrade | ||
Line 68: | Line 68: | ||
| rowspan="4"|yes | | rowspan="4"|yes | ||
| rowspan="4"|install | | rowspan="4"|install | ||
|- | |- | ||
| harddrive | | harddrive | ||
Line 85: | Line 83: | ||
|no | |no | ||
| | | | ||
| | |- | ||
| | |rowspan=2 |Installation Mode | ||
|- | |- | ||
| rowspan="2" style="background-color:green;" |mode | | rowspan="2" style="background-color:green;" |mode | ||
| style="background-color:green;" |text | | style="background-color:green;" |text | ||
| | | | ||
| rowspan="2" |yes | | rowspan="2" |yes | ||
| rowspan="2" |text or graphical | | rowspan="2" |text or graphical | ||
Line 103: | Line 99: | ||
|style="background-color:green;"|reboot | |style="background-color:green;"|reboot | ||
| --reject | | --reject | ||
| | | | ||
| | | | ||
Line 112: | Line 106: | ||
| --enable or --enabled | | --enable or --enabled | ||
| | | | ||
|rowspan="3"|no | |rowspan="3"|no | ||
|rowspan="3"| | |rowspan="3"| | ||
Line 125: | Line 117: | ||
|shutdown | |shutdown | ||
|shutdown | |shutdown | ||
| | | | ||
| | | | ||
Line 134: | Line 124: | ||
|poweroff | |poweroff | ||
| | | | ||
|no | |no | ||
|poweroff | |poweroff | ||
Line 142: | Line 130: | ||
|halt | |halt | ||
| | | | ||
|no | |no | ||
|halt | |halt | ||
Line 149: | Line 135: | ||
|keyboard | |keyboard | ||
| | | | ||
| | | | ||
|yes | |yes | ||
Line 157: | Line 141: | ||
|lang | |lang | ||
| | | | ||
| | | | ||
|yes | |yes | ||
Line 168: | Line 150: | ||
| --all | | --all | ||
| | | | ||
| rowspan="5" |no | | rowspan="5" |no | ||
| rowspan="5" | | | rowspan="5" | | ||
Line 188: | Line 168: | ||
| --encrypted | | --encrypted | ||
| | | | ||
|rowspan="2" | | |rowspan="2" | | ||
|rowspan="2" | | |rowspan="2" | | ||
Line 200: | Line 178: | ||
| | | | ||
| rowspan="17" |yes | | rowspan="17" |yes | ||
| rowspan="17" | | | rowspan="17" | | ||
|- | |- | ||
Line 208: | Line 184: | ||
|- | |- | ||
| --maxsize | | --maxsize | ||
| | |||
|- | |- | ||
| --noformat | | --noformat | ||
| | |||
|- | |- | ||
| --onpart= or --usepart= | | --onpart= or --usepart= | ||
| | |||
|- | |- | ||
| --ondisk= or --ondrive= | | --ondisk= or --ondrive= | ||
| | |||
|- | |- | ||
| --asprimary | | --asprimary | ||
| | |||
|- | |- | ||
| --fsprofile= | | --fsprofile= | ||
| | |||
|- | |- | ||
| --fstype= | | --fstype= | ||
| | |||
|- | |- | ||
| --fsoptions= | | --fsoptions= | ||
| | |||
|- | |- | ||
| --label= | | --label= | ||
| | |||
|- | |- | ||
| --recommended | | --recommended | ||
| | |||
|- | |- | ||
| --onbiosdisk= | | --onbiosdisk= | ||
| | |||
|- | |- | ||
| --encrypted | | --encrypted | ||
| | |||
|- | |- | ||
| --passphrase= | | --passphrase= | ||
| | |||
|- | |- | ||
| --escrowcert=<url> | | --escrowcert=<url> | ||
| | |||
|- | |- | ||
| --backuppassphrase | | --backuppassphrase | ||
| | |||
|- | |- | ||
| rowspan="2"|ignoredisk | | rowspan="2"|ignoredisk | ||
| ignoredisk --drives=[disk1,disk2,...] | | ignoredisk --drives=[disk1,disk2,...] | ||
| | | | ||
| rowspan="2"|no | | rowspan="2"|no | ||
| rowspan="2"| | | rowspan="2"| | ||
Line 250: | Line 239: | ||
|zerombr | |zerombr | ||
|zerombr | |zerombr | ||
| | | | ||
| | | | ||
Line 258: | Line 245: | ||
|autostep | |autostep | ||
| --autoscreenshot | | --autoscreenshot | ||
| | | | ||
|no | |no | ||
Line 267: | Line 252: | ||
| --append | | --append | ||
| | | | ||
|rowspan="7"|yes | |rowspan="7"|yes | ||
|rowspan="7"| | |rowspan="7"| | ||
Line 291: | Line 274: | ||
|- | |- | ||
|comdline | |comdline | ||
| | | | ||
| | | | ||
Line 300: | Line 281: | ||
|device | |device | ||
| --opts | | --opts | ||
| | | | ||
| | | | ||
Line 308: | Line 287: | ||
|dmraid | |dmraid | ||
| dmraid --name= --dev= | | dmraid --name= --dev= | ||
| | | | ||
| | | | ||
Line 319: | Line 296: | ||
|rowspan="6"|no | |rowspan="6"|no | ||
|rowspan="6"| | |rowspan="6"| | ||
|- | |- | ||
|style="background-color:green;" | --disabled or --disable | |style="background-color:green;" | --disabled or --disable | ||
Line 339: | Line 314: | ||
|group | |group | ||
|group --name=<name> [--gid=<gid>] | |group --name=<name> [--gid=<gid>] | ||
| | | | ||
| | | | ||
Line 348: | Line 321: | ||
| --host= | | --host= | ||
| | | | ||
| rowspan="3" |no | | rowspan="3" |no | ||
| rowspan="3" | | | rowspan="3" | | ||
Line 362: | Line 333: | ||
| --level | | --level | ||
| | | | ||
| rowspan="12"|no | | rowspan="12"|no | ||
| rowspan="12"| | | rowspan="12"| | ||
Line 403: | Line 372: | ||
| --name= | | --name= | ||
| | | | ||
| rowspan="9" |no | | rowspan="9" |no | ||
| rowspan="9" | | | rowspan="9" | | ||
Line 434: | Line 401: | ||
|rescue | |rescue | ||
|rescue [--nomount|--romount] | |rescue [--nomount|--romount] | ||
| | | | ||
|no | |no | ||
Line 444: | Line 409: | ||
| | | | ||
| rowspan="2"|yes | | rowspan="2"|yes | ||
| rowspan="2"| | | rowspan="2"| | ||
|- | |- | ||
Line 454: | Line 417: | ||
| --disabled | | --disabled | ||
| | | | ||
|rowspan="3" |no | |rowspan="3" |no | ||
|rowspan="3" | | |rowspan="3" | | ||
Line 468: | Line 429: | ||
| --enabled= | | --enabled= | ||
| | | | ||
| rowspan="2" |no | | rowspan="2" |no | ||
| rowspan="2" | | | rowspan="2" | | ||
Line 479: | Line 438: | ||
| --username | | --username | ||
| | | | ||
|rowspan="3" |no | |rowspan="3" |no | ||
|rowspan="3" | | |rowspan="3" | | ||
Line 493: | Line 450: | ||
|skipx | |skipx | ||
| | | | ||
|no | |no | ||
|skipx | |skipx | ||
Line 502: | Line 457: | ||
| | | | ||
|yes | |yes | ||
| | | | ||
|- | |- | ||
|updates | |updates | ||
|updates [URL] | |updates [URL] | ||
| | | | ||
| | | | ||
Line 517: | Line 468: | ||
| --name= | | --name= | ||
| | | | ||
|rowspan="9" |no | |rowspan="9" |no | ||
|rowspan="9" | | |rowspan="9" | | ||
Line 549: | Line 498: | ||
| --host= | | --host= | ||
| | | | ||
|rowspan="3"|no | |rowspan="3"|no | ||
|rowspan="3"| | |rowspan="3"| | ||
Line 563: | Line 510: | ||
|<name> | |<name> | ||
| | | | ||
|rowspan="4"|no | |rowspan="4"|no | ||
|rowspan="4"| | |rowspan="4"| | ||
Line 580: | Line 525: | ||
| --defaultdesktop= | | --defaultdesktop= | ||
| | | | ||
|rowspan="2"| | |rowspan="2"| | ||
|rowspan="2"| | |rowspan="2"| | ||
Line 591: | Line 534: | ||
| --devnum= | | --devnum= | ||
| | | | ||
|rowspan="3"| | |rowspan="3"| | ||
|rowspan="3"| | |rowspan="3"| |
Revision as of 07:38, 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 | /autoinstall/url_install/url_sanity.py |
DVD | DVD.iso | size,sha256sum, md5sum | /autoinstall/dvd_install/dvd_sanity.py |
CD | 4 CDs | 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 |
---|---|
URL | /autoinstall/url_install/url_ks.cfg |
DVD | /autoinstall/dvd_install/dvd_ks.cfg |
CD | /autoinstall/cd_install/cd_ks.cfg |
Minimal Boot Media | /autoinstall/bootiso_install/bootiso_ks.cfg |
Live | /autoinstall/live_install/live_ks.cfg |
The kick start options are below [1]:
Kick start options | |||||
---|---|---|---|---|---|
Operation | Options | Values | Description | Required | Typical |
Install or Upgrade | |||||
install | cdrom | yes | install | ||
harddrive | |||||
nfs | |||||
url | |||||
upgrade | --root-device=<root> (optional) | no | |||
Installation Mode | |||||
mode | text | yes | text or graphical | ||
graphical | |||||
After Installation | |||||
reboot | --reject | ||||
firstboot | --enable or --enabled | no | |||
--disable or --disabled | |||||
--reconfig | |||||
shutdown | shutdown | ||||
poweroff | poweroff | no | poweroff | ||
halt | halt | no | halt | ||
keyboard | yes | ||||
lang | yes | ||||
Disk Operation | |||||
clearpart | --all | no | |||
--drives | |||||
--initlabel | |||||
--linux | |||||
--none | |||||
autopart | --encrypted | ||||
--passphrase | |||||
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= | ||||
firewall | --enabled or --enable | no | |||
--disabled or --disable | |||||
--trust= | |||||
<incoming> | |||||
--port= | |||||
--service= | |||||
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 | |||
rootpw | --plaintext | yes | |||
--lock | |||||
selinux | --disabled | no | |||
--enforcing | |||||
--permissive | |||||
services | --enabled= | no | |||
--disabled= | |||||
sshpw | --username | no | |||
--plaintext | |||||
--lock | |||||
skipx | skipx | no | skipx | ||
timezone | --utc | yes | |||
updates | updates [URL] | ||||
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 with virt-install
from virtguest import VirtGuest, the methods to initialize a guest for both tree compose and iso image have been implemented.
step 4
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