« Previous - Version 24/54 (diff) - Next » - Current version
Mark Donohoe, 01/06/2012 06:24 am


Package Install Testing

Package install testing will use virtual machines along with vm templates and snapshots to accomplish the testing in a quick an timely manner. Snapshots will allow the restore of the system to it's pre-installed state. This will enable quick turnaround for testing.

Below is the list of VM systems that will be used to test 2.0 package testing:

  1. fed15-32
  2. fed15-64
  3. u10-043-32
  4. u10-043-64
  5. rhel6-132
  6. rhel6-164
  7. u1104-32
  8. u1104-64
  9. ubun111032
  10. ubun111064
  11. squeze64

VM Creation

  1. Use the vm client software to create each vm. For each vm, load the following additional software:
  • Jenkins
  • php (including posix features)
  • java2-runtime (sun version)
  • others per distro (see below)
  1. After each vm is installed, it is converted into a template so that recovery is faster.
  1. Convert the template into a VM, see the page Converting a VM template to an Install VM.
  1. After the vm is working and on the network, take a snapshot of it using the vm client software.

After the template is saved, convert the template to a new vm, follow the steps below, then power off the vm. Take a snapshot of the new, powered off vm, for example, the rhel6-132.ostt vm was snapshotted as fhel6.1-32, with description of "rhel6-132.ostt ready for install test". In the description always use the real full name.

Setting up a slave node in Jenkins

Debian
  • install java2-runtime (sun version)
  • install deamon
  • download and install jenkins
    sudo apt-get install openjdk-6-jre openjdk-6-jre-headless daemon 
    sudo apt-get -f install, and answer yes
    

Stop Jenkins and reset jenkins user password to jenkins.
need to set up ssh authorized key from fonightly.

RedHat/Fedora/CentOS based systems

  • download jenkins and get the rpm version we want:
    wget  http://mirrors.jenkins-ci.org/redhat-stable-rc/jenkins-1.424.2.SNAPSHOT-1.1.noarch.rpm
  • On Fedora, postgresql, posgresql-server both must be installed, then as root or postgres
    service postgresql initdb
    If this is not done, postgres will not start or stop.
    • If you can't talk to apache or postgres over the network: Add this to /etc/sysconfig/iptables:
      -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
      -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
      -A INPUT -p tcp --dport 5432 -j ACCEPT

The above will enable apache and postgres

now as jenkins sudo

/etc/init.d/postgresql start
works.