Commit Graph

2144 Commits

Author SHA1 Message Date
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
Zack Cerza
cedd12831a Split out key generation
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
76588e9742 Add update_devstack_config_files()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b40f5f74ab Add set_libvirt_secret() and split out other steps
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
c6b5c01a16 Split out devstack-ceph configuration
This is starting to get long, so create configure_devstack_and_ceph()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b674048026 Copy ceph auth keys over to devstack node
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
74355e54e5 Add optional 'owner' arg to sudo_write_file()
This gets passed directly to chown as 'sudo chown $owner $file'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
ed512568f0 Fix linter errors.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:05 -06:00
Zack Cerza
10e12c2d5c Add skeleton devstack task
Currently only installs devstack on one node, and creates some pools on
the ceph cluster.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:05 -06:00
Zack Cerza
dfe60526eb Add copy_file() to scp files between remotes
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:05 -06:00
Zack Cerza
a3f6d9a6d7 Merge pull request #201 from ceph/wip-6531-wusui
Fix formatting and add docstrings to ceph_manager.py
2014-02-20 16:56:24 -06:00
Warren Usui
b4ce61cc3d Add back in print in ceph_manager that the last checkin accidentally removed 2014-02-20 14:51:23 -08:00
Warren Usui
30f8938ea3 Fix formatting and add docstrings to ceph_manager.py
Fixes: 6531
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-20 14:51:23 -08:00
Ken Dreyer
d78b9b0123 jenkins: add debugging output to shell script
When we migrated the Jenkins commands into Git, the exact commands are
no longer visible unless we run with "-x".

Add "set -x" to the script to enable debugging.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
2014-02-19 15:01:43 -07:00
Zack Cerza
c03600776c Merge pull request #195 from ceph/wip-7003-wusui
Add docstrings to the orchestra code.  Also fix minor formatting issues
2014-02-19 15:44:26 -06:00
Alfredo Deza
31c27e139f Merge pull request #186 from ceph/wip-7369
Fix #7369: "sed expression must be raw string"
2014-02-19 16:40:17 -05:00
Warren Usui
f3ac7870ea Fix syntax error in first docstring added. 2014-02-19 13:37:06 -08:00
Zack Cerza
efd59a2ad4 Merge pull request #190 from kdreyer-inktank/jenkins
add jenkins-pull-requests-build script
2014-02-19 15:34:24 -06:00
Zack Cerza
a70e93fcab Merge pull request #199 from ceph/wip-6540-wusui
Add docstrings.  Fix formatting issues for rgw.py
2014-02-19 15:26:31 -06:00
Zack Cerza
cc3d013e96 Merge pull request #196 from ceph/wip-6541-wusui
Fix docstrings in radosgw-admin-rest.py
2014-02-19 15:26:14 -06:00
Zack Cerza
8d85b21cae Merge pull request #197 from ceph/wip-6535-wusui
Fix docstrings for task/blktrace.py, peering_speed_test.py, proc_thrashe...
2014-02-19 15:26:06 -06:00
Zack Cerza
f18dcf5bac Merge pull request #198 from ceph/wip-6539-wusui
Fix docstrings and minor formatting in task/ssh_keys.py
2014-02-19 15:25:33 -06:00
Zack Cerza
9f953d42e6 Merge pull request #200 from ceph/wip-6532-wusui
Fixed task/args.py docstrings.
2014-02-19 15:23:37 -06:00
Zack Cerza
10fee0e368 Revert "Show hostname instead of IP in errors"
This reverts commit eafeece243.

I was having problems with my newly-created devstack task hanging
inexplicably. It turns out this commit was responsible.
2014-02-19 13:20:52 -06:00
Ken Dreyer
f0bfff1192 add jenkins-pull-requests-build script
Move our Jenkins pull requests build script out of Jenkins' database and
into Git so that we can have greater visibility on future changes.

Going forward, we will modify the teuthology-pull-requests Jenkins task
to only run this script.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
2014-02-19 10:56:59 -07:00
Samuel Just
2718dbc3b5 radosbench: simplify pool creation and add ec_pool support
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-02-18 13:19:52 -08:00
Samuel Just
e371565251 task/: add ec_pool and append to rados.py
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-02-18 13:19:52 -08:00
Alfredo Deza
4c930a0ac7 Revert "Capture stderr and include in CommandFailedError"
This reverts commit d0a4349231.
2014-02-18 09:47:09 -05:00
Sage Weil
c93f14f24b filestore_idempotent: filestore -> objectstore path change
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-18 04:54:12 -08:00
Sage Weil
3d0ce6936d thrashosds: allow primary-affinity thrashing to be disabled
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-17 13:16:42 -08:00
Sage Weil
63ad9aaba0 thrashosds: randomly adjust primary_affinity
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-15 20:01:51 -08:00
Sage Weil
dc95aef24b ceph.conf: mon osd allow primary affinity = true
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-15 20:01:48 -08:00
Warren Usui
64ff4ab0cb Fixed task/args.py docstrings. 2014-02-14 17:28:38 -08:00
Warren Usui
c631190a76 Add docstrings. Fix formatting issues for rgw.py
Fix s3tests calls for rgw-logsocket.py.

Fixes: 6540
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-14 17:08:28 -08:00
Warren Usui
6df622b353 Fix docstrings and minor formatting in task/ssh_keys.py
Fixes: 6539
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-14 15:48:38 -08:00
Warren Usui
0af08071ac Fix docstrings for task/blktrace.py, peering_speed_test.py, proc_thrasher.py and
recovery_bench.py.

Fixes: 6535
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-14 15:13:01 -08:00
Warren Usui
ef97f0cda4 Fix docstrings in radosgw-admin-rest.py
Fixes: 6541
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-14 13:57:03 -08:00
Zack Cerza
4015d61491 Merge pull request #188 from ceph/wip-calamari-onefile
Add Calamari test tasks, test script
2014-02-14 14:59:04 -06:00