|
|
(29 intermediate revisions by 2 users not shown) |
Line 9: |
Line 9: |
| [[File:Mac Pros.png]] | | [[File:Mac Pros.png]] |
|
| |
|
| There are three existing Mac Pros that are legacy hardware for automation runs: | | There are three existing Mac Pros that are legacy hardware for automation runs and are located in room 2.IDF (MV): |
| * QA-Horus aka release1.qa.mtv1.mozilla.com
| |
| * QA-Set aka release2.qa.mtv1.mozilla.com
| |
| * QA-Masterblaster aka release3.qa.mtv1.mozilla.com
| |
| All three machines run the latest version of OS X 10.6.
| |
|
| |
|
| They are located at:
| | * qa-horus (release1.qa.mtv1.mozilla.com) |
| Room 2.IDF in Mountain View
| | ** IP: 10.252.73.47 |
| | ** Mac: 00:25:00:F4:EC:3D |
| | |
| | * qa-set (release2.qa.mtv1.mozilla.com - 10.250.73.48) |
| | ** IP: 10.252.73.48 |
| | ** Mac: 00:25:00:F4:EB:B0 |
| | |
| | * qa-masterblaster (release3.qa.mtv1.mozilla.com - 10.250.73.49) |
| | ** IP: 10.252.73.49 |
| | ** Mac: E8:06:88:CF:EF:10 |
|
| |
|
| All machines have an administrator account with the username, 'mozillaqa'. Access can be done over SSH or Apple Remote Desktop/VNC. | | All machines have an administrator account with the username, 'mozilla'. Access can be done over SSH or Apple Remote Desktop/VNC. |
|
| |
|
| = Mac Minis = | | = Mac Minis = |
Line 33: |
Line 38: |
| In addition, four OS X 10.6 Mac Minis were acquired from ex-RelEng stock. | | In addition, four OS X 10.6 Mac Minis were acquired from ex-RelEng stock. |
|
| |
|
| QA-Mozmill is an older, legacy, Mac Mini previously used for OS X 10.7 testing and as a sandbox.
| | All machines have an administrator account with the username, "mozauto". Access can be done over SSH or Apple Remote Desktop/VNC. |
| | |
| All machines except QA-Mozmill have an administrator account with the username, "QA". Access can be done over SSH or Apple Remote Desktop/VNC. | |
|
| |
|
| The detailed list of machines is as follows: | | The detailed list of machines is as follows: |
| * QA-Mozmill - a legacy machine used for 10.7 testing, account is "mozillqa" for this machine.
| |
| * OS X 10.5 | | * OS X 10.5 |
| ** mm-osx-105-1 (release1-osx-105.qa.mtv1.mozilla.com) [unused - needs bump to 10.6] | | ** mm-osx-105-1 (release1-osx-105.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-105-2 (release2-osx-105.qa.mtv1.mozilla.com) [unused - needs bump to 10.7] | | ** mm-osx-105-2 (release2-osx-105.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-105-3 (release3-osx-105.qa.mtv1.mozilla.com) [unused - needs bump to 10.8] | | ** mm-osx-105-3 (release3-osx-105.qa.mtv1.mozilla.com) [unused] |
| * OS X 10.6 | | * OS X 10.6 |
| ** mm-osx-106-1 (release1-osx-106.qa.mtv1.mozilla.com) | | ** mm-osx-106-1 (release1-osx-106.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-106-1 (release2-osx-106.qa.mtv1.mozilla.com) | | ** mm-osx-106-2 (release2-osx-106.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-106-1 (release3-osx-106.qa.mtv1.mozilla.com) | | ** mm-osx-106-4 (release4-osx-106.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-106-1 (release4-osx-106.qa.mtv1.mozilla.com) [currently used for l10n tests]
| |
| * OS X 10.7
| |
| ** mm-osx-107-1 (release1-osx-107.qa.mtv1.mozilla.com)
| |
| ** mm-osx-107-2 (release2-osx-107.qa.mtv1.mozilla.com)
| |
| ** mm-osx-107-3 (release3-osx-107.qa.mtv1.mozilla.com)
| |
| ** mm-osx-107-4 (release4-osx-107.qa.mtv1.mozilla.com)
| |
| * OS X 10.8 | | * OS X 10.8 |
| ** mm-osx-108-1 (release5-osx-107.qa.mtv1.mozilla.com)
| | ** mm-osx-108-2 (release6-osx-107.qa.mtv1.mozilla.com) [spare in SCL3] |
| ** mm-osx-108-2 (release6-osx-107.qa.mtv1.mozilla.com) | | ** mm-osx-108-3 (release7-osx-107.qa.mtv1.mozilla.com) [unused] |
| ** mm-osx-108-3 (release7-osx-107.qa.mtv1.mozilla.com) | |
| ** wq-osx-108-1 (release8-osx-107.qa.mtv1.mozilla.com)
| |
| | |
| = QA MV ESX Cluster (HP 1230 Racked Servers) =
| |
| These servers run ESXi and have a series of Windows and Linux virtual machines running within each.
| |
| | |
| The hardware specifications are:
| |
| HP DL120 G7 1U Form factor
| |
| Intel® Xeon® processor E3-Intel® Xeon® E3-1230 (3.20GHz/4-core/8MB/80W)
| |
| 1333, HT, Turbo 1/2/3/4 Processor
| |
| 1 X 250GB SATA HD
| |
| 16 GB RAM
| |
| | |
| They are located at:
| |
| Room 3.IDF in Mountain View
| |
| | |
| Numbering here starts with '4' since 1 through 3 are used for the existing Mac Pros running VMware Fusion.
| |
| | |
| == Usage ==
| |
| * release4.qa.mtv1.mozilla.com
| |
| ** mm-ub-1204-32-1 (10.250.73.249)
| |
| ** mm-ub-1204-32-2 (10.250.73.X)
| |
| ** mm-ub-1204-32-3 (10.250.73.X)
| |
| ** mm-ub-1204-64-1 (10.250.73.247)
| |
| ** mm-ub-1204-64-2 (10.250.73.X)
| |
| ** mm-ub-1204-64-3 (10.250.73.X)
| |
| * release5.qa.mtv1.mozilla.com
| |
| ** mm-win-2000-1 (10.250.73.252)
| |
| ** mm-win-2000-2 (10.250.73.X)
| |
| ** mm-win-2000-3 (10.250.73.X)
| |
| ** mm-win-xp-1 (10.250.73.254)
| |
| ** mm-win-xp-2 (10.250.73.X)
| |
| ** mm-win-xp-3 (10.250.73.X)
| |
| ** mm-win-vista-1 (10.250.73.251)
| |
| ** mm-win-vista-2 (10.250.73.X)
| |
| ** mm-win-vista-3 (10.250.73.X)
| |
| * release6.qa.mtv1.mozilla.com
| |
| ** mm-win-7-32-1 (10.250.73.244)
| |
| ** mm-win-7-32-2 (10.250.73.X)
| |
| ** mm-win-7-32-3 (10.250.73.X)
| |
| ** mm-win-7-64-1 (10.250.73.253)
| |
| ** mm-win-7-64-2 (10.250.73.X)
| |
| ** mm-win-7-64-3 (10.250.73.X)
| |
| * release7.qa.mtv1.mozilla.com
| |
| * release8.qa.mtv1.mozilla.com
| |
| * release9.qa.mtv1.mozilla.com
| |
| * release10.qa.mtv1.mozilla.com
| |
| ** wq-win-7-32-1 (10.250.73.248)
| |
| * release11.qa.mtv1.mozilla.com
| |
| ** esx-win-xp-adm (10.250.73.241)
| |
| ** mm-ci-master (10.250.73.243)
| |
| * qa-set (temporarily until new ESX cluster is up)
| |
| ** mm-win-8-32-1 (10.250.73.245)
| |
| ** mm-win-8-32-2 (10.250.73.X)
| |
| ** mm-win-8-32-3 (10.250.73.X)
| |
| ** mm-win-8-64-1 (10.250.73.250)
| |
| ** mm-win-8-64-2 (10.250.73.X)
| |
| ** mm-win-8-64-3 (10.250.73.X)
| |
| | |
| These are controlled as a unified vCenter ESX cluster. This is accessible via vSphere as vc1.qa.mtv1.mozilla.com. Download the appropriate vSphere client from: https://vc1.qa.mtv1.mozilla.com/client/VMware-viclient.exe. You can try the web client at: https://vc1.qa.mtv1.mozilla.com:9443/vsphere-client/. You will need an account created on vc1 if you wish to be an administrator on it. This is controlled by Dan Parsons (:lerxst) and should be done through an IT request bug.
| |
| | |
| == Handling of the ESX cluster ==
| |
| To ensure that new and existent VMs and templates are handled correctly you can find some details below. This part only affects administrators of the ESX cluster. Others should file a Mozilla QA / Infrastructure bug to get issues solved.
| |
| | |
| === Templates ===
| |
| All templates for VMs have been created to be run on release11. Their data storage has been set to fs2-qa1 (which is smb://fs2.private.mtv1.mozilla.com/qa1). That means no data is stored on the VM itself but on the shared 1TB network drive instead. Those data should remain on this disk and this storage has to be used for newly created templates. That allows us to share the templates across the different machines in the ESX cluster.
| |
| | |
| ; Creating a new template
| |
| * Log into vsphere via the local client
| |
| * Select "Inventory -> VMs and Templates"
| |
| * Right click the templates folder under "qa.mtv1" and select "New Virtual Machine"
| |
| * Select the Custom mode
| |
| * Enter the name of the template which correlates to the platform you want to install, e.g. ubuntu_12.04_32bit
| |
| * As execution host select release11
| |
| * The storage has to be set to fs2-qa1
| |
| * Click through by using the defaults
| |
| * Select the os you want to install
| |
| * Click through by using the defaults
| |
| * For memory use 1GB for 32bit and 2GB for 64bit systems
| |
| * Click through the remaining wizard pages
| |
| * Connect an ISO image (probably from fs2-qa1) and select "Connect at power on"
| |
| * Start the VM and install the system + upgrades, and make configuration changes
| |
| * Disconnect the ISO image
| |
| * Install VMware tools
| |
| * Shutdown the VM
| |
| * Go to VM preferences and check time synchronization with the host under 'Options > VMware Tools'
| |
| * Enable 'auto update' of VMware tools under 'Options > VMware Tools'
| |
| * Create snapshot: "Initial State"
| |
| * Right click the VM and select "Template > Convert to template"
| |
| | |
| ; Updating an existent template
| |
| * Log into vsphere via the local client
| |
| * Select "Inventory -> VMs and Templates"
| |
| * Right click the template to modify and select "Convert to Virtual Machine..."
| |
| * Start the VM
| |
| * Perform all the necessary changes
| |
| * Shutdown the VM
| |
| * Create snapshot: e.g. "Update 01.07.2012"
| |
| * Right click the VM and select "Template > Convert to template"
| |
| | |
| === Deploying new machines ===
| |
| When a new machine is getting deployed from a template ensure the following tasks are getting executed:
| |
| | |
| * Choose the template you want to deploy a new machine from
| |
| * Select "Deploy a new virtual machine"
| |
| * Select an unique name for the new machine, e.g. mm-win-7-32-1
| |
| * Select the appropriate sub folder in the inventory location
| |
| * Select the host for the VM (See the above host usage first)
| |
| * Select the local disk for the destination storage of the VMware image
| |
| * Click through and do no configuration
| |
| * When finished start the machine
| |
| * Change the hostname of the machine so it corresponds to above chosen machine name
| |
| | |
| = Platform Requirements =
| |
| For each of the supported platforms a VM has to be created or in case of OS X a Mac Mini to be installed. There are system and software requirements we have to fulfill when creating those systems. Therefore the following list will show what has to be performed until the VM/machine can be used for Mozmill and WebQA related automation tasks.
| |
| | |
| ; Linux (Ubuntu)
| |
| * Create an user 'mozauto' which should auto-login
| |
| * Install OpenSSH Server: '''sudo apt-get install openssh-server'''
| |
| * Enable 'Desktop Sharing' for VNC connections by setting a password and disabling confirmation (see the [http://wiki.ubuntuusers.de/VNC tutorial])
| |
| * Turn off screensaver, screen locking, and energy power settings
| |
| * Put Terminal, and Software Upgrade application into the launcher
| |
| * Install all the latest security fixes, and turn off automatic update checks, major version notifications, and set security updates to download automatically but not install
| |
| * Install the latest version of Java JRE (see the [http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html tutorial)
| |
| * Install the latest version of Flash
| |
| | |
| ; Windows (All)
| |
| * Create an user 'mozauto' in the admin group which should auto-login (use [http://download.microsoft.com/download/f/c/a/fca6767b-9ed9-45a6-b352-839afb2a2679/TweakUiPowertoySetup.exe TweakUI] for WinXP and 'netplwiz' for newer releases)
| |
| * On Windows 8 install the [http://classicshell.sourceforge.net/ Classic Shell] to get back the Start button
| |
| * Connect network drive '''\\fs2.office.mozilla.org\qa1''' as drive Z
| |
| * Disable password expiration: '''z:\\tools\scripts\disable_password_expire.cmd'''
| |
| * Install [http://www.uvnc.com/downloads/ultravnc.html Ultra-VNC] from Z:\setup\
| |
| * Enable Remote Desktop for Windows XP and later
| |
| * Set the hostname to match the os and version (e.g. windows_7_32) via the control panel
| |
| * Turn off screensaver, screen locking, and energy power settings
| |
| * Turn off UAC (user account control) for Windows Vista and upwards
| |
| * Install all the latest security fixes, and turn off automatic updates
| |
| * Install the latest version of [http://www.java.com/download/ Java JRE] (Windows 2000 needs [http://www.oracle.com/technetwork/java/javase/downloads/jre-6u31-download-1501637.html Java 6 Update 31])
| |
| * Install the latest version of Flash (Windows 2000 needs Flash 10.1)
| |
|
| |
|
| ; Mac OS X
| | = Mozmill CI masters = |
| * Create an user 'mozauto' in the admin group which should auto-login | | * Staging: qa-masterblaster (http://release3.qa.mtv1.mozilla.com:8080/) |
| * Enable [http://hints.macworld.com/article.php?story=20080318190503111 Screen Sharing] or better [http://support.apple.com/kb/HT2370 Remote Management] and Remote Login
| | * Production: mm-ci-master (http://mm-ci-master.qa.scl3.mozilla.com:8080/)) |
| * Add network connection: 'smb://fs2.private.mtv1.mozilla.com/qa1' (add to keychain) | |
| * Turn off screensaver, screen locking, and energy power settings
| |
| * Enable automatic restart after power failure
| |
| * Mute sound output
| |
| * Install all the latest security fixes, and turn off automatic update checks
| |
| * Install the latest version of Java JRE (type 'java' in the Terminal)
| |
| * Install the latest version of Flash
| |