Commit Graph

2706 Commits

Author SHA1 Message Date
Todd Willey 40de3b9ffb Uses paste.deploy to make application running configurable. This includes the ability to swap out middlewares, define new endpoints, and generally move away from having code to build wsgi routers and middleware chains into a configurable, extensible method for running wsgi servers. 2011-01-03 19:54:39 +00:00
Ryan Lucio 6fc9fdc57c Adds the pool_recycle option to the sql engine startup call. This enables connection auto-timeout so that connection pooling will work properly. The recommended setting (per sqlalchemy FAQ page) has been provided as a default for a new configuration flag. What this means is that if a db connection sits idle for the configured # of seconds, the engine will automatically close the connection and return it to the available thread pool. See Bug #690314 for info.
The fix was tested and verified on multi-node deployments of Austin and Bexar with MySQL, and it was also verified that the change does not affect sqlite users (dev environment testing only).
2011-01-03 19:49:45 +00:00
Todd Willey 3a54315765 Add burnin support. Services are now by default disabled, but can have instances and volumes run on them using availability_zone = nova:HOSTNAME. This lets the hardware be put through its paces without being put in the generally available pool of hardware. There is a 'service' subcommand for nova-manage where you can enable, disable, and list statuses of services. 2011-01-03 19:44:26 +00:00
Todd Willey b9fda9cfdb pep8 fixes 2011-01-03 14:29:39 -05:00
Ryan Lucio 5fd9ff898b removed extra whitespace chars at the end of the changed lines 2011-01-03 10:55:52 -08:00
Cory Wright 8543aba27a Several documentation corrections and formatting fixes. 2011-01-03 18:14:19 +00:00
Cory Wright 5d8c5c9cf0 merge trunk 2011-01-03 10:09:58 -05:00
Eric Day 0e88a58cf9 Ignore CA/crl.pem 2010-12-31 11:39:14 +00:00
Eric Day 3d6c193fb7 Ignore CA/crl.pem 2010-12-30 20:03:21 -08:00
Cerberus 03a45dc892 Auth Tokens assumed the user_id was an int, not a string. 2010-12-31 02:04:39 +00:00
Josh Kearney 4039bec5aa Make InstanceActions and live diagnostics available through the Admin API. 2010-12-31 01:19:46 +00:00
Josh Kearney ffaf32b9ac Cleanup 2010-12-30 19:07:20 -06:00
Josh Kearney f55991c014 Improved test 2010-12-30 18:56:12 -06:00
Ryan Lucio 7f27f62e41 Converted the pool_recycle setting to be a flag with a default of 3600 seconds 2010-12-30 16:21:11 -08:00
Josh Kearney e453e2761d Removed problematic test 2010-12-30 18:12:10 -06:00
Josh Kearney d1129fa4b1 Oopsies 2010-12-30 17:02:16 -06:00
Cory Wright e8e460c8b4 merge trunk 2010-12-30 17:43:37 -05:00
Josh Kearney d89b3a4b5c Make compute.api methods verbs 2010-12-30 16:27:31 -06:00
Cerberus 5c34edb3fc Fail 2010-12-30 16:13:42 -06:00
Josh Kearney 00abbb4401 Review feedback 2010-12-30 16:06:48 -06:00
termie 3bace9ab20 Cleans up the output of run_tests.sh to look closer to Trial.
Example output:

VolumeTestCase
    test_concurrent_volumes_get_different_targets               ok
    test_create_delete_volume                                   ok
    test_multi_node                                             ok
    test_run_attach_detach_volume                               ok
    test_too_big_volume                                         ok
    test_too_many_volumes                                       ok
XenAPIVMTestCase
    test_list_instances_0                                       ok
    test_spawn                                                  ok
XenAPIVolumeTestCase
    test_attach_volume                                          ok
    test_attach_volume_raise_exception                          ok
    test_create_iscsi_storage                                   ok
    test_parse_volume_info_raise_exception                      ok

----------------------------------------------------------------------
Ran 232 tests in 82.677s

Launchpad is removing a bunch of spaces from the output, but the 'ok' parts are all lined up in the 65th column
2010-12-30 22:04:29 +00:00
termie 384da35986 change exit code 2010-12-30 13:31:56 -08:00
Josh Kearney c107e96c2a Merged trunk 2010-12-30 15:23:14 -06:00
Josh Kearney 42f6a993bc Implemented review feedback 2010-12-30 15:13:32 -06:00
Rick Harris ac6fd2290f This patch is beginning of XenServer snapshots in nova. It adds:
1. A snapshot() method to the compute API
2. Snapshot to the compute drivers(), stubs for libvirt and fake, and an implementation for xenapi_conn.
3. A `glance` XenServer plugin (modeled after the current `objectstore` plugin).

