Zack Cerza
734580d546
Minor fix for vps-only locks
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-03 15:13:02 -06:00
Zack Cerza
621a766371
Query arch in lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-01 17:14:59 -06:00
Zack Cerza
86e934ef25
Query os_type and os_version in lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Zack Cerza
7781d7f845
Allow mixing of bare-metal machine_types
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-26 12:59:01 -06:00
Zack Cerza
febc087f44
Revert "Add os_type and os_version args to lock_many()"
...
This reverts commit f39b6958c4
.
2014-09-25 15:22:00 -06:00
Dan Mick
5c83109fbb
lock.py: Log failing os-version if it doesn't validate
...
Fixes : #9597
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-09-25 13:56:45 -07:00
Zack Cerza
f39b6958c4
Add os_type and os_version args to lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-25 09:46:07 -06:00
Zack Cerza
a6ce70d052
Merge pull request #334 from ceph/wip-9519-wusui
...
Handle list-json downburst failure.
2014-09-19 11:19:27 -06:00
Warren Usui
e37afbb65b
Handle list-json downburst failure.
...
Use check_output instead of Popen and communicate()
Fixes : #9519
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-09-18 16:52:31 -07:00
Zack Cerza
d6515e2c12
Rewrite teuthology-updatekeys
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-18 12:45:51 -06:00
Zack Cerza
6f5296d40c
Merge pull request #297 from ceph/wip-8712-wusui
...
Check os-type and os-version for vps
2014-09-15 10:57:25 -06:00
Zack Cerza
33f8f08ef1
Add lock.update_inventory()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Warren Usui
50e13e0403
Check os-type and os-version for vps
...
Fixes: 8712
Signed-off-by: Warren Usui warren.usui@inktank.com
2014-09-10 11:00:09 -07:00
Zack Cerza
01d35c1b64
Remove unnecessary filter in do_update_keys()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-08 14:53:07 -06:00
Zack Cerza
2564ef7028
Don't explode on ConnectionError in list_locks()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-27 14:01:16 -06:00
Zack Cerza
8a87a422ca
Only pass lists to ssh_keyscan()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-27 12:05:19 -06:00
Zack Cerza
7ad4e91a25
More hostname normalization
...
This time, for ssh_keyscan()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-27 11:32:39 -06:00
Zack Cerza
4d44c82353
Normalize input hostnames in various functions
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-27 09:31:52 -06:00
Dan Mick
093a1b6937
lock.py: sort --brief output by status['name']
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-08-26 14:25:02 -07:00
Zack Cerza
883c97de4f
Fix a linter error
...
Wasn't much of a bug, but still.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 11:47:48 -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
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
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
29e8deefae
Canonicalize hostnames
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-25 13:02:04 -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
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
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
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
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
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
Warren Usui
b7a7383d75
Allow .teuthology.yaml to set downburst path
...
If .teuthology.yaml defines downburst, _get_downburst_exec()
now returns that value as the path to the downburst executable.
Also cleaned up code in create_if_vm. ctx.downburst_conf was
never defined, so the code that handled the AttributeError
was always being executed.
Fixes: 6921
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-05-09 17:20:26 -07:00
Sandon Van Ness
9078513c0b
Fix for #8115
...
Increase boot disk size per #8115 where monitors shut down due to
/ being full on vm machines.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-04-22 12:35:11 -07:00