c741e862fd35d28338d7966e03bf662c8fb65dac
Commit Graph

20991 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Andrea Rosa
c741e862fd Give a way to save why a service has been disabled.
Implements blueprint record-reason-for-disabling-service
We added a field to the service table to log a reason when a service has
been disabled.
We added a new API extension called os-extended-services. The new extension
will extend the os-services extension adding:
- A method for disabling a service and specify a reason for that.
PUT /v2/{tenant_id}/os-services/disable-log-reason
When the os-extended-extension is loaded the call:
GET /V2/{tenant_id}/os-services
will return the list of services with reason information it that exists.
DocImpact
Change-Id: I87a4affc45160796ff11c7b03e591e6aba73d62a
2013年06月12日 11:27:25 +10:00
Jenkins
d7f898eab9 Merge "Add base mixin class for object lists" 2013年06月11日 22:49:43 +00:00
Jenkins
94c2fdd62f Merge "Fix assumed port has port_security_enabled" 2013年06月11日 22:47:13 +00:00
Jenkins
0dc8632659 Merge "Refactors get_instance_security_groups to only use instance_uuid" 2013年06月11日 22:46:20 +00:00
Jenkins
2dd6adac83 Merge "Add deleted flag to NovaObject base" 2013年06月11日 22:42:54 +00:00
OpenStack Jenkins
1d2e0fa313 Merge "Imported Translations from Transifex" 2013年06月11日 21:45:26 +00:00
Jenkins
15090a29e0 Merge "correctly set iface-id in vmware driver" 2013年06月11日 20:47:39 +00:00
Jenkins
00d0e2c187 Merge "Return Customer's Quota Usage through Admin API" 2013年06月11日 20:39:00 +00:00
Jenkins
9b5e206027 Merge "Rename functions in nova.compute.flavors from instance_type" 2013年06月11日 19:49:12 +00:00
OpenStack Jenkins
6261685678 Imported Translations from Transifex
Change-Id: Ib268a66f5e17a7b96bed6a0d4e328f69c5481928
2013年06月11日 19:38:09 +00:00
Jenkins
da472b13c4 Merge "xenapi: ensure instance metadata always injected into xenstore" 2013年06月11日 18:27:59 +00:00
Jenkins
3f2b5fdd83 Merge "Nova instance group DB support" 2013年06月11日 18:17:56 +00:00
Aaron Rosen
eddab7ba0e Fix assumed port has port_security_enabled
Previously if adding a security group to an instance it would fail
if the port did not contain port_security_enabled=True. This patch
also changes the unit tests so that networks by default are not
associated with port_security_enabled=True because this is only true
if a plugin is running the port_security extension.
Fixes bug 1189059
Change-Id: Ieebb7aafba01c18164b86a01a3c289a6957321e4
2013年06月11日 10:37:38 -07:00
Joe Gordon
b7fe4e206b Rename functions in nova.compute.flavors from instance_type
Second step in removing references to instance_types. Remove all
references to instance_type in nova.compute.flavors.
Also update compute devref to reflect changed name.
Partially implements bp flavor-instance-type-dedup
renamed: nova/tests/test_instance_types.py -> test_flavors.py
Change-Id: I7413bf832c61d04ab90ec8b1370d3f01372c4172
2013年06月11日 10:36:39 -07:00
John Garbutt
0107ce638b xenapi: ensure instance metadata always injected into xenstore
It is possible to use the agent, cloud-init and config drive
together on a single server. In this case we should still
be injecting the instance metadata.
The current code is inconsistent between spawn and migrations.
The correct approach is to always inject the data into xenstore.
fixes bug 1188618
Change-Id: I253b34234544cff353985a5b53ec084ea332535a
2013年06月11日 10:44:53 +00:00
Jenkins
685228d96b Merge "Handle security group quota exceeded gracefully" 2013年06月11日 10:36:48 +00:00
Jenkins
6c79b752b6 Merge "Normalize path for finding api_samples dir" 2013年06月11日 10:36:21 +00:00
Gary Kotton
501ff418df Nova instance group DB support
DB support for blueprint instance-group-api-extension
Change-Id: I615af9826ef61fd63d4cd8017908f943969bf177
2013年06月11日 08:50:50 +00:00
Jenkins
a79eea05db Merge "Add missing tests for s3_image_* methods" 2013年06月11日 08:09:29 +00:00
OpenStack Jenkins
63d0ff2c48 Merge "Imported Translations from Transifex" 2013年06月11日 06:18:25 +00:00
Jenkins
ef1db0aeb5 Merge "Cleanup nova exception message conversion" 2013年06月11日 05:04:35 +00:00
Tiago Mello
a381df91b4 Refactors get_instance_security_groups to only use instance_uuid
Fixes Bug 1160078
Change-Id: Ic4d7ee0202ca15837f9dcab97e5502cbf82aa16f
2013年06月10日 20:59:56 -07:00
Jenkins
a657af5fd5 Merge "Create an image BDM for every instance" 2013年06月11日 02:40:30 +00:00
Jenkins
45e80dfdb2 Merge "DB migration to the new BDM data format" 2013年06月11日 02:39:43 +00:00
Jenkins
e40f78b0da Merge "Refactors scheduler.chance.select_hosts to raise NoValidHost" 2013年06月10日 23:31:30 +00:00
Jenkins
2728c4ef70 Merge "Fix db.models.Service description" 2013年06月10日 23:31:06 +00:00
Jenkins
5bfa143c56 Merge "Fix dangling LUN issue under load with multipath" 2013年06月10日 23:30:50 +00:00
Nikola Dipanov
41eb083d22 Create an image BDM for every instance
This patch makes every boot create a block device mapping if the
instance was started with an image.
These block devices are not used anywhere at the moment but will be used
in the future as part of a more flexible block device API.
This patch also makes sure they are deleted once the instance is deleted
as well.
Change-Id: Ia89d531be71c460f1f82fcfce34b270639a23061
blueprint: improve-block-device-handling
2013年06月10日 23:10:39 +00:00
Nikola Dipanov
0d5fb06b39 DB migration to the new BDM data format
This patch migrates the DB to the new data format. In addition it also
utilizes routines introduced in the change
I9370333059b8c9aaf92010470b8475a913d329b2 in a way that will allow us
to transition into using the new data in Nova logic one step at a time.
This is accomplished in a following manner in the DB/conductor layer,
which is supposed to allow for subsequent changes to be as granular as
possible:
* Read operations - data is always read as is found in the DB - meaning
in the new format, and transformed after every call. This will allow us
to make granular changes in the API/Compute layers.
* Data is converted inside the DB methods that do writes, and an
additional 'legacy' flag is added (set to True by default). It is up to
the calling method to make sure it supplies the DB layer with the format
it is intending to write, to avoid guessing.
An exception to the above is when using conductor due to rpcapi
versioning, so this patch adds a 'legacy' flag to the
block_device_mapping_get_all_by_instance conductor method and bumps the
version of the API.
This patch also fixes some of the block device fixtures in tests, when it was
required to be aware of the new data structure (mostly when mocking DB
methods that return the new data format).
This patch is not supposed to provide any new functionality to Nova.
blueprint: improve-block-device-handling
Change-Id: If30afdb59d4c4268b97d3d10270df2cc729a0c4c
2013年06月10日 23:10:37 +00:00
Jenkins
f85e4ec079 Merge "Removed code duplication in conductor.api" 2013年06月10日 22:33:52 +00:00
Jenkins
2d017a2288 Merge "Enhance group handling in extract_opts" 2013年06月10日 22:30:11 +00:00
Jenkins
bfc1065fc1 Merge "Add missing conversion specifier to ServiceGroupUnavailable" 2013年06月10日 22:29:54 +00:00
Walter A. Boring IV
080476b2d3 Fix dangling LUN issue under load with multipath
This fixes an issue where not all of the LUNs are seen
by the kernel at attach time, but later become available.
We now rescan the list of devices seen by multipath at
detach time.
Also added another unit test case.
Fixes Bug: #1175366
Change-Id: Id5b313b17454ec32672373b7b564b9450466b7a2
2013年06月10日 14:10:03 -07:00
Jenkins
9116b2448e Merge "Converts 'image' to json primitive on compute.rpcapi.prep_resize" 2013年06月10日 20:43:08 +00:00
Jenkins
71364c57f4 Merge "BDM class and transformation functions" 2013年06月10日 19:49:11 +00:00
OpenStack Jenkins
7165d6fcf3 Imported Translations from Transifex
Change-Id: Ifdb8136d1b90f5a2e1d37067fd33f75f2042f81f
2013年06月10日 19:38:52 +00:00
Jenkins
08cfd77a36 Merge "Adds check that the core V3 API is loaded" 2013年06月10日 18:09:23 +00:00
Jenkins
a527229c88 Merge "Regenerate missing resized backing files" 2013年06月10日 18:08:59 +00:00
Jenkins
a5dede6c4e Merge "Added verbose error message in tests helper mixin" 2013年06月10日 18:01:57 +00:00
Jenkins
21c8f0ca4c Merge "Speeding up scheduler tests" 2013年06月10日 18:00:24 +00:00
Jenkins
4762f478f2 Merge "More KeypairAPI cleanups" 2013年06月10日 17:59:34 +00:00
Jenkins
0cec0a78a5 Merge "Improve Keypair error messages in osapi" 2013年06月10日 17:59:11 +00:00
Jenkins
e6393e560b Merge "Fix Keypair exception messages" 2013年06月10日 17:58:54 +00:00
Jenkins
936f9839a4 Merge "Update analyze_opts to work with new nova.conf sample format" 2013年06月10日 17:29:29 +00:00
Yuriy Zveryanskyy
3abd08defd Add missing tests for s3_image_* methods
There was no tests in test_db_api for s3_image_*
methods.
Add tests to ensure that all works.
blueprint db-api-tests
Change-Id: I906025f4c5178b26c222fb28d5c3b220e00ae79c
2013年06月10日 17:49:57 +03:00
Jenkins
54e577729d Merge "Export volume metadata to new instances." 2013年06月10日 14:48:40 +00:00
Julien Danjou
7bf5c10077 Enhance group handling in extract_opts
When there's 2 options with the same name, the script gets confused and
doesn't know in which group it goes. This fixes it, and fixes also the
template generation which is broken for various reasons:
- gettext.install was missing
- nova-rootwrap when imported calls exit() because it doesn't find a valid
 configuration file, so let's exclude it entirely anyway
