Commit Graph

1259 Commits

Author SHA1 Message Date
Soren Hansen ea33870fd0 nova-api-new is no more. Don't attempt to install it. 2010-09-24 10:19:28 +02:00
Michael Gundlach cb311a3deb Put EC2 API -> eventlet back into trunk, fixing the bits that I missed when I put it into trunk on 9/21.
Note that some of this got into trunk via r291 accidentally because r291 was a branch based off of the trunk that was reverted on 9/22.
2010-09-23 21:18:12 +00:00
Michael Gundlach 203cd3f34c Merge vishy's patch: admin-user-not-admin-role 2010-09-23 17:06:46 -04:00
Michael Gundlach a70632890c Apply vish's patch 2010-09-23 17:06:23 -04:00
Michael Gundlach 4846b63a86 Merge lp:~eday/nova/endpoint-cleanup 2010-09-23 16:21:02 -04:00
Eric Day 2b30ffe2f3 Applied vish's fixes. 2010-09-23 13:18:40 -07:00
mdietz 2b2313d5c2 Implementation of Rackspace token based authentication for the Openstack API.
This is a re-proposal of a merge earlier that was failing to merge no matter what I tried, so this is the next option in a series of failures. All tests pass locally.
2010-09-23 20:13:23 +00:00
mdietz fc5d09f4d2 Merge fix from Soren 2010-09-23 19:31:17 +00:00
Eric Day a6954efa31 Fixed rpc consumer to use unique return connection to prevent overlap. This could be reworked to share a connection, but it should be a wait operation and not a fast poll like it was before. We could also keep a cache of opened connections to be used between requests. 2010-09-23 11:56:44 -07:00
mdietz ca854c764a Re-added the ramdisk line I accidentally removed 2010-09-23 18:29:40 +00:00
mdietz 020f1a304c Added a primary_key to AuthToken, fixed some unbound variables, and now all unit tests pass 2010-09-23 18:29:17 +00:00
mdietz 94b9d491d4 Missed the model include, and fixed a broken test after the merge 2010-09-23 18:28:49 +00:00
mdietz 301b4a5834 Some more refactoring and another unit test 2010-09-23 18:28:15 +00:00
mdietz 0b45eea603 Refactored the auth branch based on review feedback 2010-09-23 18:27:56 +00:00
mdietz 4960342b47 Replaced the existing Rackspace Auth Mechanism with one that mirrors the implementation in the design document. 2010-09-23 18:26:06 +00:00
Eric Day 6460a2e9f8 Merged gundlach's branch. 2010-09-23 11:24:26 -07:00
Eric Day c9ac49b242 Fixed cloudpipe lib init. 2010-09-23 11:21:14 -07:00
Soren Hansen 421d7a90ea When calculating timedeltas make sure both timestamps are in UTC.
For people ahead of UTC, it makes the scheduler unit tests pass.
For people behind UTC, it makes their services time out after 60 seconds without a heart beat rather than X hours and 60 seconds without a heart beat (where X is the number of hours they're behind UTC).
2010-09-23 17:33:17 +00:00
Michael Gundlach c29c68f0fa Merge lp:~gundlach/nova/rbac_tests_rewrite 2010-09-23 10:45:21 -04:00
Michael Gundlach be28879156 Merge lp:~gundlach/nova/missing_ec2_url_endpoints 2010-09-23 10:31:06 -04:00
Michael Gundlach 9066931858 Spot-fix endpoint reference 2010-09-23 10:19:27 -04:00
Michael Gundlach 7aae55db90 Merge lp:~soren/nova/nova-api-new-daemonize 2010-09-23 10:05:49 -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
Michael Gundlach d98c663d3e Added FLAGS.FAKE_subdomain letting you manually set the subdomain for testing on localhost. 2010-09-23 09:06:45 -04:00
Soren Hansen 08622cb48c All timestamps should be in UTC. Without this patch, the scheduler unit tests fail for anyone sufficiently East of Greenwich. 2010-09-23 04:24:54 -05:00
Soren Hansen 378970b149 Compare project_id to '' using == (equality) rather than 'is' (identity). This is needed because '' isn't the same as u''. 2010-09-23 11:06:49 +02: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
Michael Gundlach f188b5a02d Re-add root and metadata request handlers to EC2 API 2010-09-22 19:11:04 -04:00
mdietz 9e12753508 Re-added the ramdisk line I accidentally removed 2010-09-22 21:57:34 +00:00
Michael Gundlach 6f82d0f84c Soren's patch to fix part of ec2 2010-09-22 17:35:02 -04:00
Michael Gundlach f3f271644e Responding to eday's feedback -- make a clearer inner wsgi app 2010-09-22 15:57:24 -04:00
mdietz a8c5901faa Added a primary_key to AuthToken, fixed some unbound variables, and now all unit tests pass 2010-09-22 18:46:55 +00:00
mdietz d3e090f15d merge from trunk 2010-09-22 18:33:05 +00:00
Michael Gundlach ffa426d68b Reenable access_unittest now that it works with new rbac 2010-09-21 16:58:08 -04:00
Michael Gundlach 84fbfe09e1 Rewrite rbac tests to use Authorizer middleware 2010-09-21 16:57:08 -04:00
Cerberus 7a19f6f397 Missed the model include, and fixed a broke test after the merge 2010-09-21 15:46:19 -05:00
Michael Gundlach d6104d8302 Delete nova.endpoint module, which used Tornado to serve up the Amazon EC2 API.
Replace it with nova.api.ec2 module, which serves up the same API via a WSGI app in Eventlet.
Convert relevant unit tests from Twisted to eventlet.

The unit tests now pass using eventlet 0.9.12 -- you'll need to 'pip install -U eventlet' or rebuild your venv.

Note that I tried to do this in discrete commits, so you may find it easier to look at each small diff than to try to grok the whole merge diff.
2010-09-21 19:13:05 +00:00
Michael Gundlach b82a9e3d3c Remove eventlet test, now that eventlet 0.9.10 has indeed been replaced by 0.9.12 per mtaylor 2010-09-21 15:00:43 -04:00
Michael Gundlach e027342cc6 In desperation, I'm raising eventlet.__version__ so I can see why the trunk tests are failing. 2010-09-21 14:34:40 -04:00
Michael Gundlach dff6c134cb Fix quota unittest and don't run rbac unit tests for the moment 2010-09-21 14:00:17 -04:00
Cerberus 7ca8989020 Merge from trunk and resolving merge conflicts 2010-09-21 11:02:33 -05:00
Michael Gundlach bbf17139fc Merge from trunk 2010-09-21 12:00:44 -04:00
Cerberus 0880e49a4e Some more refactoring and another unit test 2010-09-21 10:07:59 -05:00
Vishvananda Ishaya ce0a9b7b36 Implements quotas with overrides for instances, volumes, and floating ips. 2010-09-21 13:48:25 +00:00
Vishvananda Ishaya 4e727faf45 Moves keypairs out of ldap and into the common datastore. 2010-09-21 05:08:31 +00:00
Vishvananda Ishaya 8a841dd6d5 Fixes server error on get metadata when instances are started without keypairs. 2010-09-21 04:23:48 +00:00
Todd Willey bc09d0e99c allows api servers to have a list of regions, allowing multi-cluster support if you have a shared image store and user database. 2010-09-21 04:08:25 +00:00
Todd Willey ce1a8086f7 Don't use something the shell will escape as a separator. | is now =. 2010-09-20 23:56:17 -04:00
Vishvananda Ishaya 8e3508e010 Added modify project command to auth manager to allow changing of project manager and description. 2010-09-21 03:53:46 +00:00