Commit Graph

48828 Commits

Author SHA1 Message Date
stewie925 ac0745babd Transform instance.resize_revert notification
The instance.resize_revert.start and instance.resize_revert.end
notifications are transformed to the versioned framework.

Change-Id: Ia86c8804b284ed4ad72a1993c454ec373c063b99
Implements: bp versioned-notification-transformation-queens
2017-12-04 20:54:39 -05:00
Zuul 2c7302e33e Merge "Api-guide: Address TODOs in user_concepts section" 2017-11-26 15:55:34 +00:00
Zuul b0b301506d Merge "Api guide:add Server Consoles" 2017-11-26 15:23:14 +00:00
Zuul e9104dbaef Merge "Add migration_get_by_uuid in db api." 2017-11-24 18:25:11 +00:00
Zuul 0f523c8a52 Merge "Add instance action record for attach/detach interface" 2017-11-24 18:10:56 +00:00
Zuul 6457bb3df8 Merge "Update server status api guide" 2017-11-24 17:00:52 +00:00
Zuul 7678139e38 Merge "Update Metadata api section of api guide" 2017-11-24 17:00:41 +00:00
Zuul c2307dd2b5 Merge "Update server query section in the API concept doc" 2017-11-24 17:00:36 +00:00
He Jie Xu 201b150865 Update server query section in the API concept doc
Update and cleanup server query section in the API concept doc.

Change-Id: Id0e2cb31bd6234be169eac66bc97fd1635ef6704
2017-11-24 09:46:03 +08:00
Zuul 22a790ef45 Merge "Implement query param schema for host index" 2017-11-23 17:20:25 +00:00
Zuul d022afd222 Merge "Implement query param schema for quota set APIs" 2017-11-23 17:05:26 +00:00
Zuul 47ad4a9fa1 Merge "Implement query param schema for volume, snapshot API" 2017-11-23 16:58:50 +00:00
Zuul 67849aed50 Merge "Fix the usage of instance.snapshot notification sample" 2017-11-23 13:06:18 +00:00
Zuul 491052995a Merge "Transform instance-live_migration_pre notification" 2017-11-23 12:47:43 +00:00
Zuul 2808bfe8a0 Merge "Use FakeLiveMigrateDriver in notification test" 2017-11-23 12:43:13 +00:00
Zuul b4e765ea33 Merge "Change live_migrate tests to use fakedriver" 2017-11-23 12:43:07 +00:00
Zuul 6f39aff34f Merge "Test resource allocation during soft delete" 2017-11-23 12:18:38 +00:00
Zuul 8194491ebe Merge "factor out compute service start in ServerMovingTest" 2017-11-23 12:18:33 +00:00
Kevin_Zheng f5ad8e206f Api-guide: Address TODOs in user_concepts section
Address TODOs in user_concepts section

Change-Id: Ibb604a0421f13066b88c75295abe91eb4a5a5d2e
2017-11-23 14:33:18 +08:00
leizhang 409b511dbb Update server status api guide
Add description for vm_state and task_state in server status section.

Change-Id: I5791245c0faee052b6ad680fbe712c2dd16db063
2017-11-23 08:52:57 +08:00
Zuul 8017c35291 Merge "Clean up exception caught in _validate_and_build_base_options" 2017-11-23 00:24:48 +00:00
Zuul 1a289f1c02 Merge "api-ref: fix the type on the block_device_mapping_v2 parameter" 2017-11-23 00:07:30 +00:00
Zuul 98b53fee26 Merge "VMware: ensure that provider networks work for type 'portgroup'" 2017-11-23 00:07:24 +00:00
sunjia ace3244536 Api guide:add Server Consoles
Change-Id: I9b720d86533edf69ffe1b86d368611729579b1fd
2017-11-23 07:29:19 +08:00
Zuul 7ea8563d14 Merge "Implement query param schema for simple_tenant_usage" 2017-11-22 23:06:10 +00:00
Zuul fdd6bae252 Merge "Use the RequestSpec when getting scheduler_hints in compute" 2017-11-22 22:05:43 +00:00
leizhang 5a03a9127d Update Metadata api section of api guide
Address todo in Metadata api section of api guide

Change-Id: Ieb68614a41918928dde86d2d866c593e8cc94cc4
2017-11-23 03:54:16 +08:00
ghanshyam 3fc7609931 Implement query param schema for simple_tenant_usage
GET simple_tenant_usage API accept query param to filter the
tenant usage.
This commit adds json schema to validate the valid
query parameters.

There is no change in API behaviour and additionalProperties
is kept True for backward compatibility.

Partially implements blueprint json-schema-validation-for-query-param

Change-Id: I24726fd9a82617798a13597ad9883db22a4a9846
2017-11-22 19:46:32 +00:00
Zuul 6af4978896 Merge "Moving more utils to ProviderUsageBaseTestCase" 2017-11-22 17:27:52 +00:00
Zuul 86aa85ad1d Merge "Use Migration object in ComputeManagerMigrationTestCase" 2017-11-22 17:17:58 +00:00
Zuul f0643869e3 Merge "rt: Make resource tracker always invoking get_inventory()" 2017-11-22 16:26:12 +00:00
Béla Vancsics 2578a308e6 Transform instance-live_migration_pre notification
The instance.live_migration_pre.start and instance.live_migration_pre.end
notifications has been transformed to the versioned notification framework.

