Commit Graph

2800 Commits

Author SHA1 Message Date
Zack Cerza
8bce6c5f3e Fix module reference
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 11:43:45 -06:00
Zack Cerza
eafe91994e Hostname handling for updatekeys
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 11:19:32 -06:00
Zack Cerza
479b224931 Exit with code already returned by lock.main()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:39:33 -06:00
Zack Cerza
b1a9ac1771 Less dangerous hostname mangling
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:35:46 -06:00
Zack Cerza
1637d3b45f Fix --unlock
Note to self: clean up user/ctx.owner confusion

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:32:36 -06:00
Zack Cerza
4efb490892 Return old-style hostnames from lock_many()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:23:03 -06:00
Zack Cerza
02ca2f0571 Don't "import misc as teuthology"
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:21:24 -06:00
Zack Cerza
52a937604f Merge pull request #318 from ceph/wip-defaults
change defaults for mira,plana,burnupi
2014-08-25 16:11:25 -06:00
Zack Cerza
85f5945509 More hostname handling fixes
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 15:08:11 -06:00
Zack Cerza
3d4dc732bb Revert "Canonicalize hostnames"
This reverts commit 29e8deefae.
2014-08-25 14:40:40 -06:00
Zack Cerza
ad278fdc71 Remove the 'user@' prefix before checking status
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 14:07:29 -06:00
Zack Cerza
d3c420a017 Allow passing user=None to remove the 'user@'
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 14:04:32 -06:00
Zack Cerza
01cf78567d Fix canonicalize_hostname()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 13:50:52 -06:00
Zack Cerza
1bf293ef5d Remove unused import
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 13:50:52 -06:00
Zack Cerza
877812650c Canonicalize hostnames in yet another place
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 13:31:25 -06:00
Sage Weil
8707efeb2a suite: scheule in mira,burnupi,plana by deafult
(was plana)

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-25 12:25:48 -07:00
Sage Weil
82b8f3037c teuthology-queue: list multi queue by default
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-25 12:25:37 -07:00
Zack Cerza
29e8deefae Canonicalize hostnames
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 13:02:04 -06:00
Zack Cerza
9ac40cc72a Use new vm_host attribute
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:39 -06:00
Zack Cerza
92157d2b78 Don't dump all vm_host details when listing
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:39 -06:00
Zack Cerza
213bdc8b86 Reflect updated field names
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:39 -06:00
Zack Cerza
f5a6ed3b7a Update provision module to use new lock server
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
b8cb0890a2 Use Remote.shortname instead of regex
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
4eda1d3273 Add unlock_many() and use it when possible
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
e6e393239b Update internal task to use new lockserver
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
b9d7a9dec0 Make far less requests when simply locking
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
40c1ee0442 Optimize some list_locks() calls
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
e0aca2e6d7 Properly query for multiple machine types
...in list_locks()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
fb96923304 Use consistent URI for lock server
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
24efd83dfc Remove old lock server
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
c406985268 Change default lock server to paddles
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
aef78f4b3d Use /nodes/ as the lock server endpoint
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:38 -06:00
Zack Cerza
96b0a1c026 Update to use new ssh-keyscan API
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
b170345bda Rewrite ssh public key updating
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
1c04c7aff3 Use new ssh_keyscan() function
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
5e5c32ef79 No need to be passing ctx to update_lock()
... or update_keys() or scan_for_locks()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
8048dc348c Add new ssh_keyscan() method
This is just a cleaner implementation that will replace the existing
one(s).

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
1d1697213f Re-order functions in module
This is for readability.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
0f772222a4 keyscan_check(): don't require ctx to be passed
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
bdc9e6e8c9 Update lock_many(), update_lock(), and main()
Also remove lockstatus.send_request()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
f5f1115881 Fix PEP-8 issues
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
53a2c2f2d5 Refactoring
Create a new teuthology.provision module and move virtual machine
functions there. Move hostname manipulation functions to
teuthology.misc.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
af2a03a8a5 Update do_summary()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:37 -06:00
Zack Cerza
533a5c5d8c Rewrite list_locks()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:36 -06:00
Zack Cerza
121fd02671 Make (de)canonicalize_hostname() work without user
Add tests proving they still work *with* usernames as well.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:36 -06:00
Zack Cerza
fe4bf33262 Add unit tests for (de)canonicalize_hostname()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:36 -06:00
Zack Cerza
04b319d847 Update/rewrite several functions to use paddles
Functions updated: lock.lock_one(), lock.unlock_one(),
lock.destroy_if_vm(), lockstatus.get_status()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 11:14:36 -06:00
Loic Dachary
8de60d3ef2 convert nuke-on-error to boolean
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-25 18:14:04 +02:00
Sage Weil
692e5a1db9 ceph.conf: mon reweight min pgs per osd = 4
So teh cephtool reweight-by-pg test will pass with mini clusters.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-22 15:14:58 -07:00
John Spray
9238c01b2f daemon: add DaemonGroup.resolve_role_list
Used for tasks that want to take a flexible list
of roles from their user config, including a
null (everything) default and * wildcards.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-08-22 00:51:37 +01:00