To test functionally you will need to be running both the Glance API and the Glance Registry.

In order to use the cloudservers tool-chain (cloudservers command-line utility, openstack-api, etc), you will need create a project called 'openstack' or override FLAGS.default_project.

You can verify that snapshots work by using the cloudservers command-line utility to run:
    cloudservers image-create <instance-id> <my snapshot name>

The utility itself will generate an exception since we're not returning the appropriate metadata yet (that will be a future commit); however, you can confirm that the snapshot worked by checking the compute-service logs, and verifying the snapshot resides in the glance fs-store directory.
2010-12-30 21:09:27 +00:00
Josh Kearney 44c83db613 Merged trunk 2010-12-30 15:02:34 -06:00
Rick Harris 601b19291a Calling compute api directly from OpenStack image create 2010-12-30 14:09:16 -06:00
Cory Wright f5611d9fde Several documentation corrections 2010-12-30 14:23:52 -05:00
Rick Harris 2a08bed775 Merging trunk 2010-12-30 11:26:21 -06:00
Todd Willey ba31a61ae6 pep 8 2010-12-30 02:20:31 -05:00
Todd Willey aa73649911 remove cloudpipe from paste config 2010-12-30 01:25:29 -05:00
Todd Willey 5b0450d5a1 Clean up how we determine IP to bind to. 2010-12-30 01:19:38 -05:00
Todd Willey 0880026253 fix lp:695182, scheduler tests needed to DECLARE flag to run standalone. 2010-12-29 23:24:27 +00:00
Ryan Lucio c1acb68ef5 Add the pool_recycle setting to enable connection pooling features for the sql engine. The setting is hard-coded to 3600 seconds (one hour) per the recommendation provided on sqlalchemy's site 2010-12-29 15:04:21 -08:00
Todd Willey 903b053f7e i18n 2010-12-29 17:15:50 -05:00
Todd Willey 66a074cc74 Pep-8 cleanup. 2010-12-29 17:08:42 -05:00
Todd Willey e7be0b485e Fix scheduler testcase so it knows all flags and can run in isolation. 2010-12-29 17:01:34 -05:00
Todd Willey d88c746332 Merge trunk. 2010-12-29 15:22:37 -05:00
Todd Willey 6ba4e73192 Merge trunk. 2010-12-29 15:20:44 -05:00
Josh Kearney 5b8137b2f5 PEP8 cleanup 2010-12-29 14:15:04 -06:00
Ryan Lucio 9a84a2bb4a This branch fixes an issue where VM creation fails because of a missing flag definition for 'injected_network_template'. See Bug #695467 for more info. 2010-12-29 20:09:16 +00:00
Josh Kearney 823c5fc1ff Added tests 2010-12-29 14:02:57 -06:00
Ryan Lucio 34f5bed4d9 Re-added flag definition for injected_network_template. Tested & verified fix in the same env as the original bug. 2010-12-29 11:24:42 -08:00
Josh Kearney 65842e2448 Merged trunk 2010-12-29 11:35:49 -06:00
Rick Harris cc906e48c1 Updating Authors 2010-12-29 10:35:29 -06:00
Cerberus 90acbd3dd8 Changes and error fixes to help ensure basic parity with the Rackspace API. Some features are still missing, such as shared ip groups, and will be added in a later patch set. 2010-12-29 06:55:58 +00:00
Ewan Mellor 71be236ef4 Bug #694880: nova-compute now depends upon Cheetah even when not using libvirt
Only import Cheetah when needed, as we do already with libvirt and libxml2.  This ensures that users of other virt backends don't need Cheetah to run nova-compute.

Resubmitted with pep8 violations fixed.
2010-12-29 02:24:08 +00:00
Ewan Mellor 380b28f894 Fix pep8 violations. 2010-12-29 01:58:04 +00:00
Cerberus 99a228a8ef removed superfluous line 2010-12-28 17:34:51 -06:00
Soren Hansen b7b2760cd7 Address bug #695157 by using a blank request class and setting an empty request path.
This fixes the test suite in environments with webob >= 1.0 (e.g. Ubuntu Natty).

(Thanks for Greg Holt for the suggestion)
2010-12-28 23:09:18 +00:00