Tools for testing
Vikentsi Lapa for MLUG 2013
Testing process

Analysis,
Planning,
Test Cases
Development

Environment
Setup

Test
Execution

Test Cycle
Closure
Cluster environment setup
●

8 nodes
–
–

●

4 servers
4 clients

Simple tasks
–
–

Get IP settings from all nodes

–
●

Check time on all cluster nodes
Copy /etc/multipath.conf only to server nodes

How to complete this tasks?
Environment setup
Use /dev/fast_fingers
for node in client-1 client-2 …
do
echo $node
ssh $node date
done
Use some tool
Environment Setup
●

pdsh
–
–

●

pdsh -a date
pdsh -w server-[1-4] uptime

dshbak
–

●

pdsh -a ip addr | dshbak

pdcp
–

pdcp -a /etc/hosts /etc/

–

pdcp -a -x client-[1-8] /etc/multipath.conf /etc/
Environment Setup
●

Ansible = Puppet, Chef, but

●

but has differences
–

minimal infrastructure
●

–

requires only Python and SSH access to node

2 modes
●
●

command line mode similar to pdsh
playbooks

–

keeps configuration in YAML files

–

extensible
●

modules (any language), plugins
Test Execution
●

screen
–

keep long running test active in SSH session

–

store information about bugcreate log file
●
●

test is started, test is finished ctrl-alt-H
log file name can be changed
–

–
●

: logfile tc78_%c_%D_%M

create console “screenshot” to file

similar tools
–

tmux, script, nohup
Summary
●

Cluster tools
–

for environment configuration
●
●

–

pdsh https://code.google.com/p/pdsh/
Ansible http://www.ansibleworks.com/

for test execution
●

screen or tmux, script

Vikentsi Lapa - Tools for testing