Eldar Nugaev
4479d90457
migration gateway_v6 to network_info
2011-03-24 00:36:07 +03:00
termie
1d8ad8e4f0
fix utils.execute retries for osx
...
also some minor misc cleanups
2011-03-23 13:39:01 -07:00
Josh Kearney
381fb5a45f
Automatically unrescue instances after a given timeout
2011-03-23 14:41:35 -05:00
Justin Santa Barbara
dde571d828
Merged with lp:nova
2011-03-22 22:53:08 -07:00
Rick Harris
d7c78c1e33
Filtering images by user_id now
2011-03-23 05:50:53 +00:00
Justin Santa Barbara
2ce440710a
Added space in between # and TODO in #TODO
2011-03-22 22:45:15 -07:00
Justin Santa Barbara
22f8c4bc09
Renamed check_instance -> check_isinstance to make intent clearer
2011-03-22 21:42:17 -07:00
Rick Harris
81b0ddae13
Pep8 fix
2011-03-22 20:34:00 +00:00
Rick Harris
57305d359c
Merging trunk
2011-03-22 20:29:04 +00:00
Rick Harris
9df38186ed
Adding BASE_IMAGE_ATTRS to ImageService
2011-03-22 20:26:45 +00:00
Soren Hansen
dadab7447f
Remove unused global semaphore.
2011-03-22 17:13:48 +01:00
Soren Hansen
37d85f5f70
Make synchronized decorator not leak semaphores, at the expense of not being truly thread safe (but safe enough for Eventlet style green threads).
2011-03-22 14:14:47 +01:00
Soren Hansen
4e869357cc
Make synchronized support both external (file based) locks as well as internal (semaphore based) locks. Attempt to make it native thread safe at the expense of never cleaning up semaphores.
2011-03-22 10:35:43 +01:00
Soren Hansen
e518c9215f
Make utils.execute not overwrite std{in,out,err} args to Popen on retries.
...
Make utils.execute reject unknown kwargs.
Add a couple of unit tests for utils.execute.
2011-03-17 21:11:58 +00:00
Josh Kearney
78336a3036
Log the use of utils.synchronized.
2011-03-16 20:36:22 +00:00
Mark Washenberger
bab11ecf59
merge lp:nova and resolve conflicts
2011-03-16 15:16:16 -04:00
Josh Kearney
ce04dd9acb
Add logging to lock check
2011-03-15 16:21:22 -05:00
Justin Santa Barbara
32fccf2f6c
Use random.SystemRandom for easy secure randoms, configurable symbol set by default including mixed-case
2011-03-15 11:24:07 -07:00
Justin Santa Barbara
e87eb81b36
Clarify the logic in using 32 symbols
2011-03-14 21:01:48 -07:00
Justin Santa Barbara
49c6dd3add
Don't generate insecure passwords where it's easy to use urandom instead
2011-03-14 20:48:33 -07:00
Justin Santa Barbara
371d36e6cf
Initial implementation of refresh instance states
2011-03-14 14:17:58 -07:00
Trey Morris
398667d712
committing to share
2011-03-14 13:32:22 -05:00
Soren Hansen
01aea80deb
Make utils.execute not overwrite std{in,out,err} args to Popen on retries.
...
Make utils.execute reject unknown kwargs.
Add a couple of unit tests for utils.execute.
2011-03-14 10:46:26 +01:00
Mark Washenberger
26c4a6881e
merge lp:nova
2011-03-10 17:41:57 -05:00
Soren Hansen
d863a7ad4e
PEP8
2011-03-10 21:31:47 +01:00
Mark Washenberger
70c134417e
merge, resolve conflicts, and update to reflect new standard deserialization function signature
2011-03-09 17:46:07 -05:00
Soren Hansen
11fc20952b
Merge trunk
2011-03-09 23:39:12 +01:00
Eric Windisch
ad60a15d24
Fixes bug 726359. Passes unit tests.
...
Changes parameters of utils.execute to utils.execute(*cmd, **kwargs). The kwargs themselves have not changed, other than changing check_exit_code to default to 0. The exit code of the process is now checked against this variable, unless None.
2011-03-09 22:00:12 +00:00
Mark Washenberger
0589292ba1
merge lp:nova and resolve conflicts
2011-03-09 16:32:06 -05:00
Eric Windisch
dd7d0851c7
execvp passes pep8
2011-03-09 15:33:20 -05:00
Eric Windisch
78e5d170d2
Fixes uses of process_input
2011-03-09 14:31:23 -05:00
Eric Windisch
e5c44ceb5b
execvp: unit tests pass
2011-03-09 01:26:53 -05:00
Eric Windisch
cb5e30169a
execvp: almost passes tests
2011-03-09 00:30:05 -05:00
Eric Windisch
8f536eb0b2
execvp
2011-03-08 01:01:41 -05:00
Soren Hansen
75303753c5
Log failed command execution if there are more retry attempts left.
2011-03-07 21:54:25 +01:00
Mark Washenberger
8c3a37850b
remove ensure_b64_encoding
2011-03-04 01:36:29 -05:00
Soren Hansen
09921de809
Merge sync branch.
2011-03-01 20:54:51 +01:00
Soren Hansen
92b3bc7eb5
Use functools.wraps to make sure wrapped method's metadata (docstring and name) doesn't get mangled.
2011-03-01 20:49:46 +01:00
Soren Hansen
8ee08b7004
Merge lock_path change.
2011-02-28 23:31:38 +01:00
Soren Hansen
cd88900eac
Add a lock_path flag for lock files.
2011-02-28 23:31:09 +01:00
Soren Hansen
ab96d42761
Merge sync branch.
2011-02-28 15:28:49 +01:00
Soren Hansen
7fa0e33a9b
Add utils.synchronized decorator to allow for synchronising method entrance across multiple workers on the same host.
2011-02-28 12:37:02 +01:00
Eric Windisch
9295d2261e
execute: shell=True removed.
2011-02-27 20:28:04 -05:00
Justin Santa Barbara
bbcb2b70fd
Helper function that supports XPath style selectors to traverse an object tree e.g.
...
inst = {'fixed_ip': {'floating_ips': [{'address': '1.2.3.4'}], 'address': '192.168.0.3'}, 'hostname': ''}
private_ips = get_from_path(inst, 'fixed_ip/address')
public_ips = get_from_path(inst, 'fixed_ip/floating_ips/address')
Avoids messy [.get() / if / for]* nested code
2011-02-23 22:50:33 +00:00
Justin Santa Barbara
c30a317f52
Rename minixpath_select to get_from_path
2011-02-23 14:07:08 -08:00
Justin Santa Barbara
ffc8941955
Cope when we pass a non-list to xpath_select - wrap it in a list
2011-02-23 12:36:09 -08:00
Justin Santa Barbara
2a8b3a5d5c
Created mini XPath implementation, to simplify mapping logic
2011-02-23 12:05:49 -08:00
Soren Hansen
dbfd17c261
Merge trunk
2011-02-22 11:40:57 +01:00
Vishvananda Ishaya
79ced5857d
switch to explicit call to logging.setup()
2011-02-21 13:46:41 -08:00
Soren Hansen
24d9a9c766
PEP-8 fixes
2011-02-21 14:16:42 +01:00