summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | | | | | Send all migration data to finish_revert_resize.Russell Bryant2012-11-054-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the finish_revert_resize method of the compute rpc api to take all of the migration data instead of just the migration id. This removes the need for doing a db read at the beginning of finish_revert_resize. Part of blueprint no-db-compute. Change-Id: I725404a13408fdd83aef6d19bab6c9481e2eab35
* | | | | | | | | | | | | | | | Merge "Send all migration data to revert_resize."Jenkins2012-11-054-13/+17
|\| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Send all migration data to revert_resize.Russell Bryant2012-11-054-13/+17
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the revert_resize method of the compute rpc api to take all of the migration data instead of just the migration id. This removes the need for doing a db read at the beginning of revert_resize. Part of blueprint no-db-compute. Change-Id: I821cfcbd8edf83a0ffdf64100b6f9224205dea0a
* | | | | | | | | | | | | | | Merge "Add xenapi host_maintenance_mode() test"Jenkins2012-11-051-0/+33
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Add xenapi host_maintenance_mode() testDan Smith2012-11-011-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bit of code is currently untested (except for the most basic stubbed-out case). Change-Id: I7193152480ed678c89be7b7dda5edf034f5dad2e
* | | | | | | | | | | | | | | | Merge "xenapi: place boot lock when doing soft delete"Jenkins2012-11-051-0/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | xenapi: place boot lock when doing soft deleteJohannes Erdfelt2012-11-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an instance is soft deleted a boot lock should be placed to ensure it doesn't get restarted by accident. Change-Id: Id46b8758f71d122d2a9cf7ae172fc138974bc315
* | | | | | | | | | | | | | | | | Merge "Cleanup nova.db.sqlalchemy.api import"Jenkins2012-11-051-9/+11
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Cleanup nova.db.sqlalchemy.api importZhongyue Luo2012-11-051-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I335fcd135a077d266653dfbacf9756bb8d47da14
* | | | | | | | | | | | | | | | | | Merge "Use uuidutils.is_uuid_like for uuid validation"Jenkins2012-11-0510-37/+30
|\| | | | | | | | | | | | | | | | | | |_|_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Use uuidutils.is_uuid_like for uuid validationZhongyue Luo2012-11-0510-37/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8fc760062ecaee45d263db663a52971be96f264a
* | | | | | | | | | | | | | | | | Merge "Add uuidutils module"Jenkins2012-11-052-1/+36
|\| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Add uuidutils moduleZhongyue Luo2012-11-052-1/+36
| | |_|/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added uuidutils to openstack-common.conf file and updated nova/openstack/common Change-Id: I256a12ab4367a8ee408a38cda7ae35a762b56efe
* / | | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2012-11-051-11/+11
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If46e19338fa5a98b5748b6c30aa365cab17ccc30
* | | | | | | | | | | | | | | Merge "Make session.py reusable"Jenkins2012-11-041-66/+78
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Make session.py reusableArata Notsu2012-10-311-66/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch get_engine() into a creation part (create_session()) and a singletonization part (get_session()). create_session() can be used from code that connects to a DB other than nova-DB. Change-Id: Ia4ee4336871f22cfcdb67a0417fcfb76d78b6fa3
* | | | | | | | | | | | | | | Merge "Imported Translations from Transifex"OpenStack Jenkins2012-11-031-2227/+938
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2012-11-031-2227/+938
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6f8aa2ceb34979db35ff77312d6f4398f5fc4c2d
* | | | | | | | | | | | | | | | Merge "Eliminates simultaneous schedule race."Jenkins2012-11-034-21/+35
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Eliminates simultaneous schedule race.Vishvananda Ishaya2012-11-014-21/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keeps host state in memory so multiple schedule attempts use the up-to-date values that may have been modified by another greenthread. Fixes bug 1073956 Change-Id: I69fdd9b46bde6b7408c501c42a6ef3b6dd92bbc2
* | | | | | | | | | | | | | | | | Merge "Fix unused variables and wrong indent in test_compute"Jenkins2012-11-031-32/+14
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix unused variables and wrong indent in test_computeChris Behrens2012-11-021-32/+14
| | |_|_|_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I83a489b6a6797f60d53cc369315035d7d96afa81
* | | | | | | | | | | | | | | | Merge "Add some hooks for managers when service starts"Jenkins2012-11-025-50/+97
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Add some hooks for managers when service startsChris Behrens2012-11-015-50/+97
| |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds pre_start_hook() and post_start_hook() and fixes a couple of hard coded binary name checks in service.py Change-Id: I062790a88ed7f15a6f28961d6ddc1f230e19e0cb
* | | | | | | | | | | | | | | | Merge "Remove unnecessary db call from xenapi/vmops"Jenkins2012-11-022-4/+13
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Remove unnecessary db call from xenapi/vmopsDan Smith2012-11-022-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two db.instance_type_get() calls in xenapi that don't need to be there. By fetching the info out of the instance['instance_type'] field, we can avoid the lookup (and adding interfaces to support this in VirtAPI). Note that the tests require a little extra fakeage to replicate what is happening in the real db driver. Change-Id: I727c98fe18ca28f1db62ece2abfd50b4e13852ba
* | | | | | | | | | | | | | | | | Merge "sync deprecated log method from openstack-common"Jenkins2012-11-024-105/+18
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | sync deprecated log method from openstack-commonSean Dague2012-11-024-105/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the nova common deprecated util is now part of openstack-common log class as a deprecate method. Sync openstack-common and remove nova common util. All the deprecated pieces from folsom appear to have already been removed, so no additional code changes needed for this. Change-Id: I9cbd6a67c30567cd7002e8e7fec93cfc209787fc
* | | | | | | | | | | | | | | | | | Merge "Fix Quantum v2 API method signatures"Jenkins2012-11-021-4/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Fix Quantum v2 API method signaturesMark McLoughlin2012-11-021-4/+2
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit d96102b6 made a change to network.api.API but rather than making the corresponding change to network.quantumv2.api.API it appears that it was changed to match the network manager signature instead. Fix the quantum signatures to match the stock network API signatures. Change-Id: I97e16f29473f3f2e3f9c53b1e2ef10e499cef29a
* | | | | | | | | | | | | | | | | | Merge "Use elevated context in disassociate_floating_ip"Jenkins2012-11-021-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Use elevated context in disassociate_floating_ipBrian Waldon2012-11-021-1/+1
| | |_|_|_|_|_|_|_|_|_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The call to service_get_by_host_and_topic would raise AdminRequired in the case that a non-admin tried to disassociate a floating ip from their instance and multi_host was on. Using an elevated context for the db lookup enables the host lookup to happend and allows a user to disassociate their floating ips. Fixes bug 1074437 Change-Id: I3d47b5a48eae21ea913120bd00728a0b8132da81
* | | | | | | | | | | | | | | | | | Merge "Fix no attribute 'STD_OUT_HANDLE' on windows"Jenkins2012-11-021-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Fix no attribute 'STD_OUT_HANDLE' on windowsDavanum Srinivas2012-11-021-3/+3
| |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename STD_OUT_HANDLE to STD_OUTPUT_HANDLE Fixes LP #1033528 Change-Id: I75830dc4d6017076647e040d4485f99ee68333ff
* | | | | | | | | | | | | | | | | | Merge "Fix signing_dir option for auth_token middleware."Jenkins2012-11-021-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Fix signing_dir option for auth_token middleware.Russell Bryant2012-11-021-1/+1
| |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystone auth_token middleware expects an option named 'signing_dir'. The sample api-paste.ini file for nova defined 'signing_dirname' instead. Fix bug 1073858. Change-Id: Ie9a3df73a8d9d52b48d6e0bcce0aae762af929a9
* | | | | | | | | | | | | | | | | | Merge "Remove db.instance_get* from nova/virt"Jenkins2012-11-025-9/+36
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / / / / / / / | |/| | | | | | / / / / / / / / / / | |_|_|_|_|_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove db.instance_get* from nova/virtDan Smith2012-11-025-9/+36
| |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds two methods to the VirtAPI for instance_get_* operations, removing direct calls of those from the drivers. Change-Id: I0be42f73fb71a61bf6c46708d5879f7f8ade294d
* / / / / / / / / / / / / / / / Detangle soft delete and power offJohannes Erdfelt2012-11-0211-55/+186
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Soft deletes are implemented by using the power_off compute method. Unfortunately, this limits what a hypervisor driver can do to the minimum expected from powering off an instance. Change-Id: I577a58473885dcc8a586a0829752e8397424bc02
* | | | | | | | | | | | | | | Merge "Introduce VirtAPI to nova/virt"Jenkins2012-11-0219-177/+231
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Introduce VirtAPI to nova/virtDan Smith2012-11-0119-177/+231
| | |_|_|_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a VirtAPI class which will house callbacks provided by the manager to the virt drivers, allowing things such as direct database accesses to be pulled out of the virt drivers and delegated to another service. As a first step, this introduces an instance_update() method and makes all the virt drivers use it instead of direct calls to db.instance_update.*(). Change-Id: I2e40831f5cfb20a03b304097d84d592aab035ef1
* | | | | | | | | | | | | | Tiny resource tracker cleanupMark McLoughlin2012-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to the bother of initializing an is_deleted_instance boolean and then not using it everywhere we can. Change-Id: I78c037491de336999df0f7a645a6fbab5b26d88c
* | | | | | | | | | | | | | Merge "Improve EC2 describe_security_groups performance"Jenkins2012-11-022-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Improve EC2 describe_security_groups performanceMotoKen2012-11-012-3/+3
| | |_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of EC2 describe_security_groups makes one query per grantee group rule in _format_security_group. This will dramatically slow down response time if users make strong use of grantee group rules. This patch uses just one DB query to get security groups with joined grantee_group rules to improve the performance. Fixes bug 1073024. Change-Id: I34f3253bfef0eabfea39819de03a274dd6f6aaa8
* | | | | | | | | | | | | | Merge "Bump the base rpc version of the network api."Jenkins2012-11-021-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Bump the base rpc version of the network api.Dan Prince2012-11-011-1/+1
| | |_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In d96102b we bumped the RPC version of the migrate_instance_* calls in the network rpcapi. We did not however bump the associated RPC version in the network manager and as such resizes are now broken. This commit simply bumps the RPC version of the network manager based on the previous change. Fixes LP Bug #1074072. Change-Id: I4b6d6bdbcb7bb68872deee4f54b1c0636012c2cf
* | | | | | | | | | | | | Merge "Remove nova-volume scheduling support"Jenkins2012-11-0212-180/+15
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Remove nova-volume scheduling supportJoe Gordon2012-10-3112-180/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continuation of I0b540e54dbabd26901a7530035a38583bb521fda * delete scheduler.simple * modify scheduler.multi instead of delete to continue supporting I753e87fc8979fd0b62529974f00cf11fa55b3d63 * update scheduler.multi docstring * scheduler.rpcapi bumped to 2.3 * change default scheduler to scheduler.filter_scheduler DocImpact part of bp delete-nova-volume Change-Id: Ie9d9b46742b2d92cd1e9ffe982ef658907a1d411
* | | | | | | | | | | | | | Merge "Fix backwards compat of rpc to compute manager"Jenkins2012-11-011-2/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Fix backwards compat of rpc to compute managerVishvananda Ishaya2012-11-011-2/+3
| | |_|_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit dcabd6159abcdccd99e55495ec005926465007a8 changed compute manager in a way that it will fail to respond to the older 2.X rpc message for reserve_block_device_name. This fixes it by making the volume_id parameter optional. Change-Id: Ia2d353d5b195e5687917ef5f928c0c835ffe3d3a