Chapter 16. JBoss QA Lab Guide

This chapter provides JBoss developers with a guide to the QA lab. It covers usage guidelines as well as setup documentation

16.1. Quick Start Guide

Use ssh to log into dev02.pub.qa.atl.jboss.com. All of the servers in the Q/A lab have the same public keys and accounts as cvs.jboss.com. If you can't connect, contact it-ops@jboss.com. Dev02 is available for ad-hoc testing by developers and support engineers. No scheduling is required for this box.

To avoid port conflicts with others, bind listeners to your assigned address. Currently, each account has 4 IP addresses available. These are available as environment variables: $MYTESTIP_1,$MYTESTIP_2, $MYTESTIP_3, $MYTESIP_4. For instance:


./run.sh -b $MYTESTIP_1 -c default
  

You will find assorted tools and JVM's under /opt. If you can't find something you need, please raise the issue on the JBIT project in JIRA.

16.2. Lab Setup

16.2.1. Topology

Each node has a public IP address for services such as SSH and HTTP, in addition to 256 private IP addresses. The local network is Gigabit Ethernet, with connectivity to the public Internet via a DS3.

To prevent port conflicts, each listener/server process must be bound to a specific private IP address. These IP addresses are delineated per node and per user in the /opt/etc/assigned-ips file, available on each machine. Currently, each user is assigned 4 IP addresses per node. These are automatically set as the environment variables $MYTESTIP_1 $MYTESTIP_2, etc. All ports for a given private IP address may be accessed via SSH tunneling.

16.2.2. File System

The /opt and /home directories on each machine are mapped to the corresponding directories on dev01 via NFS. So your home directory is the same on each machine. The /opt directory holds common packages needed across all nodes, preventing unecessary duplication. Under /opt, you will find several useful packages such as:

  • Many jdks, including IBM, Sun & JRockit

  • JDBC drivers under /opt/jdbc-drivers

  • Under /opt/src, several binary & src distros of JBoss

  • Several versions of Ant

16.2.3. Databases

This section documents the available databases in the QA lab, how to start, stop & access them. JDBC drivers are available under /opt/jdbc-drivers.

For sudo acces to sybase & oracle, see "How do I get DB admin access?"

Table 16.1. Available Databases

DatabaseConnection URLStart/StopNew User
Oracle 10.1.0.3jdbc:oracle:thin:@dev01-priv:1521:qadb01
/etc/init.d/dbora start|stop
$ sudo su - oracle
$ export ORACLE_SID=qadb01
$ sqlplus "/ as sysdba "
CREATE USER your_username_here 
IDENTIFIED BY your_password_here  
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA UNLIMITED ON users;

GRANT DBA to your_username_here;
MySQL 4.1.10ajdbc:mysql://dev01-priv/your_database_here
/etc/init.d/mysql.server start|stop
$ /opt/mysql/bin/mysql -u qa -h qadb01 -p
Enter password: #request from JBIT in JIRA
GRANT ALL PRIVILEGES ON your_db_here.* 
TO 'your_username_here'@'%' 
IDENTIFIED BY 'your_password_here';
flush privileges;
create database your_database_here;
Sybase ASE 12.5.2jdbc:sybase:Tds:dev01-priv:4100
sudo su - sybase
startserver -f \
~/sybase/ASE-12_5/install/RUN_sybase01
#stop
sudo su - sybase
isql -Usa -P -Ssybase01
shutdown
go
$ sudo su - sybase
$ isql -Usa -P -Ssybase01
sp_addlogin "yourusernamehere", "yourpasswordhere"
go
create database yourdbhere
go
use yourdbhere
go
sp_changedbowner yourusernamehere
go

16.2.4. Servers

This section lists the available servers and their configurations. We can move between Windows/SLES/RHEL very quickly. Please ask if you need a different OS. All servers have the domain name of dev??.pub.qa.atl.jboss.com.

Table 16.2. Available Servers

HostPurposeOSCPUMemory
dev01Database/NFS serverRHEL 3/2.4 Kernel2 x 3.06 GHz P4 Xeon4GB
dev02General usageRHEL 3/2.4 Kernel2 x 3.06 GHz P4 Xeon2GB
dev03General usageRHEL 3/2.4 Kernel2 x 3.06 GHz P4 Xeon2GB
dev04General usageSLES 9/2.6 Kernel2 x 3.06 GHz P4 Xeon2GB
dev05Cruisecontrol - no general accessRHEL 3/2.4 Kernel2 x 3.06 GHz P4 Xeon2GB
dev07General usageRHEL 4/2.6 Kernel/64 bit2 x 1.4 GHz IA-64 Itanium 22GB
dev08General usageRHEL 4/2.6 Kernel/64 bit2 x 1.4 GHz IA-64 Itanium 22GB
dev12General usageSolaris 82 x 1.2HGz Sun V2104GB
dev13General usageSolaris ?2 x 1.8GHz Sun V20z 
dev14General usageRHEL 4/2.6 Kernel/64 bit1 x 1.5 GHz IA-64 Itanium 24 GB
dev15General usageRHEL 4/2.6 Kernel/64 bit1 x 1.5 GHz IA-64 Itanium 24 GB
dev16SPECJRHEL 4/2.6 Kernel/64 bit2 x 3.6 GHz Xeon EM64T4 GB
dev17SPECJRHEL 4/2.6 Kernel/64 bit2 x 3.6 GHz Xeon EM64T4 GB
dev18General usageRHEL 4/2.6 Kernel/64 bit4 x 1.5 GHz IA-64 Itanium 24 GB
dev19General usageRHEL 4/2.6 Kernel/64 bit4 x 1.5 GHz IA-64 Itanium 24 GB

16.3. QA Lab FAQ

16.3.1. General

16.3.16.3.1.1.

How should I run the testsuite in the QA Lab?

./build.sh tests -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2

16.3.16.3.1.2.

I'm getting port conflicts, how do I fix this?

sudo /usr/sbin/lsof -i -P | grep 1099

This should display who has JBoss instances running. If they have not bound to their private IP address, it will conflict even if you are doing so.

16.3.16.3.1.3.

How do I get DB admin access?

On dev01, check to see if you are in the oracle_admin group:

$ groups

If you don't see oracle_admin listed, open a JIRA issue in the JBIT project requesting access to this group.

16.3.16.3.1.4.

How do I add disk space for Sybase?

Get into the isql prompt as above, and

disk resize name="master", size="200M"
go