Commit Graph

2081 Commits

Author SHA1 Message Date
Sandon Van Ness
e04f8fd3cd Add teuthology-queue command for beanstalk Managmeent.
Supports listing entire queue of machine type and deleting test
suite runs from the queue without wiping the entire queue.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-02-25 11:13:31 -08:00
Zack Cerza
38cead630b Flip logic of checking whether a branch can report
Previously we checked if the branch being used was in a whitelist of
branches known to contain the reporting feature. Now, switch to checking
against a blacklist of branches known to *not* have the feature:
argonaut, bobtail, cuttlefish and dumpling.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-24 15:01:58 -06:00
Sage Weil
6e28480693 schedule_suite: debug filestore = 20 too
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-21 13:51:12 -08:00
Alfredo Deza
ae61abf0de Merge pull request #205 from kdreyer-inktank/jenkins
jenkins: fail fast during job execution
2014-02-21 16:01:00 -05:00
Zack Cerza
7e625d27f0 Merge pull request #206 from ceph/wip-osd-debug
schedule_suite: debug osd = 20 for the time being
2014-02-21 13:25:30 -06:00
Sage Weil
70e217f074 schedule_suite: debug osd = 20 for the time being
This will make it easier to chase the first pass of firefly bugs.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-21 11:15:40 -08:00
Alfredo Deza
084c6aed3f Merge pull request #203 from ceph/wip-devstack
Add devstack task
2014-02-21 13:20:18 -05:00
Ken Dreyer
a53454ba8d jenkins: fail fast during job execution
Jenkins will dynamically write the commands in its database into a
script and run it with "-x" and "-e" in order to display each step and
fail after the first step fails.

Now that our commands are stored in Git, ensure that we're doing the
same thing.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
2014-02-21 11:11:47 -07:00
Zack Cerza
6671d02df3 Merge pull request #204 from ceph/wip-fix7397-wusui
Do not spawn a parallel task if dictionary entry does not exist.
2014-02-21 12:08:37 -06:00
Zack Cerza
ca600a2e04 Add unit test for task.devstack.parse_os_table()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 11:23:31 -06:00
Zack Cerza
5411613599 Add debug output for reconnect() failures
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 10:18:41 -06:00
Zack Cerza
05842e9f84 Add explanations to asserts
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 09:57:29 -06:00
Zack Cerza
cfb7b948ea Guard against ctx.config being unset or None
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 09:43:33 -06:00
Warren Usui
dadc9f7d0b Do not spawn a parallel task if dictionary entry does not exist.
Fixes: 7397
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-20 20:18:28 -08:00
Zack Cerza
b92578e507 Remove unused import
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:51:36 -06:00
Zack Cerza
b638dc410c Don't run the exercise subtask by default
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
741b4de337 Add a retry to the rbd volume verification
This was running into an auth problem intermittently that Josh Durgin
said is likely not a real problem. Still, try the original call first
and fall back to a different one if it fails.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
aecd98d763 Fix incorrect exception name in docstring
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
830748a64a Move external docs URLs
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
f7b1d92267 Wait 30s for Keystone to start
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
11b60fef81 Change usages of StringIO.read() to getvalue()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
fdaaee57da Source openrc before creating volume
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
f53028f9d5 Add a new subtask: smoke()
Currently it creates a volume, then verifies that the volume exists in
Ceph - as opposed to some other place. This is intended to verify that
we've configured DevStack at least somewhat correctly.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
7c5712740e Forget about saving the exercise.sh log, for now
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
85e63dd904 Allow using different devstack branches
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
5c12d36001 Add devstack.exercise subtask
The subtask runs devstack/exercise.sh

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
e3f336d15b Make reconnect() use Remote.reconnect()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
61e9ac4db5 Move reboot() to teuthology.misc
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
1228ac888e Add documentation to reboot()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
3dcde65c23 Add note about memory requirements
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
021f84ac64 Simplify create_if_vm's downburst config logic
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
27bad445a1 Move restart_apache() to after the reboot
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
e73df9c853 Make rejoin-stack.sh start screen in detached mode
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
a4bf1f8f85 Actually call Remote.reconnect()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
1a0be5a0ab Tweaks to is_online and reconnect()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
a1ed3d491f Add logging calls to each helper function
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
fe0aedf76c Set apache ServerName, reboot, restart devstack
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
297096b560 Add Remote.reconnect()
Also rename Remote._connect() to Remote.connect() and change its
semantics to match Remote.reconnect()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
2289496952 Use new init parameters for Remote
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
8dfac4381c Make Remote.is_online more accurate
To really know if the connection is active, we need to read something
from the remote host.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
71b4bfe226 Remote instances can now establish SSH connections
Previously, they required an active ssh connection object to be passed
to them. That behavior is still functional.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
1c71558e53 Add Remote.is_online property
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
a2a5aed49f Add Remote.hostname property
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
69beebc935 get_file() returns a str, not a StringIO...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
375d7ddd46 Use ConfigParser.set() instead of update()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
a55c22aaf6 Work around a bug in ConfigParser
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
119b438fec Call seek(0) on StringIO objects before reading
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b474d2827b Fix typoed virsh call
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
f500634896 Don't pass owner to copy_key()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b33686f490 Use get_file() and sudo_write_file()
... instead of copy_file()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00