- eventlet/greendns needs to be ignored for this
Change-Id: Iaa4e9a806e79032ce1675b46a6b7a7628c3eff89
Signed-off-by: Julien Danjou <julien@danjou.info>
2013年06月10日 10:19:00 +02:00
Alexei Kornienko
9ad7274402 Removed code duplication in conductor.api
Used inheritance to avoid logic duplication in conductor.api classes
Fixes: bug #1188577
Change-Id: Id0bedb974354177dc3c6f6562e836924bcaafb08
2013年06月10日 11:15:08 +03:00
Alexei Kornienko
77c7846cad Added verbose error message in tests helper mixin
blueprint db-api-tests
Change-Id: I2fcfc50824de8965fe8521cde5f20d24e88eb8ae
2013年06月10日 10:48:02 +03:00
Boris Pavlovic
5729051636 Fix db.models.Service description
DB models definition should be up-to-date with DB schema obtained after applying of
migrations. Currently, there are no tests enforcing this and it's really hard to
analyze what indexes should be added, and what indexes we have at the moment.
So the first step is it to fix all models, and add missing descriptions about
Indexes and UniqueConstraints in __table_args__ and use explicit 'nullable'
parameter in columns description.
Add missing 'nullable' parameters to all Columns
Add empty __table_args__ parameter to Table
There is no indexes and no unique constraints in this table at this moment.
blueprint db-sync-models-with-migrations
Change-Id: I9b31e8976f514e370d6b46076b469fe5e5c8e0f1
2013年06月08日 19:36:22 +04:00