summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | | | | | | | | | Merge "Fix and enable flake8 F812"Jenkins2013-05-293-11/+11
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | Fix and enable flake8 F812Joe Gordon2013-05-283-11/+11
| |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | F812 list comprehension redefines List comprehension don't have scope so redefining variables can lead to unexpected behaviors Change-Id: I85484dfcd4fa391195ea7be75aadc7897da4739c
* | | | | | | | | | | | | | | | | | | | Merge "Fix log message."Jenkins2013-05-280-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | Fix log message.Lucas Alvares Gomes2013-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a missing key in the log format. Change-Id: I275f5e5fbfb6465b39d9ed7b4a9ace045ded4b5d
* | | | | | | | | | | | | | | | | | | | | Merge "fix a misleading docstring"Jenkins2013-05-281-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | fix a misleading docstringJiajun Liu2013-05-271-1/+1
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GroupAntiAffinityFilter was introduced to filter a set of hosts, howerver the docstring saying filter a set of instances which need to be fixed. Change-Id: Icf66a3ad15b4135c06e2e2ccc62837a346fcfdf7
* | | | | | | | | | | | | | | | | | | | Merge "Cells: Add filtering and weight support"Jenkins2013-05-2813-31/+846
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | Cells: Add filtering and weight supportChris Behrens2013-05-2713-31/+846
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds filtering and weighing support to the cells scheduler. Adds the following config options to the 'cells' group: scheduler_filter_classes -- list of filter classes scheduler_weight_classes -- list of weight classes Adds a couple of weighing modules as defaults (which removes the random cell selection): ram_by_instance_type: Select cells with the most capacity for the instance type being requested. weight_offset: Allows modifying the DB to weight a particular cell (useful for disabling a cell) Adds a filter class (TargetCellFilter) that allows specifying a scheduler hint to direct a build to a particular cell if you're an admin. DocImpact Implements blueprint cells-filter-scheduler Change-Id: I027c5734e3d6134127fcd4dd28b8ff39047416dc
* | | | | | | | | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2013-05-2838-5280/+137158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I47a6645025e6a74a7205d1eadda3cb36295d341b
* | | | | | | | | | | | | | | | | | | | | Merge "Fix missing argument to logging warning call"Jenkins2013-05-281-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | Fix missing argument to logging warning callMichael Kerrin2013-05-211-1/+1
| | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I04ff613e785b6b39476b7766b94c831d7e22148a
* | | | | | | | | | | | | | | | | | | | | Merge "Optimize SecurityGroupsOutputController by len(servers)"Jenkins2013-05-282-7/+33
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | Optimize SecurityGroupsOutputController by len(servers)Aaron Rosen2013-05-212-7/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds an optimization for _extend_servers() so that it calls get_instance_security_groups() when len(servers) == 1, and get_instances_security_groups_bindings() when > 1. In addition, this patch adds a return statement if not len(servers) as there is no reason to perform a query if there are no servers. Fixes bug 1182730 Change-Id: I149bf32176d60e72d76576168d15995f7215b657
* | | | | | | | | | | | | | | | | | | | | | Merge "xenapi: make the xenapi agent optional per image"Jenkins2013-05-287-18/+110
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | xenapi: make the xenapi agent optional per imageJohn Garbutt2013-05-277-18/+110
| | |_|_|_|_|_|_|_|_|_|/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to decide, per image, if xenapi should use the agent for servers created from that image. This opens up the path to using config drive or the metadata service with cloud-init to perform tasks like file injection It uses the image properties that are copied into system metadata to detect if "xenapi_agent_present"="true" on the image the server was created from. If the tag is not present, it defaults to the value of the new conf setting "xenapi_agent_present_default". Becuase the above setting defaults to False, it means that the xenapi driver no longer waits for the agent by default. DocImpact fixes bug 1178223 part of blueprint xenapi-guest-agent-cloud-init-interop Change-Id: Ie51a9f54e5b2e85fe4ebebb0aff975db296ba996
* | | | | | | | | | | | | | | | | | | | | | Merge "Add missing tests for db.api.reservation_*"Jenkins2013-05-281-0/+113
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | Add missing tests for db.api.reservation_*Sergey Skripnick2013-05-241-0/+113
| | |_|_|_|/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint db-api-tests Change-Id: Id191363e00f51d2c8ae0f2bac6a9c6672dfbdd65
* | | | | | | | | | | | | | | | | | | | | Merge "Pull binary name from sys.argv[0]"Jenkins2013-05-281-2/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | Pull binary name from sys.argv[0]Joe Gordon2013-05-281-2/+1
| | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of inspecting the top of the stack to find the binary name, just use sys.argv[0]. This is little cleaner then inspecting the stack. Co-authored-by: Mark McClain <mark.mcclain@dreamhost.com> Change-Id: I18d5233b6b0bd0ccaeeab5b7ce5006adcf4a8d40
* | | | | | | | | | | | | | | | | | | | | Merge "update mailmap"Jenkins2013-05-281-0/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | update mailmapJiajun Liu2013-05-241-0/+1
| | |_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reflect new email address that I will be committing under. Change-Id: I7358c5c8e47b4c77c8d885fe30f79c757ca943b2
* | | | | | | | | | | | | | | | | | | | Merge "Enumerate Flake8 Fxxx ignores"Jenkins2013-05-281-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | Enumerate Flake8 Fxxx ignoresJoe Gordon2013-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of ignoring all Fxxx errors, ignore only the failing ones, so its easy to fix each one separately. Change-Id: I4ccc1d38247fb76b6dad4388b76c6e8d696f081f
* | | | | | | | | | | | | | | | | | | | | Merge "Enable flake8 E721"Jenkins2013-05-281-1/+1
|\| | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | Enable flake8 E721Joe Gordon2013-05-281-1/+1
| | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already pass the test, so just remove from ignore list Change-Id: I28bfeb99d9841532133a3825f7336e7b712d6561
* | | | | | | | | | | | | | | | | | | | Merge "Delete a quota through admin api."Jenkins2013-05-2811-2/+115
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | Delete a quota through admin api.Aarti Kriplani2013-05-2311-2/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added 'extended-quotas' extension that has provides ability for admins to be able to delete a non-default quota (absolute limit) for a tenant, so that tenant's quota will revert back to the configured default. Implements blueprint admin-api-for-delete-quota Change-Id: I7375420a466823b3e099aebff71a8f7d7f922afb
* | | | | | | | | | | | | | | | | | | | Merge "vmwareapi: Move tests under tests/virt/vmwareapi/"Jenkins2013-05-287-7/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | vmwareapi: Move tests under tests/virt/vmwareapi/Rick Harris2013-05-237-7/+2
| | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9665c650cc41c8dc1f3983ad85fdac9ebddc52d0
* | | | | | | | | | | | | | | | | | | Merge "get_instance_security_groups() fails if no name on security group"Jenkins2013-05-272-11/+20
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | get_instance_security_groups() fails if no name on security groupAaron Rosen2013-05-212-11/+20
| | |_|/ / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch fixes a bug in get_instance_security_groups() where it tries to access security_groups['id'] but security_groups is a string. This patch also removes some stubs that were not needed in a few unit test. Fixes bug 1182738 Change-Id: Ia64db2e40d4a0e163344b4234112dbde71b1e132
* | | | | | | | | | | | | | | | | | Merge "removes project_id/tenant_id from v3 api urls"Jenkins2013-05-273-3/+64
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | removes project_id/tenant_id from v3 api urlsMelanie Witt2013-05-243-3/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new APIMapper for V3 that doesn't prefix every url with the project_id/tenant_id. Partially implements blueprint v3-api-remove-project-id. Change-Id: I547a94e2db0dd967852b3cb8532dd0adb11e693b
* | | | | | | | | | | | | | | | | | | Merge "Removed superflous eval usage."Jenkins2013-05-271-4/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Removed superflous eval usage.Alex Gaynor2013-05-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was being used as a hex string parser, which is not necessary given that the int builtin can do this. Change-Id: I710093fc83c175ac08d827bb93ba878703ee817a
* | | | | | | | | | | | | | | | | | | Merge "Remove locals() usage from nova.virt.libvirt.utils."Jenkins2013-05-251-2/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Remove locals() usage from nova.virt.libvirt.utils.Michael Still2013-05-241-2/+10
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id5ca94f333de3fb4d8611d08afa75318ce65e3b5
* | | | | | | | | | | | | | | | | | Merge "Sync shadow table for 179 migration"Jenkins2013-05-242-0/+31
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Sync shadow table for 179 migrationBoris Pavlovic2013-05-242-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to use db archiving our table and shadow table should have the same columns. fixes bug 1179497 Change-Id: I001f31a5efa07c80acd1ad513369456fb8c3cb44
* | | | | | | | | | | | | | | | | | | Merge "Remove copy paste from 179 migration"Jenkins2013-05-241-203/+22
|\| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Remove copy paste from 179 migrationBoris Pavlovic2013-05-241-203/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have utils to change type of deleted column. So just remove copy paste. Approach is the same, and code is almost the same, so it is safe to change old migration. Change-Id: I5422b484c1270468c5dec0395466a0691acb772f
* | | | | | | | | | | | | | | | | | | Merge "Sync shadow table for 175 and 176 migration"Jenkins2013-05-242-0/+65
|\| | | | | | | | | | | | | | | | | | | |_|_|/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | Sync shadow table for 175 and 176 migrationBoris Pavlovic2013-05-242-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to use db archiving our table and shadow table should have the same columns. fixes bug 1176443 Change-Id: I461a6d0e3661e2b60c266dffff38e3317784c113
* | | | | | | | | | | | | | | | | | Merge "Change db `deleted` column type utils"Jenkins2013-05-242-4/+341
|\| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | Change db `deleted` column type utilsBoris Pavlovic2013-05-242-4/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move and refactor methods from 152_migration that allows us to change type of deleted column to type of id. There are 2 methods: utils.change_deleted_column_type_to_id_type() method This method change type of `deleted` column from Boolean to type of `id`. This method allows us to do it in generic way for all backends. It fix problem with sqlite, that doesn't allow any operation with columns that have CheckConstraints. And columns with Boolean type have CheckConstraints (value in (0, 1)). So for sqlite it works through shadow tables. For others dbs it works though alter table. utils.change_deleted_column_type_to_boolean_type() methods This method allows us to revert result of previous method. Useful for downgrade. In global these methods could be very useful in olso for other projects. This is a first step that allows us to create unique constraints when we are using soft delete. (Create UC on (column, deleted)) Also it will be useful in nova to remove copy past from 179 migration. Add new migration that will fix also shadow_cells table. And also there are baremetal tables that should be also migrated. blueprint db-common-migration-and-utils Change-Id: Ie14351c52eb50182e6460c97e257395ce2adb8b0
* | | | | | | | | | | | | | | | | | Merge "Fix tests for sqlalchemy utils"Jenkins2013-05-243-84/+92
|\| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | Fix tests for sqlalchemy utilsBoris Pavlovic2013-05-243-84/+92
| | |_|_|_|_|_|_|_|_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix tests to be able to run it with postgresql and mysql. Some tests should be run only on sqlite Method create_shadow_tables raises different exception in different backends (when we try to create duplicate table): In postgresql it is ProgrammingError In sqlite and mysql it is OperationalError So create new Exception that will be raised in both cases. bp db-common-migration-and-utils Change-Id: I11be23106bc01bd3c72dad30edfb31a17177bb34
* | | | | | | | | | | | | | | | | Set up 'compute_task' conductor namespace.Russell Bryant2013-05-245-1/+80
| |_|_|_|_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch sets up a new API to be exposed by the nova-conductor service. The existing methods exposed by conductor are all proxy operations on behalf of compute nodes. For Havana, we have plans to add methods that go the other direction. Operations initiated by the API will be processed by the conductor, which will include telling one or more compute nodes what to do. By putting all operations of this form in their own API, it will keep things a bit more clearly separated. Change-Id: Ifa3d443b9bd7f406a7a3bd837351bc689bf2b6c8
* | | | | | | | | | | | | | | | Add missing tests for nova.db.api.quota_class_*Sergey Skripnick2013-05-241-0/+35
| |_|_|_|_|_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint db-api-tests Change-Id: I30d768e449ff7289574bfd44f91b69802d9878ea
* | | | | | | | | | | | | | | Merge "Importing correlation_id middleware from oslo-incubator"Jenkins2013-05-243-0/+30
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \