185 Commits

Author SHA1 Message Date
Vishvananda Ishaya
cbdba97b59 Fixes deprecated use of context in nova-manage network create. 2010-10-15 22:13:44 +00:00
Soren Hansen
d4d8a53003 Fix some unit tests:
* One is a race due to the polling nature of rpc in eventlet based unit tests.
 * The other is a more real problem. It was caused by datastore.py being removed. It wasn't caught earlier because the .pyc file was still around on the tarmac box.
2010-10-15 20:23:59 +00:00
Soren Hansen
203628e74a Perform a redisectomy on bin/nova-dhcpbridge. 2010-10-15 21:46:29 +02:00
Vishvananda Ishaya
6e7067f435 use context for create_networks 2010-10-15 10:08:49 -07:00
Vishvananda Ishaya
951f4f2f8b get flags for nova-manage and fix a couple more deprecations 2010-10-14 16:44:58 -07:00
Vishvananda Ishaya
af9910d935 fix context in bin files 2010-10-13 23:44:04 -07:00
Vishvananda Ishaya
3f438d0c25 merged trunk 2010-10-13 21:42:10 -07:00
Vishvananda Ishaya
dbbdebbcd1 merged trunk 2010-10-12 19:00:34 -07:00
Ewan Mellor
70b8321347 Catch exception.NotFound when getting project VPN data. 2010-10-12 14:23:24 +00:00
Ewan Mellor
3301a3de3d Add a context of None to the call to db.instance_get_all. 2010-10-04 18:14:33 +00:00
Ewan Mellor
a0498717e4 Bug #654034: nova-manage doesn't honour --verbose flag
Honour the --verbose flag by setting the logging level to DEBUG.
2010-10-03 13:17:20 +01:00
Ewan Mellor
4fa2258af9 Bug #654025: nova-manage project zip and nova-manage vpn list broken by change in DB semantics when networks are missing
Catch exception.NotFound when getting project VPN data.  This is in two places:
nova-manage as part of its vpn list command, and
auth.manager.AuthManager.get_credentials.

Also, document the behaviour of db.api.project_get_network.
2010-10-03 13:12:32 +01:00
Ewan Mellor
65e2bbc31a Bug #654023: nova-manage vpn commands broken, resulting in erroneous "Wrong number of arguments supplied" message
Add a context of None to the call to db.instance_get_all.  This is deprecated,
but it's what all the other calls in this file do, and it's better than
exploding, so it will do for now.
2010-10-03 12:41:07 +01:00
Vishvananda Ishaya
5e3da58648 Fix the deprecation warnings for passing no context.
Moved RequestContext out of nova.api, because it is used by everything

Context is passed through the queue.

Added some helper methods for converting to admin context.

Added a few more fields to request context.
2010-10-01 05:57:17 -07:00
Vishvananda Ishaya
c9d2b8bcb3 Fixed flat network manager with network index gone.
Both managers use ips created through nova manage.

