System/EC2CloudImages

Not logged in - Log In / Register

Ubuntu Server EC2 AMI

The following tests are to be run on each candidate AMI (each combination of region, arch, root-device). Some utilities for launching all instances and collecting data is available at lp:~smoser/+junk/ec2-test.

Multiple Instance Run

  1. Start 10 instances ('--instance-count') in the same availability zone. [optional for EBS root]

  2. Start an instance of each type ('--instance-type').

    • i386: m1.small c1.medium
    • x86_64: m1.large m1.xlarge c1.xlarge . Optional: m2.xlarge m2.2xlarge m2.4xlarge
  3. Start an instance in each availability zone ('--availability-zone') [optional for EBS root].

For each of the instances, verify it is functional:

For each EBS instance, additionally verify:

File a bug

User Data Test

User data tests are run by starting an instance ('--user-data-file=ud-cloudconfig-01.txt') with a given user-data file and then verifying that the user-data was consumed by the instance in the appropriate manner.

  1. Start an instance passing a user-data script (#!) ud-simple-01 {download}. Verify:

    • 'Hello World' message is present on the console
    • /root/OUTPUT-simple-01.txt file is present in the instance

  2. Start an instance passing multi-part user data ud-multipart-01 {download} . Verify:

    • presence of the following files:
      • /root/OUTPUT-my-user-script-1.sh
      • /root/OUTPUT-my-user-script-2.sh
      • /root/OUTPUT-my-upstart-job.conf
      • /etc/init/my-upstart-job.conf
      • /root/OUTPUT-upstartjob1.txt
      • /etc/init/upstartjob1.txt.conf
      • /root/OUTPUT-include-compressed-script-01.txt
      • /root/OUTPUT-include-script-01.txt
    • 'pastebinit' package is installed
  3. Start an instance passing ud-cloudconfig-01 {download}. Verify each of the following:

    • 'apt-get update' and 'apt-get upgrade' were run (output should be in console)

    • mirror used in /etc/apt/sources.list is us.archive.ubuntu.com.

    • ubuntu-on-ec2/ec2-tools ppa has been added in /etc/apt/sources.list.d/.

    • alestic ppa has been added in /etc/apt/sources.list.d/

    • the following packages are installed: runurl and pastbinit
    • ephemeral0 storage is mounted on /opt (run df /opt)

    • swap is disabled (nothing listed in /proc/swaps)
    • 'cloudconfig@test' key is present in /home/ubuntu/.ssh/authorized_keys
    • /root/runcmd.date.txt file exists, has 'date' output in it

File a bug

System/EC2CloudImages (last edited 2010-05-21 18:07:29 by roignac)