QA: Fix duplicated OOB tests
authorIustin Pop <iustin@google.com>
Tue, 11 Jan 2011 17:50:15 +0000 (18:50 +0100)
committerIustin Pop <iustin@google.com>
Wed, 12 Jan 2011 08:17:55 +0000 (09:17 +0100)
commit69df9d2b98b4986fb9bf3877f502658e1236b942
treebae637f11b0ab4f00c8f54014c082a52694bc9c2
parent7b0bf9cdd2656adbbbc1fa888a6df77fbe2f42a5
QA: Fix duplicated OOB tests

Patch f55312bd added the OOB tests to TestClusterVerify, which is not
actually a test for cluster verify, but a runner for cluster verify
that is called multiple times, for each instance type, etc. This led
to running the OOB commands multiple times, which is painful
especially as this is a slow test.

The patch moves this to a separate test, that is run only once.

Furthermore, the way that data files are copied around is very
inefficient: touch + mv + chmod + mv + rm for each node (5 times
number of nodes), whereas it could be simply: touch on master, chmod
on master, cluster copyfile, chmod on master, cluster copyfile,
cluster command rm, i.e. only 5 fixed ssh calls to the master. The
code is changed as such, for increased speed.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
qa/ganeti-qa.py
qa/qa_cluster.py