Co-Authored-By: Elod Illes <elod.illes@ericsson.com>
Change-Id: Ied6e9016e7406365c9d0beb281eeb31b7d0cf71b
Implements: bp versioned-notification-transformation-queens
2017-11-22 16:59:13 +01:00
Előd Illés 7de399ec43 Use FakeLiveMigrateDriver in notification test
Replace FakeDriver with FakeLiveMigrateDriver in live migration
related notification functional tests.

Change-Id: I1b2be23cd4d53bb061f4b0abef5e2b554c3ddad1
2017-11-22 14:41:04 +00:00
Lajos Katona a01747e6c7 Change live_migrate tests to use fakedriver
Change test_live_migrate_force_complete and test_live_migrate_delete to
use FakeDriver instead of mock.side_effect.

Change-Id: I7eae472b9cbef98ed77cdf22141c8332b17d37c2
2017-11-22 14:40:56 +00:00
Balazs Gibizer 3d663a7608 Test resource allocation during soft delete
This patch covers the following two scenarios while checking the
resource allocations at every steps:
* boot a server, soft delete, wait until automatic reclaim
* boot a server, soft delete, restore, normal delete

Change-Id: I635481b944b8a6c73001bbc69f1393a2eeb54527
2017-11-22 14:40:42 +00:00
Balazs Gibizer f4b6a6872b factor out compute service start in ServerMovingTest
Starting multiple compute service in a single functional test is
not a single line of code and it repeated multiple times. So
this patch pulls that code out into a common util function.

Change-Id: I204e17fe105f6378f1c9f8a7fc622a1886babecc
2017-11-22 14:40:34 +00:00
Balazs Gibizer 6c49c2c8fc Moving more utils to ProviderUsageBaseTestCase
The I55edd2c6e4c752dbe675b6d51d71a047bf49597a refactor created a base class
for test cases that are checking allocations. This patch moves additional util
functions from the ServerMovingTest class to the base. The subsequent patch
covering soft delete cases needs these utils for non server moving tests.

Also the utils are made more generic to handle arbitrary number of compute
services. For this to work the setUp of the existing test classes needed
a small enhancement too.

Change-Id: I8430d39b8e8147731080e76f14a1a2b809c9863c
2017-11-22 15:33:39 +01:00
Zuul f69d98ea74 Merge "Allow shuffling hosts with the same best weight" 2017-11-22 14:14:13 +00:00
Zuul e9ce5c4c95 Merge "Update bindep.txt for doc builds" 2017-11-22 03:44:14 +00:00
Zuul 8628c75738 Merge "Service token is not experimental" 2017-11-21 20:52:45 +00:00
Zuul 24152a8f8f Merge "Get auth from context for glance endpoint" 2017-11-21 20:04:25 +00:00
Andreas Jaeger 338ed6f955 Update bindep.txt for doc builds
https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
specifies that doc dependencies need the doc tag in bindep, use it.

Leave test environment in for transition period until we use the new
scripts.

Change-Id: I851a06fbc07a84f70ee76e78062777ad2bade764
2017-11-21 21:01:09 +01:00
Zuul fdf50a1a62 Merge "cleanup mapping/reqspec after archive instance" 2017-11-21 19:04:28 +00:00
Zuul 2469b3593d Merge "vgpu: add enabled white list" 2017-11-21 18:05:34 +00:00
Eric Fried 1acfac0101 Service token is not experimental
The service token feature is no longer considered experimental.  This
change set rewords the help strings in the service_token conf
accordingly (fixing some typographical issues at the same time).

Change-Id: Ibaf06ff4f19283544de720b0b5f01ddf655b0b46
2017-11-21 17:36:32 +00:00
Zuul 1878039f8f Merge "Merge flavor extensions controller code" 2017-11-21 17:30:46 +00:00
Zuul aa170b0088 Merge "Deduplicate keypair notification samples" 2017-11-21 16:31:06 +00:00
Eric Fried 9519601401 Get auth from context for glance endpoint
Change the Adapter loading for glance to use the auth from the user
context instead of exposing and requiring it in the conf.  With this
change, it is possible to leave the [glance] conf section empty and
still be able to discover the image API endpoint from the service
catalog.

Note that, when we do this, we often end up with the user auth being a
_ContextAuthPlugin, which doesn't conform to the characteristics of
keystoneauth1.identity.base.BaseIdentityPlugin as augmented in
keystoneauth1 3.1.0.  This requires a series of workarounds until bug
1709118 is fixed.  These, along with workarounds for bugs 1707993 and
1707995, are subsumed with this change set in a (hopefully temporary)
helper method nova.utils.get_endpoint.

This lays the foundation for other services that should use user
context for authentication - those via which Nova is acting on behalf
of the user, i.e. cinder, keystone, and (sometimes) neutron[1].
(Services such as placement and ironic (and sometimes neutron) should
continue to use admin auth context loaded from the conf.)

[1] https://github.com/openstack/nova/blob/bb4faf40dfb02237af119646a5ebd960b072b31e/nova/network/neutronv2/api.py#L149-L160

Co-Authored-By: Eric Fried <efried@us.ibm.com>
Partial-Implements: bp use-ksa-adapter-for-endpoints
Change-Id: I4e755b9c66ec8bc3af0393e81cffd91c56064717
2017-11-21 10:26:42 -06:00
Zuul bb4faf40df Merge "placement: Document in: prefix for ?member_of=" 2017-11-21 15:25:58 +00:00
Zuul abab805011 Merge "placement: Document request headers in api-ref" 2017-11-21 15:25:48 +00:00