summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Remove network_util.NetworkHelper classJohannes Erdfelt2012-06-013-37/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XenAPI driver has the concept of helper classes. All methods have been classmethods and the classes themselves are never instantiated. As a result, they only add an extra namespace lookup and provide no value. Change-Id: Ief7d51013d8f313ca8c78cb157599858b156ac3f
* | | | | | | Merge changes I26d1adfd,If8a20501,I13d6d495Jenkins2012-06-0510-1410/+1347
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Remove volume_util.VolumeHelper class Remove vm_utils.VMHelper class Start removing unnecessary classes from XenAPI driver
| * | | | | | Remove volume_util.VolumeHelper classJohannes Erdfelt2012-06-014-303/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XenAPI driver has the concept of helper classes. All methods have been classmethods and the classes themselves are never instantiated. As a result, they only add an extra namespace lookup and provide no value. Change-Id: I26d1adfd378adc0728388185ba81fc4c71a41bdc
| * | | | | | Remove vm_utils.VMHelper classJohannes Erdfelt2012-06-017-1081/+1034
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XenAPI driver has the concept of helper classes. All methods have been classmethods and the classes themselves are never instantiated. As a result, they only add an extra namespace lookup and provide no value. Change-Id: If8a20501c9a9353359234441580552e41471722b
| * | | | | | Start removing unnecessary classes from XenAPI driverJohannes Erdfelt2012-05-314-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XenAPI driver has the concept of helper classes. All methods have been classmethods and the classes themselves are never instantiated. As a result, they only add an extra namespace lookup and provide no value. The first step is to move some functions from HelperBase to the session class where it is better suited. Change-Id: I13d6d49509052d35339a0ef132647bd61179cdd8
* | | | | | | Merge "XenAPI: Don't hardcode userdevice for VBDs"Jenkins2012-06-055-169/+158
|\| | | | | |
| * | | | | | XenAPI: Don't hardcode userdevice for VBDsJohannes Erdfelt2012-05-315-169/+158
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup and refactor the way VBDs are allocated so it's clearer what userdevice each VDI is allocated to. Also, use a dict of VDIs instead of a list since it's nonsensical to have multiple VDIs of any type and simplifies the code somewhat. Change-Id: I46d6215dbd90822970a874af66f22c9a34529a40
* | | | | | Merge "Finally ack consumed message"Jenkins2012-06-051-1/+2
|\ \ \ \ \ \
| * | | | | | Finally ack consumed messageHengqing Hu2012-06-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid bad messages fill up the queue. Change-Id: Id57ff33cfcacf698f89fa7f1020c0c887ebe14ed
* | | | | | | Merge "Use openstack.common.cfg.CONF."Jenkins2012-06-0515-46/+14
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Use openstack.common.cfg.CONF.Russell Bryant2012-06-0415-46/+14
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of blueprint common-rpc. This patch makes the rpc code use the global config object from openstack-common. Based on some recent discussions on the mailing list, this may not be the final way configuration handling is done here, but it is certainly better than the register_opts() hack that is removed by this patch. Change-Id: Id128126e0bc064a2a1c710c6bd32fb3d137dc7f6
* | | | | | Revert "blueprint <multi-process-api-service>"James E. Blair2012-06-0411-382/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e599636d09755f635604f64f17e9f56cac14575e The nova test runner is leaking processes after this change. Change-Id: Id74463d53f3b7cd749cba293619abef01499b90d
* | | | | | Merge "Eliminate a race condition on instance deletes."Jenkins2012-06-057-19/+154
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Eliminate a race condition on instance deletes.Mark Washenberger2012-05-317-19/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add constraint and equality conditions to nova.db[.sqlalchemy].api - Use host constraints to ensure the compute api doesn't simply delete an instance from the database that a compute manager has already started to run. This race condition is associated with bug #998117 Change-Id: Id74192d3e66bea073327342f57ce0f26987efd2d
* | | | | | Merge "convert virt drivers to fully dynamic loading"Jenkins2012-06-0423-236/+196
|\ \ \ \ \ \
| * | | | | | convert virt drivers to fully dynamic loadingSean Dague2012-05-3123-236/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Progress on bp:virt-driver-cleanup This series of patches converts the virt drivers to loading via importutils making it possible to add a virt driver without changing core code. It deprecates the use of connection_type in favor of a full driver name in compute_driver. Based on email thread with Vish and Jay Pipes on approaches to do this. Change-Id: I48366ec7efc7b095859988e5e6ac5a853b98b8a7
* | | | | | | Merge "Add missing import to quantum manager."Jenkins2012-06-041-0/+1
|\ \ \ \ \ \ \
| * | | | | | | Add missing import to quantum manager.Russell Bryant2012-06-011-0/+1
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a missing import of rpc to the quantum manager. rpc usage was added in d901b44fea897a038ce9a8afa32751ab79ffa210, but the import was never there. Change-Id: Id98a7034d190338c48d7e8c787b3d152cafe6353
* | | | | | | Merge "bug #1006094 correct typo in addmethod.openstackapi.rst"Jenkins2012-06-042-2/+3
|\ \ \ \ \ \ \
| * | | | | | | bug #1006094 correct typo in addmethod.openstackapi.rstdaisy-ycguo2012-06-042-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic03996357aacb6f135b95fc1e5810066b776b980
* | | | | | | | Merge "Correct use of uuid in _get_instance_volume_bdm."Jenkins2012-06-041-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Correct use of uuid in _get_instance_volume_bdm.MotoKen2012-06-041-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1007267. Change-Id: Icc3cfbef7beabebdaba88a6f81579ae784771bd2
* | | | | | | | Merge "blueprint <multi-process-api-service>"Jenkins2012-06-0412-28/+383
|\ \ \ \ \ \ \ \
| * | | | | | | | blueprint <multi-process-api-service>Zhiteng Huang2012-06-0212-28/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add multiprocess support for API serivces (EC2/OSAPI_Compute/OSAPI_Volume/Metadata). 2012-06-1 v7: * Add unittest to cover worker recovery, service termination functionality in wsgi.py, fix python 2.6 compatibility issue. * Modify generate_uid() to introduce per-process seeds in utils.py to avoid collisions. * Add worker session to nova.conf.sample. 2012-05-21 v6: * Fix 'test_wsgi' unittest error. 2012-04-28 v5: * Add SIGINT handler and fix child-parent race condition when Ctrl+C is pressed. 2012-03-31 v4: * Fixed typo, removed debug code. 2012-03-30 v3: * Fixed localization/pep8 error in unittest, add metadata test. * nova/wsgi.py:Server: use the greenthread pool created for each process. * nova/service.py: remove debug code 2012-03-27 v2: * Fixed unittest error. * nova/wsgi.py:Server: Use self._logger to do logging in multiprocess mode. * nova/wsgi.py:Server: Move self._pool creation into proper place. * code style fix. 2012-03-25 v1: * Modification to nova/service.py and nova/wsgi.py in order to support multiprocess (a.k.a. workers) for various API services. If multiprocess mode is enabled, (i.e. flags 'APINAME_workers' set to positive numbers), corresponding API service will run in target number of process(es). There is also a master_worker process spawned for managing all workers (handling signal/termination). * Add unittest for multiprocess API service, also alter testing/runner.py to adopt new unittest. Change-Id: Ia045e595543ddfd192894b2a05801cc4b7ca90cb
* | | | | | | | | Merge "Add a comment to rpc.queue_get_for()."Jenkins2012-06-041-1/+14
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Add a comment to rpc.queue_get_for().Russell Bryant2012-06-011-1/+14
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of blueprint common-rpc. Add a comment to the rpc.queue_get_for() function that notes that this is simply a naming convention and is dependent on how queues are set up on the consumer side. Change-Id: Ifa7d648e9b33ad2416236dc6966527c257baaf88
* | | | | | | | | Merge "defensive coding against None inside bdm resolves bug 1007615"Jenkins2012-06-041-4/+9
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | |
| * | | | | | | | defensive coding against None inside bdmJoe Heck2012-06-011-4/+9
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolves bug 1007615 Change-Id: If7afa4fb030b3c53a0b80737ff792e42cc4d3101
* / / / / / / / Quantum Manager disassociate floating-ips on instance delete.Dan Wendlandt2012-06-011-0/+21
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug #997763 Change-Id: I4a1e6c63d2a27c361433b9150dd5ad5218578c02
* | | | | | | Merge "Fix instance update notification publisher id"Jenkins2012-06-015-14/+54
|\ \ \ \ \ \ \
| * | | | | | | Fix instance update notification publisher idBrian Elliott2012-05-305-14/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes instance update notifications to follow the nova convention for publisher ids. The notification publisher id will now be of the format service.host (e.g. compute.somehostname). Change-Id: Ib5c4c962b9ac3e0bac90703b20465f99dfd047c0
* | | | | | | | Merge "[PATCH] Allow [:print:] chars for security group names"Jenkins2012-06-013-25/+69
|\ \ \ \ \ \ \ \
| * | | | | | | | [PATCH] Allow [:print:] chars for security group namesAlessio Ababilov2012-05-293-25/+69
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1000673 Change-Id: Id1b23d6a0f8d328f65b66f947e8937fa1914a5db
* | | | | | | | Merge "Add compare_cpu to the compute rpcapi."Jenkins2012-06-014-7/+19
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Add compare_cpu to the compute rpcapi.Russell Bryant2012-05-314-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds compare_cpu to the compute rpcapi. This is used by the scheduler. Change-Id: Ibce3ab3797c1305829c0722be1813e462193f08b
* | | | | | | | Merge "Add get_console_topic() to the compute rpcapi."Jenkins2012-06-013-5/+10
|\| | | | | | |
| * | | | | | | Add get_console_topic() to the compute rpcapi.Russell Bryant2012-05-313-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds get_console_topic to the compute rpcapi. This method is used by the console API. Change-Id: I738be88a52fede0739a73283b6e2640072f0f72b
* | | | | | | | Merge "Add refresh_provider_fw_rules() to compute rpcapi."Jenkins2012-06-013-3/+9
|\| | | | | | |
| * | | | | | | Add refresh_provider_fw_rules() to compute rpcapi.Russell Bryant2012-05-313-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds another method to the compute rpcapi - refresh_provider_fw_rules(). It is used from compute.api. Change-Id: I653efc00a2324047f34a383da9e36454a45c4038
* | | | | | | | Merge "Use compute rpcapi in nova-manage."Jenkins2012-06-011-7/+4
|\| | | | | | |
| * | | | | | | Use compute rpcapi in nova-manage.Russell Bryant2012-05-311-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch fixes nova-manage to use the compute rpcapi instead of calling rpc.cast() directly. This cast was actually broken, as it sent an instance ID instead of UUID, so this change should make this code functional again. Change-Id: I90a1bf4a03cc6d9e21f24f19165141f894b6ec75
* | | | | | | | Merge "Add post_live_migration_at_destination() to compute rpcapi."Jenkins2012-06-014-7/+18
|\| | | | | | |
| * | | | | | | Add post_live_migration_at_destination() to compute rpcapi.Russell Bryant2012-05-314-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds the "post_live_migration_at_destination method to the compute rpcapi. It is used by the compute manager. Change-Id: I964d3b149e10c927657d0b239835335eb240b6e4
* | | | | | | | Merge "Add pre_live_migration() to the compute rpcapi."Jenkins2012-06-014-13/+24
|\| | | | | | |
| * | | | | | | Add pre_live_migration() to the compute rpcapi.Russell Bryant2012-05-314-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds pre_live_migration() to the compute rpcapi. It is used by the compute manager. Change-Id: I70fb66ad194837faa1139e644888c4a7c7a5a0a6
* | | | | | | | Merge "Add rollback_live_migration_at_destination() to compute rpcapi."Jenkins2012-06-013-6/+24
|\| | | | | | |
| * | | | | | | Add rollback_live_migration_at_destination() to compute rpcapi.Russell Bryant2012-05-313-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds rollback_live_migration_at_destination() to the compute rpcapi. This method is used by the compute manager. Change-Id: Iadbb50fc5cb0f7b5ad483d48666bc81e033ac5f4
* | | | | | | | Merge "Add finish_resize() to the compute rpcapi."Jenkins2012-06-013-11/+14
|\| | | | | | | | |_|_|_|_|_|/ |/| | | | | |
| * | | | | | Add finish_resize() to the compute rpcapi.Russell Bryant2012-05-313-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1006467. This patch adds the finish_resize() method to the compute rpcapi. It is used by the compute manager. Change-Id: I989bc70c1af44001a095e64b8abde05a0f99964d
* | | | | | | Merge "Add resize_instance() to the compute rpcapi."Jenkins2012-06-013-7/+11
|\| | | | | |