« Previous - Version 33/54 (diff) - Next » - Current version
Mark Donohoe, 01/19/2012 12:10 am
add item about changing root passwd on ubuntu systems


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.ostt
  2. fed15-64.ostt
  3. u1043-32.ostt
  4. u1043-64.ostt
  5. rhel6-132.ostt
  6. rhel6-164.ostt
  7. u1104-32.ostt
  8. u1104-64.ostt
  9. ubun111032.ostt
  10. ubun111064.ostt
  11. squeze64.ostt

VM Creation

  1. Use the vm client software (vSphere) to create each vm. For each vm, load the following additional software:
  • Jenkins
  • php (including posix features)
  • subversion
  • java2-runtime (sun version)
  • others per distro (see below)
  1. After each vm is installed, it is cloned as a template so that full recovery is faster.
  2. As part of the initial set up, there should already be an existing vm. If needed, convert the template into a VM, see the page Converting a VM template to an Install VM.
  3. After the vm is working and on the network, take a snapshot (with memory) of it using the vm client software. Take only 1 snapshot. For example, the rhel6-132.ostt vm was snapshoted as rhel6.1-32-snap1, with description of "rhel6-132.ostt ready for install test". In the description always use the real full name.
  4. After the snapshot is saved (it can take a while), enable it with the snapshot manager. This is an important step. If this step is not done, after an install a 'revert' will not be to be done and the vm will have to be removed and recreated.

todo need a section on snapshots.

Setting up a Jenkins slave node (the vm)

Debian/Ubuntu

  • install java2-runtime (sun version)
  • install deamon
    sudo apt-get install openjdk-6-jre openjdk-6-jre-headless daemon 
    
  • download and install Jenkins, use the right bar to select the version, we have used the LTS releases with good results.
  • Stop Jenkins and reset jenkins user password to jenkins.
  • restart jenkins
    sudo /etc/init.d/jenkins start
  • change root passwd to the standard. Ubuntu systems set it so it must be changed.

RedHat/Fedora/CentOS based systems

For all rhel systems, a proxy must be set so yum can reach the outside world. Modify /etc/yum.conf.

proxy=http://lart.usa.hp.com:3128

Fedora

Fedora is the easiest of the rhel based systems. It contains the material needed above without having to go to other repos (except jenkins).

  • add a proxy to yum (see above)
  • install material:
     yum install php php-process emacs subversion

Fedora, RedHat/Centos 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
  • 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.