Dan Mick
a3c1122658
teuthology-lock --summary: allow --machine-type=all
...
Somehow this got lost; putting it back
Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit e4eb4aa23b
)
2013-06-10 14:10:52 -07:00
Warren Usui
d034e17a11
Merge branch 'wip-teuthVm-wusui'
2013-06-10 09:46:42 -07:00
Warren Usui
a4994e3bde
Support added for running scheduled tasks on virtual machines.
...
This included:
A). changes made so that full path names on some files were used
(scheduled tasks started in different home directories).
B.) Changes to insure tasks come up on the beanstalkc queue properly,
C.) Finding and inserting the libvirt eqivalent code for vm machines
in order to simulate ipmi actions,
D.) Fix host key code, report valgrind issue more clearly.
E.) Some message and downburst call changes.
Fix #4988
Fix #5122
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-07 19:32:15 -07:00
Dan Mick
e4eb4aa23b
teuthology-lock --summary: allow --machine-type=all
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-04 17:46:05 -07:00
Warren Usui
a12464f7db
Do not scan for vm locks when listing all machines.
...
Fixes : #4830
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-10 17:33:31 -07:00
Warren Usui
01d2e1593a
For vms, fix some bad default configuration settings.
...
Fixes : #4881
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-01 15:18:52 -07:00
Warren Usui
a0acdcf380
Use get('field', default) to assign downburst values for vps.
...
Fixes : #4592
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed by: Dan Mick <dan.mick@inktank.com>
2013-04-25 12:49:09 -07:00
Warren Usui
fd750da993
Add changes to make teuthology suites work on vms.
...
Fixes : #4719
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed by: Dan Mick <dan.mick@inktank.com>
2013-04-23 18:10:29 -07:00
Warren Usui
b7aaa1982c
Check downburst paths. Display an appropriate error message if an
...
executable downburst cannot be found.
Fixes : #4693
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed by: Dan Mick <dan.mick@inktank.com>
2013-04-23 16:28:38 -07:00
Sam Lang
a6b84a5613
lock: Fix import cycle breakage
...
fa2049f
caused an import cycle between lock.py and misc.py. Move the
needed functions from lock.py to lockstatus.py so that we can avoid the
import cycle.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-04-12 12:57:33 -05:00
Warren Usui
8129bffb17
Implement full reinstallation of a VM system.
...
Downburst create is used to reinstall a VM when it is locked.
Downburst destroy is used to remove a VM when it is unlocked.
Host keys are regenerated on each vm instantiation, so the keys
need to be checked prior to use.
If needed, qa-ceph-chef is run on newly installed systems to insure that
they are fully functional.
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-04-03 12:29:47 -07:00
Sage Weil
0b72c8dbd2
lock: pass desc to lock operation; leave on unlock
...
Pass the desc to the lock operation.
The unlock operation now clears desc for us; no need to do it outselves.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-25 16:47:02 -07:00
Dan Mick
e7cd598e60
lock: make do_summary() respect --machine-type
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-03-20 18:31:11 -07:00
Sage Weil
fd1e083c61
lock: tolerate description of None
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-12 19:50:07 -07:00
Josh Durgin
cef6e5d5e9
lock: remove description when unlocking
...
This will hopefully make it easier to track down what's leaving nodes unlocked.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-03-07 09:40:29 -08:00
Sage Weil
4869b494c9
lock: allow filtering by description, description substring
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sandon Van Ness
75d86e47fd
Made teuthology-lock --summary machine type aware.
...
Signed-off-by: Sandon Van Ness <sandon@van-ness.com>
2013-02-07 16:06:21 -08:00
Sandon Van Ness
030bc7c23d
Added support for multiple types of machines.
...
Added the ability to support multiple types of machines with
--machine-type added to teuthology-lock when used with --lock-many
or --machine-type with teuthology --lock (automated tests). It
defaults to 'plana' and the 'vps' type is currently unused but
should be in the future.
Signed-off-by: Sandon Van Ness <sandon@van-ness.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-07 13:26:37 -08:00
Sage Weil
ff0f4742fe
set machine description to ctx.archive when auto-locking machines for a run
2012-07-16 10:53:25 -07:00
tamil
353d9ccfe5
fixed typo
...
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-07-12 16:36:40 -07:00
Dan Mick
03597ca6b9
Check for machine args based on local, not ctx.machines
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-06-21 14:33:20 -07:00
Dan Mick
4fa665c19d
--summary: add total counts, also note free machines
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-06-07 13:50:51 -07:00
Dan Mick
44374bc4fb
new variable lock hid lock() function
2012-06-06 20:29:28 -07:00
Dan Mick
9313cdea97
teuthology-lock: add --summary and --brief options
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-06-06 18:54:33 -07:00
Dan Mick
fac88a4096
More shortnames fixes:
...
- Allow shortnames in teuthology-updatekeys as well
- Use list comprehensions instead of map()
2012-06-05 18:40:49 -07:00
Dan Mick
044697d178
Allow short names to teuthology-lock (e.g. "plana14")
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
2012-06-04 17:50:07 -07:00
Mark Nelson
31762c0003
lock: Improved logging when there aren't enough nodes available to lock-many.
2012-03-07 12:55:54 -08:00
Mark Nelson
05a07dda7d
lock: Added a --locked flag to teuthology-lock.
...
Can be used to restrict searches based on lock status, e.g.
'teuthology-lock --list -a --locked false --status up' shows available nodes.
2012-03-07 12:55:33 -08:00
Josh Durgin
8f2ef43b9e
lock: default to only listing machines you have locked
...
--all removes this restriction
2011-09-02 19:12:16 -07:00
Sage Weil
c2c5ac0c54
lock: --list-targets: list locks and dump result in targets: yaml format.
2011-08-24 10:03:43 -07:00
Josh Durgin
c7b62feac8
teuthology-lock: update usage
2011-08-02 16:15:57 -07:00
Josh Durgin
cd04423541
teuthology-lock: allow list of locks to be filtered by owner and status
2011-08-02 15:56:14 -07:00
Josh Durgin
629187f302
Set content-type with PUT.
2011-07-19 18:34:42 -07:00
Josh Durgin
8d196b001c
Make targets a dictionary mapping hosts to ssh host keys.
2011-07-19 17:13:13 -07:00
Josh Durgin
e5f33ca5b5
Add command to update ssh hostkeys.
2011-07-19 17:13:13 -07:00
Josh Durgin
5fadb1c11c
Whitespace and style cleanup.
2011-07-11 18:07:37 -07:00
Josh Durgin
c53615ce67
Remove unused variable.
2011-07-11 18:00:12 -07:00
Sage Weil
c47dc179e7
lock: specify machines as input yaml targets: clause
2011-07-11 15:28:15 -07:00
Sage Weil
1767b21e79
print --lock-many result as yaml targets: stanza
2011-07-11 15:28:15 -07:00
Josh Durgin
f14b4e19ce
Check more invalid argument combinations for teuthology-lock.
2011-07-07 14:56:12 -07:00
Josh Durgin
a55d2eb53a
Read lock server from ~/teuthology.yaml.
2011-07-07 12:35:11 -07:00
Josh Durgin
4d62dd3bcc
Add command line tool for locking machines.
2011-07-07 12:35:08 -07:00