Use of project_get_network is minimized to make way for managers that
would prefer to use cluste or host based ips instead of project based ips.
2010-09-30 23:04:53 -07:00
Vishvananda Ishaya
afb2923603 merged trunk 2010-09-30 20:35:09 -07:00
Todd Willey
724c15b658 Remove debuggish print statement. 2010-09-29 14:12:02 -04:00
Todd Willey
d2a4901220 Merge Trunk 2010-09-28 23:23:41 -04:00
Vishvananda Ishaya
9b7fc3e305 Fixes reversed arguments in nova-manage project environment. 2010-09-29 03:23:09 +00:00
Vishvananda Ishaya
767db3693d Adds bpython support to nova-manage shell, because it is super sexy. 2010-09-29 01:58:14 +00:00
Devin Carlen
e3102b6b9b Fixed tests 2010-09-28 18:43:36 -07:00
Devin Carlen
2327378a1e Removed str_id from FixedIp references 2010-09-28 18:38:19 -07:00
Todd Willey
08a6dc59ad Hook the AuthManger#modify_user method into nova-manage commands. 2010-09-28 15:54:05 -04:00
Vishvananda Ishaya
e4cb0d3a93 get rid of network indexes and make networks into a pool 2010-09-28 10:34:32 -07:00
Eric Day
6460a2e9f8 Merged gundlach's branch. 2010-09-23 11:24:26 -07:00
Michael Gundlach
9066931858 Spot-fix endpoint reference 2010-09-23 10:19:27 -04:00
Soren Hansen
ebf71b08ef Wrap WSGI container in server.serve to make it properly handle command line arguments as well as daemonise properly. Moved api and wsgi imports in the main() function to delay their inclusion until after python-daemon has closed all the file descriptors. Without this, eventlet's epoll fd gets opened before daemonize is called and thus its fd gets closed leading to very, very, very confusing errors. 2010-09-23 15:47:29 +02:00
Michael Gundlach
24f589d421 Apply vish's patch 2010-09-23 09:13:27 -04:00
Eric Day
54122c0a15 Various loose ends for endpoint and tornado removal cleanup, including cloudpipe API addition, rpc.call() cleanup by removing tornado ioloop, and fixing bin/* programs. Tornado still exists as part of some test cases and those should be reworked to not require it. 2010-09-22 17:54:57 -07:00
Vishvananda Ishaya
b68b73d081 typo s/an/a 2010-09-21 14:36:06 -07:00
Vishvananda Ishaya
2e258a97d7 merged trunk 2010-09-21 11:12:34 -07:00
Vishvananda Ishaya
6186634c0f bpython is amazing 2010-09-21 11:12:04 -07:00
Vishvananda Ishaya
435a78e48c merged trunk 2010-09-20 19:19:28 -07:00
Jesse Andrews
0936150221 now we can run files - thanks vish 2010-09-13 23:56:32 -07:00
Vishvananda Ishaya
86cd30b749 renamed _get_quota to get_quota and moved int(size) into quota.py 2010-09-13 01:15:35 -07:00
Jesse Andrews
c35f0961a0 add a shell to nova-manage, which respects flags (taken from django) 2010-09-13 00:06:32 -07:00
Vishvananda Ishaya
dff482e992 manage command for project quotas 2010-09-11 20:54:12 -07:00
Vishvananda Ishaya
3dbb3fa967 fixed reversed args in nova-manage project environment 2010-09-11 20:05:32 -07:00
Vishvananda Ishaya
6de809d887 merged trunk 2010-09-11 08:24:19 -07:00
Vishvananda Ishaya
fe78b3651c typo fixes, add flag to nova-dhcpbridge 2010-09-11 04:06:22 -07:00
Vishvananda Ishaya
d41ebe02fa merged trunk 2010-09-11 00:21:58 -07:00
Vishvananda Ishaya
9003fe35cf improved network error case handling for fixed ips 2010-09-11 00:16:12 -07:00
Vishvananda Ishaya
0242bc5106 merged orm and put instance in scheduling state 2010-09-10 14:27:42 -07:00
Vishvananda Ishaya
214f15b5ea dhcpbridge needed host instead of node name 2010-09-10 12:25:45 -07:00
Vishvananda Ishaya
a654c6a680 merged orm 2010-09-09 21:58:02 -07:00
Vishvananda Ishaya
4dcc4bc4b4 list command for floating ips 2010-09-09 07:53:57 -07:00
Vishvananda Ishaya
33631c21e7 floating ip commands 2010-09-09 07:47:30 -07:00
Vishvananda Ishaya
83402810be put soren's fancy path code in scheduler bin as well 2010-09-09 02:30:07 -07:00
Soren Hansen
f2a3f9a622 Make the scripts in bin/ detect if they're being run from a bzr checkout
or an extracted release tarball or whatever and adjust PYTHONPATH
accordingly.
2010-09-08 10:45:39 +02:00
Vishvananda Ishaya
b1cd5d52df updated to the new orm code 2010-09-08 00:34:20 -07:00