]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
8 years agoMerge "Stop using mox from compute/test_multiple_create.py"
Jenkins [Thu, 24 Nov 2016 17:13:34 +0000 (17:13 +0000)]
Merge "Stop using mox from compute/test_multiple_create.py"

8 years agoMerge "Stop using mox stubs in test_snapshots.py"
Jenkins [Thu, 24 Nov 2016 17:12:54 +0000 (17:12 +0000)]
Merge "Stop using mox stubs in test_snapshots.py"

8 years agoMerge "Stop using mox stubs in nova/tests/unit/virt/disk"
Jenkins [Thu, 24 Nov 2016 17:08:47 +0000 (17:08 +0000)]
Merge "Stop using mox stubs in nova/tests/unit/virt/disk"

8 years agoMerge "Transform instance.finish_resize notifications"
Jenkins [Thu, 24 Nov 2016 11:12:16 +0000 (11:12 +0000)]
Merge "Transform instance.finish_resize notifications"

8 years agoMerge "Add context param to confirm_migration virt call"
Jenkins [Thu, 24 Nov 2016 10:51:47 +0000 (10:51 +0000)]
Merge "Add context param to confirm_migration virt call"

8 years agoMerge "Remove the description of compute_api_class option"
Jenkins [Thu, 24 Nov 2016 10:51:13 +0000 (10:51 +0000)]
Merge "Remove the description of compute_api_class option"

8 years agoMerge "Notification object version test depends on SCHEMA"
Jenkins [Thu, 24 Nov 2016 10:50:29 +0000 (10:50 +0000)]
Merge "Notification object version test depends on SCHEMA"

8 years agoMerge "doc: Add guidline about notification payload"
Jenkins [Thu, 24 Nov 2016 10:49:43 +0000 (10:49 +0000)]
Merge "doc: Add guidline about notification payload"

8 years agoMerge "Use pick_context_manager throughout DB APIs"
Jenkins [Thu, 24 Nov 2016 08:09:56 +0000 (08:09 +0000)]
Merge "Use pick_context_manager throughout DB APIs"

8 years agoMerge "Implement get and set aggregates in the placement API"
Jenkins [Thu, 24 Nov 2016 06:58:58 +0000 (06:58 +0000)]
Merge "Implement get and set aggregates in the placement API"

8 years agoMerge "INFO level logging should be useful in resource tracker"
Jenkins [Thu, 24 Nov 2016 03:41:07 +0000 (03:41 +0000)]
Merge "INFO level logging should be useful in resource tracker"

8 years agoMerge "Fix a typo in nova/api/openstack/compute/volumes.py"
Jenkins [Thu, 24 Nov 2016 03:21:56 +0000 (03:21 +0000)]
Merge "Fix a typo in nova/api/openstack/compute/volumes.py"

8 years agoMerge "Hyper-V: fix image handling when shared storage is being used"
Jenkins [Thu, 24 Nov 2016 02:14:54 +0000 (02:14 +0000)]
Merge "Hyper-V: fix image handling when shared storage is being used"

8 years agoMerge "[placement] increase gabbi coverage of handlers.resource_provider"
Jenkins [Wed, 23 Nov 2016 23:12:08 +0000 (23:12 +0000)]
Merge "[placement] increase gabbi coverage of handlers.resource_provider"

8 years agoMerge "[placement] increase gabbi coverage of handlers.inventory"
Jenkins [Wed, 23 Nov 2016 23:11:17 +0000 (23:11 +0000)]
Merge "[placement] increase gabbi coverage of handlers.inventory"

8 years agoMerge "[placement] increase gabbi coverage of handlers.allocation"
Jenkins [Wed, 23 Nov 2016 23:08:45 +0000 (23:08 +0000)]
Merge "[placement] increase gabbi coverage of handlers.allocation"

8 years agoFix a typo in nova/api/openstack/compute/volumes.py
Takashi NATSUME [Tue, 22 Nov 2016 06:21:17 +0000 (15:21 +0900)]
Fix a typo in nova/api/openstack/compute/volumes.py

he -> the

TrivialFix
Change-Id: I306867800fabbdf0b6516e2459c0d9d00d627c7b

8 years agoMerge "Return build_requests instead of instances"
Jenkins [Wed, 23 Nov 2016 20:40:24 +0000 (20:40 +0000)]
Merge "Return build_requests instead of instances"

8 years agoMerge "Add {get_,set_}aggregates to objects.ResourceProvider"
Jenkins [Wed, 23 Nov 2016 17:52:17 +0000 (17:52 +0000)]
Merge "Add {get_,set_}aggregates to objects.ResourceProvider"

8 years agoMerge "libvirt: do not return serial address if disabled on destination"
Jenkins [Wed, 23 Nov 2016 16:22:46 +0000 (16:22 +0000)]
Merge "libvirt: do not return serial address if disabled on destination"

8 years agoReturn build_requests instead of instances
Andrey Volkov [Tue, 20 Sep 2016 14:11:22 +0000 (17:11 +0300)]
Return build_requests instead of instances

This patch is preparation step to move the instance creation to
the conductor. The goal is to move out the instance.create call from
the _provision_instances method.

The _provision_instances method return value is changed
from list of instances to the tuple containing a list of build_requests
and RequestSpec object. We also return the instance_mapping list so
that we can properly clean up residue if we fail to create in the caller.

Co-Authored-By: Dan Smith <dansmith@redhat.com>
Implements: bp cells-scheduling-interaction
Change-Id: I60abcd4f27dc877c4e420071be77c9fdb697ad99

8 years agoMerge "Remove deprecated nova-all binary"
Jenkins [Wed, 23 Nov 2016 15:39:45 +0000 (15:39 +0000)]
Merge "Remove deprecated nova-all binary"

8 years agoMerge "conf: Attempt to resolve TODOs in scheduler.py"
Jenkins [Wed, 23 Nov 2016 15:39:10 +0000 (15:39 +0000)]
Merge "conf: Attempt to resolve TODOs in scheduler.py"

8 years agoMerge "conf: Remove 'scheduler_json_config_location'"
Jenkins [Wed, 23 Nov 2016 15:38:32 +0000 (15:38 +0000)]
Merge "conf: Remove 'scheduler_json_config_location'"

8 years agoMerge "Add is_cell0 helper method"
Jenkins [Wed, 23 Nov 2016 15:34:54 +0000 (15:34 +0000)]
Merge "Add is_cell0 helper method"

8 years agodoc: Add guidline about notification payload
Balazs Gibizer [Wed, 20 Apr 2016 15:07:36 +0000 (17:07 +0200)]
doc: Add guidline about notification payload

To help adding new notification to nova we shall have a guideline
what should and what should not be in the notification payload.

Change-Id: Ic85d304974bbfa7e02999ec3d6c9bba1d1aed3c8

8 years agoMerge "remove additional param"
Jenkins [Wed, 23 Nov 2016 07:35:45 +0000 (07:35 +0000)]
Merge "remove additional param"

8 years agoMerge "Remove redundant VersionedObject Fields"
Jenkins [Wed, 23 Nov 2016 07:16:48 +0000 (07:16 +0000)]
Merge "Remove redundant VersionedObject Fields"

8 years agoMerge "placement: adds ResourceClass.get_by_name()"
Jenkins [Wed, 23 Nov 2016 06:54:00 +0000 (06:54 +0000)]
Merge "placement: adds ResourceClass.get_by_name()"

8 years agoMerge "placement: adds ResourceClass.create()"
Jenkins [Wed, 23 Nov 2016 06:53:25 +0000 (06:53 +0000)]
Merge "placement: adds ResourceClass.create()"

8 years agoMerge "Transform instance.create.error notification"
Jenkins [Wed, 23 Nov 2016 05:19:08 +0000 (05:19 +0000)]
Merge "Transform instance.create.error notification"

8 years agoMerge "Transform instance.create notification"
Jenkins [Wed, 23 Nov 2016 05:18:40 +0000 (05:18 +0000)]
Merge "Transform instance.create notification"

8 years agoMerge "Add TODO for returning a 202 from the volume attach API"
Jenkins [Wed, 23 Nov 2016 04:56:01 +0000 (04:56 +0000)]
Merge "Add TODO for returning a 202 from the volume attach API"

8 years agoMerge "hyper-v: wait for neutron vif plug events"
Jenkins [Wed, 23 Nov 2016 04:00:11 +0000 (04:00 +0000)]
Merge "hyper-v: wait for neutron vif plug events"

8 years agoMerge "Refactor two nearly useless secgroup tests"
Jenkins [Wed, 23 Nov 2016 03:59:06 +0000 (03:59 +0000)]
Merge "Refactor two nearly useless secgroup tests"

8 years agoMerge "Add index on instances table across project_id and updated_at"
Jenkins [Wed, 23 Nov 2016 03:53:12 +0000 (03:53 +0000)]
Merge "Add index on instances table across project_id and updated_at"

8 years agoAdd TODO for returning a 202 from the volume attach API
Matt Riedemann [Wed, 23 Nov 2016 01:44:53 +0000 (20:44 -0500)]
Add TODO for returning a 202 from the volume attach API

Attaching a volume is an RPC cast from the API node to the
compute node, so we should return a 202 instead of a 200
in the response. Making that change would break Tempest though
which expects a 200 response code, and we have several other
APIs with similar response code issues:

http://paste.openstack.org/show/590154/

So this just adds a TODO for the same bucket of issues which
we'll probably need to handle in a single microversion.

Change-Id: I0bee2ea8681cc001dd490607213bc987ec70301f

8 years agoRefactor two nearly useless secgroup tests
Dan Smith [Thu, 3 Nov 2016 17:50:26 +0000 (10:50 -0700)]
Refactor two nearly useless secgroup tests

There are two tests that masquerade as "compute api tests" to
validate some instance security group associations. However, those
are just there because it's a convenient place to create instances
with a full complement of things. They depend on behaviors we're
about to move, and are also slated to be irrelevant when we remove
nova-network. In the meantime, move them closer to the other tests
for the bits they are exercising to get them out of the way of
the following patch.

Change-Id: I58f2d9d166446cd762a2fd4ad9d6b4bf5fff0c1d

8 years agoTransform instance.finish_resize notifications
Julian Sy [Wed, 19 Oct 2016 15:51:45 +0000 (15:51 +0000)]
Transform instance.finish_resize notifications

The instance.finish_resize.start and instance.finish_resize.end
notifications are transformed to the versioned framework.

Change-Id: I2ca79040a91368212fdf50593ef012a669a4a12a
Implements: bp versioned-notification-transformation-ocata

8 years agoRemove redundant VersionedObject Fields
Matt Riedemann [Tue, 22 Nov 2016 20:47:53 +0000 (15:47 -0500)]
Remove redundant VersionedObject Fields

This removes the NonNegativeInteger NonNegativeFloat and
IPV4AndV6Address Fields, since they already are defined in ovo.

implements bp json-schema-for-versioned-object

Depends-On: I083c854d0e1d18806169a1454e8127eda9e8ffb8

Change-Id: I61b7b6fa53013aff200e55b7031d5ba23669e1f4

8 years agoMerge "Store security groups in RequestSpec"
Jenkins [Tue, 22 Nov 2016 20:43:22 +0000 (20:43 +0000)]
Merge "Store security groups in RequestSpec"

8 years agoMerge "Remove unused code in nova/api/openstack/wsgi.py"
Jenkins [Tue, 22 Nov 2016 20:11:20 +0000 (20:11 +0000)]
Merge "Remove unused code in nova/api/openstack/wsgi.py"

8 years agoTransform instance.create.error notification
Gábor Antal [Tue, 15 Nov 2016 12:22:31 +0000 (13:22 +0100)]
Transform instance.create.error notification

Along with the transformation changes, I modified notify_about_instance_action
method so it can handle errors now. (It wraps the exception object into an
ExceptionPayload.)

Implements: bp versioned-notification-transformation-ocata

Change-Id: I171990290c8de529c9521a5ee556f97b18b741b0

8 years agoTransform instance.create notification
Gábor Antal [Mon, 10 Oct 2016 16:14:52 +0000 (18:14 +0200)]
Transform instance.create notification

We don't need image_name as an extra usage information, because
in the versioned notification, we have image_uuid which can be used
to get the name of the image from glance, if needed.

Change-Id: I1f3ea8d74a2e59049447c3045a293ce0babfb427
Implements: bp versioned-notification-transformation-ocata

8 years ago[placement] increase gabbi coverage of handlers.resource_provider
Chris Dent [Thu, 10 Nov 2016 18:50:09 +0000 (18:50 +0000)]
[placement] increase gabbi coverage of handlers.resource_provider

Cover a 409 that should happen when trying to delete a resource
provider for which there are allocations.

Change-Id: Id07c8dbc334aff94fd079de867f8db6256bc6973

8 years ago[placement] increase gabbi coverage of handlers.inventory
Chris Dent [Thu, 10 Nov 2016 18:29:42 +0000 (18:29 +0000)]
[placement] increase gabbi coverage of handlers.inventory

Test for correctly formed but invalid data when creating an Inventory.
This increases the coverage of the inventory handler from gabbi.

Race condition and ConcurrentUpdateDetected scenarios are not
covered as those are hard to cause from a gabbi test.

Change-Id: I603558c08d540aa53918252a0a9a050701456f5a

8 years ago[placement] increase gabbi coverage of handlers.allocation
Chris Dent [Thu, 10 Nov 2016 18:00:35 +0000 (18:00 +0000)]
[placement] increase gabbi coverage of handlers.allocation

A case where a non-existent resource provider in an allocation PUT
request could raise a 400 was not covered. Now it is.

This still leave a ConcurrentUpdateDetected exception (which can
lead to 409) not covered. There's no simple way to cause such a
thing from a gabbi test.

Change-Id: I98243b679ba8101663d459cb9a76f7015078aff7

8 years agolibvirt: do not return serial address if disabled on destination
Sahid Orentino Ferdjaoui [Mon, 14 Nov 2016 16:10:58 +0000 (11:10 -0500)]
libvirt: do not return serial address if disabled on destination

During live migration, the check on the destination host is returning
the address of serial proxy even if disabled. However, the absence of
this serial address is the signal the source node needs to know to
determine if the target node supports the serial console feature.
The absence of the serial_listen_addr is specified by the value None.
This makes it also necessary to *not* do a string conversion of None,
as this (maybe surprisingly) results in the string 'None'. The string
'None' however is *not* a valid serial_listen_addr value, as this
must be a valid IP address. The reason for this is, that this value
is used to update the domain XML of the libvirt guest.

This change is also a preparation for the fix of bug 1455252.

Co-Authored-By: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Change-Id: I01dc0424ea3cf5576ed9d2b49a7a3e458324fbe4

8 years agoMerge "Complete verification for os-floating-ips"
Jenkins [Tue, 22 Nov 2016 13:22:49 +0000 (13:22 +0000)]
Merge "Complete verification for os-floating-ips"

8 years agoMerge "Typo error about help libvirt.py"
Jenkins [Tue, 22 Nov 2016 13:15:42 +0000 (13:15 +0000)]
Merge "Typo error about help    libvirt.py"

8 years agoMerge "Remove mox from unit/virt/libvirt/test_imagebackend.py (1)"
Jenkins [Tue, 22 Nov 2016 08:39:53 +0000 (08:39 +0000)]
Merge "Remove mox from unit/virt/libvirt/test_imagebackend.py (1)"

8 years agoMerge "Use byte string or utf8 depending on python version for wsgi"
Jenkins [Tue, 22 Nov 2016 08:38:17 +0000 (08:38 +0000)]
Merge "Use byte string or utf8 depending on python version for wsgi"

8 years agoMerge "Add handle for 2 exceptions in force_delete"
Jenkins [Tue, 22 Nov 2016 08:37:40 +0000 (08:37 +0000)]
Merge "Add handle for 2 exceptions in force_delete"

8 years agoMerge "Typo error servers.py"
Jenkins [Tue, 22 Nov 2016 08:36:37 +0000 (08:36 +0000)]
Merge "Typo error servers.py"

8 years agoMerge "Typo error allocations.yaml"
Jenkins [Tue, 22 Nov 2016 07:47:09 +0000 (07:47 +0000)]
Merge "Typo error allocations.yaml"

8 years agoAdd index on instances table across project_id and updated_at
int32bit [Fri, 18 Nov 2016 16:08:12 +0000 (00:08 +0800)]
Add index on instances table across project_id and updated_at

We should have an index on the instances.updated_at table because
that's what's used to filter instances when using the --changes-since
filter parameter with nova list.

Closes-Bug: #1642729

Change-Id: I4c723839f36efddd95cd24d745fb71c96c75d2c1

8 years agoComplete verification for os-floating-ips
stewie925 [Tue, 14 Jun 2016 21:33:03 +0000 (14:33 -0700)]
Complete verification for os-floating-ips

This includes the parameter, example, and body
verification for os-floating-ips.

part of bp:api-ref-in-rst-ocata

Change-Id: I4beff34b41baf77827a2e4d916ad5319bdefbfa1

8 years agoplacement: adds ResourceClass.get_by_name()
Jay Pipes [Mon, 31 Oct 2016 12:58:38 +0000 (08:58 -0400)]
placement: adds ResourceClass.get_by_name()

The next patch in this series adds the ability to delete a custom
resource class. In order to implement that, we need a method to return a
single objects.ResourceClass object by string name. This patch adds that
method, implemented by using the resource class cache in a transparent
manner.

Change-Id: I92f84ed24518155a77f281057808750803c84889
blueprint: custom-resource-classes

8 years agoMerge "Refactor console checks in live migration process"
Jenkins [Mon, 21 Nov 2016 21:21:59 +0000 (21:21 +0000)]
Merge "Refactor console checks in live migration process"

8 years agoplacement: adds ResourceClass.create()
Jay Pipes [Fri, 14 Oct 2016 22:21:17 +0000 (18:21 -0400)]
placement: adds ResourceClass.create()

Adds in the implementation of objects.ResourceClass.create() with checks
that the custom resource class being added doesn't overlap with any
standard (or previously-added custom) resource classes. The
implementation uses a hard-coded number 10000 to mark the start of
custom resource class integer identifiers to make it easy to
differentiate custom resource classes. Note that we do NOT increment the
object version here because nothing as-yet calls the ResourceClass
object.

Also note that this patch adds a required "CUSTOM_" namespace prefix to
all custom resource classes. Followup patches will also place this
constraint into the JSONSchema for POST /resource_classes. The CUSTOM_
namespace is required in order to ensure that custom resource class
names never conflict with future standard resource class additions.

Change-Id: I4532031da19abaf87b1c2e30b5f70ff269c3ffc8
blueprint: custom-resource-classes

8 years agoUse byte string or utf8 depending on python version for wsgi
Juan Antonio Osorio Robles [Mon, 21 Nov 2016 16:43:21 +0000 (18:43 +0200)]
Use byte string or utf8 depending on python version for wsgi

A recent change to the wsgi code broke deployments running over
httpd/mod_wsgi. This is because for py2.X mod_wsgi accepts byte
strings and breaks with utf8. However, for py3.X, utf8 is
accepted. So this acts accordingly.

Change-Id: I81739bc3de9d623b718987b5fc18eaf851533902
Closes-Bug: #1643511

8 years agoStop using mox stubs in nova/tests/unit/virt/disk
Takashi NATSUME [Mon, 30 May 2016 11:26:37 +0000 (20:26 +0900)]
Stop using mox stubs in nova/tests/unit/virt/disk

Change-Id: I1e9030ec73eab191ef269400cd47a9241e036b99
Implements: blueprint remove-mox-ocata

8 years agoMerge "Fix mock arg list order in test_driver.py"
Jenkins [Mon, 21 Nov 2016 08:13:10 +0000 (08:13 +0000)]
Merge "Fix mock arg list order in test_driver.py"

8 years agoRemove the description of compute_api_class option
liusheng [Fri, 18 Nov 2016 06:21:16 +0000 (14:21 +0800)]
Remove the description of compute_api_class option

Since this config option has been removed long ago.

Change-Id: I40a196a63a293dc18282ae80d2b263b05f5ddd1c

8 years agoMerge "[PY3] byte/string conversions and enable PY3 test"
Jenkins [Sat, 19 Nov 2016 02:37:24 +0000 (02:37 +0000)]
Merge "[PY3] byte/string conversions and enable PY3 test"

8 years agoMerge "Database poison note"
Jenkins [Sat, 19 Nov 2016 01:46:33 +0000 (01:46 +0000)]
Merge "Database poison note"

8 years agoMerge "HyperV: use os-brick for volume related operations"
Jenkins [Sat, 19 Nov 2016 01:36:48 +0000 (01:36 +0000)]
Merge "HyperV: use os-brick for volume related operations"

8 years agoMerge "Fix detach_interface() call from external event handler"
Jenkins [Sat, 19 Nov 2016 00:16:47 +0000 (00:16 +0000)]
Merge "Fix detach_interface() call from external event handler"

8 years agoAdd context param to confirm_migration virt call
jichenjc [Thu, 6 Oct 2016 10:33:38 +0000 (18:33 +0800)]
Add context param to confirm_migration virt call

those param will be helpful like other virt layers
e.g do some auditing or log.

Change-Id: I6f4a8ab65de51ec006726aa3da27bf58d141c94f
Closes-Bug: 1631347

8 years agoMerge "conf: remove deprecated cells driver option"
Jenkins [Fri, 18 Nov 2016 18:24:37 +0000 (18:24 +0000)]
Merge "conf: remove deprecated cells driver option"

8 years agoUse pick_context_manager throughout DB APIs
melanie witt [Fri, 18 Nov 2016 17:08:00 +0000 (17:08 +0000)]
Use pick_context_manager throughout DB APIs

The pick_context_manager method will use a connection to a cell
database if one is present in the RequestContext, else it falls
back on the global main_context_manager in the DB API.

Currently, there are several places in our DB API code where
pick_context_manager isn't used because in a real scenario, each
cell is in a separate process where main_context_manager points
to its local database. This causes problems for testing though,
because we are unable to patch the DB API to simulate switching
between multiple 'main' databases in our functional tests because
of the global nature of main_context_manager.

This replaces all uses of main_context_manager with
pick_context_manager to:

  1. Make switching between multiple databases able to work in
     functional tests
  2. Fix any possible cases where pick_context_manager is not
     used for a DB API method that could be called from the
     API using target_cell

Change-Id: I31e3170e0953cefbf49bfc84b29edab514c90cb5

8 years agoDatabase poison note
Diana Clarke [Fri, 18 Nov 2016 16:09:53 +0000 (11:09 -0500)]
Database poison note

Add a few tips for folks that encounter database poison exceptions.

Change-Id: Ic54d9d2fdd100e20e020fb7944f1f7f16be82db0
Related-Bug: #1568414

8 years agoremove additional param
jichenjc [Fri, 18 Nov 2016 04:50:23 +0000 (12:50 +0800)]
remove additional param

this detail param is not accepted by exception, remove it
TrivialFix

Change-Id: I10af757cac0abb6e6ef66e6fd1582a471a0cdea8

8 years agoRemove unused code in nova/api/openstack/wsgi.py
Takashi NATSUME [Fri, 11 Nov 2016 03:19:07 +0000 (12:19 +0900)]
Remove unused code in nova/api/openstack/wsgi.py

The 'get_media_map' method hasn't been used
since I8d37751624ca1d381e1098a3a6349922a4c5ef6a.

TrivialFix
Change-Id: I3d3e08fa2f305cecfe7e2f01791d39bc0f3ef868

8 years agoconf: remove deprecated cells driver option
Maciej Szankin [Wed, 16 Nov 2016 15:44:43 +0000 (09:44 -0600)]
conf: remove deprecated cells driver option

Change-Id: I582e53c24f1eebf83bbbdaa00164336d10bbcfdb
Implements: blueprint centralize-config-options-ocata

8 years agoFix detach_interface() call from external event handler
Dan Smith [Thu, 17 Nov 2016 17:59:32 +0000 (09:59 -0800)]
Fix detach_interface() call from external event handler

The signature for VirtDriver.detach_interface() changed recently in
41591c9456fd4eb91407551b9b9898e8f4974050, but the call from the
external event handler was not updated. This does that.

Change-Id: I560920ed521f09909d91bb0aac42bf97447475b0
Closes-Bug: #1642681

8 years agoImplement get and set aggregates in the placement API
Chris Dent [Fri, 19 Aug 2016 16:14:14 +0000 (16:14 +0000)]
Implement get and set aggregates in the placement API

/resource_providers/{uuid}/aggregates
GET for a list of aggregate uuids associated with this resource
    provider
PUT to set the list of aggregate uuids associated with this this
    provider

The API requests map directly to set_ and get_ aggregates on the
ResourceProvider object.

This is implemented as placement API microversion 1.1. To make that
easier a raise_404_if_not_version helper method is added to the
microversion module.

The new rest_api_version_history doc is updated to reflect this
new version.

Change-Id: I514c15c7d387cf25bf7986d07baccf0e7a785f46
Partially-Implements: blueprint generic-resource-pools-ocata

8 years agoAdd {get_,set_}aggregates to objects.ResourceProvider
Chris Dent [Sun, 14 Aug 2016 18:30:01 +0000 (18:30 +0000)]
Add {get_,set_}aggregates to objects.ResourceProvider

The Placement API will provide support for associating a list of
aggregate uuids with a resource provider. This is a way of stating
that, for example, a shared storage provider can be used by
compute hosts in aggregates A, B and C.

This change implements the basic get and set functionality required
on the ResourceProvider object as callable methods. Using fields was
also considered but given the precedent with set_inventory and
friends, methods were chosen. Because methods were chosen, explict
get and set-based names were used to avoid confusion with fields or
properties. Since the methods will only be called from the placement
API service, they are not remotable.

The aggregates are stored in the PlacementAggregates model, which is
a recently introduced new table (in Change
Id0355cb022f68e962af306ff04cf724d22b68d19).

As the guts of the complexity are in the database handling, tests
are on the functional side.

Change-Id: I95258e632f2c034e5b7b803a753f393ad715ca50
Partially-Implements: blueprint generic-resource-pools-ocata

8 years agoLog a warning when starting nova-net in non-cellsv1 deployments
Matt Riedemann [Thu, 17 Nov 2016 16:51:00 +0000 (11:51 -0500)]
Log a warning when starting nova-net in non-cellsv1 deployments

We're going to make nova-network fail to start except in cellsv1
deployments before we release Ocata, so log a warning when starting
the service outside of cellsv1. The current plan is to make this
fatal after the o-2 milestone, essentially redoing commit
c07046edeee562142c90aa3cadd4bdc47b0a15da.

Change-Id: Iff949cdb08171c16edc18938ae987079c5be222e
Related-Bug: #1629133

8 years agoRevert "Make n-net refuse to start unless using CellsV1"
Matt Riedemann [Thu, 17 Nov 2016 16:46:13 +0000 (11:46 -0500)]
Revert "Make n-net refuse to start unless using CellsV1"

This reverts commit c07046edeee562142c90aa3cadd4bdc47b0a15da.

Trove's CI jobs don't currently work with Neutron due to
bug 1629133 so this is a temporary revert until the Trove CI/infra
networking situation gets sorted out. We have agreement from
the Trove PTL to revert this revert after the o-2 milestone on
2016/12/15.

Change-Id: Ia4fc545a10c7c16532aefd73818dd7d90c9c271b
Related-Bug: #1629133

8 years agoHyperV: use os-brick for volume related operations
Lucian Petrut [Tue, 8 Dec 2015 12:39:17 +0000 (04:39 -0800)]
HyperV: use os-brick for volume related operations

This patch refactors volumeops.py to use os-brick for volume
related operations.

The immediate benefits are:
* FC support
* improved iSCSI MPIO support
* simplified volume connect/disconnect workflow

Change-Id: Ib21947141aadca1fa6cb99afc07a175ce14d192e
Depends-On: I19dfc8dd2e9e8a1b17675b55c63de903804480e4
Implements: blueprint hyperv-use-os-brick

8 years agoINFO level logging should be useful in resource tracker
Bob Ball [Thu, 17 Nov 2016 15:09:05 +0000 (15:09 +0000)]
INFO level logging should be useful in resource tracker

Rather than log messages such as "Starting to do work" at INFO level,
these should be logged at DEBUG level.  Useful information, such as the
final resource view, should continue to be logged at INFO.

Change-Id: Ib69fb8df4c6bcdb813852ecbad9cda039b27f0b1
Closes-bug: #1642589

8 years agoMerge "doc: Update libvirt-numa guide"
Jenkins [Thu, 17 Nov 2016 14:05:38 +0000 (14:05 +0000)]
Merge "doc: Update libvirt-numa guide"

8 years agoMerge "No return for flavor destroy"
Jenkins [Thu, 17 Nov 2016 14:04:45 +0000 (14:04 +0000)]
Merge "No return for flavor destroy"

8 years agoMerge "conf: Remove extraneous whitespace"
Jenkins [Thu, 17 Nov 2016 14:03:55 +0000 (14:03 +0000)]
Merge "conf: Remove extraneous whitespace"

8 years agoMerge "Updated from global requirements"
Jenkins [Thu, 17 Nov 2016 13:59:33 +0000 (13:59 +0000)]
Merge "Updated from global requirements"

8 years agohyper-v: wait for neutron vif plug events
Claudiu Belu [Thu, 17 Nov 2016 11:10:06 +0000 (13:10 +0200)]
hyper-v: wait for neutron vif plug events

During spawn, the Hyper-V driver should wait for the Neutron
VIF plug events before starting the instance, in order to ensure
that the VIFs are already bound and the guest will be able to
send DHCP requests.

The configuration option "vif_plugging_timeout" will determine
the maximum amount of time to wait for the Neutron events.

Setting the configuration option "vif_plugging_is_fatal" to True
will cause an exception to be raised during spawn, if the Hyper-V
driver did not receive needed Neutron port bound events.

Closes-Bug: #1631872

Change-Id: Ie8b4cc64f580aca1115d88258728ab90241d112b

8 years ago[PY3] byte/string conversions and enable PY3 test
dineshbhor [Tue, 21 Jun 2016 14:41:13 +0000 (20:11 +0530)]
[PY3] byte/string conversions and enable PY3 test

* The dict.items()[0] will raise a TypeError in PY3,
  as dict.items() doesn't return a list any more in PY3
  but a view of list.
* Webob response body should be bytes not strings so used
  oslo_utils.encodeutils.safe_decode to decode it.

Partially implements blueprint: goal-python35
Co-Authored-By: ChangBo Guo(gcb) <eric.guo@easystack.cn>
Change-Id: I38d416923bc0cec0ca98c4494dd1e06cd49671cf

8 years agoFix mock arg list order in test_driver.py
int32bit [Sun, 13 Nov 2016 09:37:14 +0000 (17:37 +0800)]
Fix mock arg list order in test_driver.py

When we use nest patch decorators the mocks, they are passed in to the
decorated function in the same order they applied, this means should be
from the bottom up. Though We have never use these arguments in this
function and the order may not very important, it's a little misleading.
So I think we should fix it.

Change-Id: I459780a17998382b61f56377bfa17651a5f99f51

8 years agoAdd handle for 2 exceptions in force_delete
jichenjc [Mon, 14 Nov 2016 18:38:39 +0000 (02:38 +0800)]
Add handle for 2 exceptions in force_delete

as force_delete is same to delete action, we need handle
InstanceNotFound and InstanceCellUnknown exception.

Change-Id: I1840f8f4ac1b793fd6348b4d056cb94e1333e596
Related-Bug: 1641523

8 years agoTypo error about help libvirt.py
pangliye [Thu, 17 Nov 2016 01:20:45 +0000 (09:20 +0800)]
Typo error about help    libvirt.py

Change-Id: I08bb5bcf499421acb3aa237779672bc823bbc2de

8 years agoMerge "Fix data error in api samples doc"
Jenkins [Thu, 17 Nov 2016 01:11:26 +0000 (01:11 +0000)]
Merge "Fix data error in api samples doc"

8 years agoMerge "Make n-net refuse to start unless using CellsV1"
Jenkins [Thu, 17 Nov 2016 01:01:19 +0000 (01:01 +0000)]
Merge "Make n-net refuse to start unless using CellsV1"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 16 Nov 2016 21:59:09 +0000 (21:59 +0000)]
Updated from global requirements

Change-Id: I56f82972fe87410d5d4e2d222fdeaec632fbbea1

8 years agoMerge "Fix cold migration with qcow2 ephemeral disks"
Jenkins [Wed, 16 Nov 2016 21:57:08 +0000 (21:57 +0000)]
Merge "Fix cold migration with qcow2 ephemeral disks"

8 years agoMake n-net refuse to start unless using CellsV1
Dan Smith [Tue, 1 Nov 2016 17:00:07 +0000 (10:00 -0700)]
Make n-net refuse to start unless using CellsV1

At the Barcenlona summit, we discussed disabling n-net everywhere as a
precursor to removal. The only exception for using n-net is as required
for CellsV1 users, which require it as the only out-of-the-box supported
networking option.

We will remove this check and n-net entirely when those users have a
migration path to neutron and cellsv2.

Depends-On: I47f72eac6a7657bf44319fa5d2df18ce62827f6f

Change-Id: I7309afa5230bcaeeeddb554d95c327d3a614ae6e

8 years agoStore security groups in RequestSpec
Dan Smith [Mon, 7 Nov 2016 18:39:16 +0000 (10:39 -0800)]
Store security groups in RequestSpec

This adds a security_groups field to the RequestSpec object so
that we can communicate those as part of the request to other
services. Historically this has been a formal RPC parameter to
compute (and later conductor), which was a list of string names.
Putting it here in the request spec means that we can easily
pass a list of real objects, and that we can persist them with
the request spec for later reconstruction of the original request
when appropriate, such as for a rebuild operation.

Change-Id: I2107ec6260954561b5d31b91ad3f27fd325400e2

8 years agoFix data error in api samples doc
int32bit [Tue, 15 Nov 2016 16:38:57 +0000 (00:38 +0800)]
Fix data error in api samples doc

Change-Id: I8c4f49d18968636da7e76b51acc6053f169e3ae0
Closes-Bug: #1641988

8 years agoMerge "Add the initial documentation for the placement API"
Jenkins [Wed, 16 Nov 2016 12:11:57 +0000 (12:11 +0000)]
Merge "Add the initial documentation for the placement API"

8 years agoMerge "Virt: add context to attach and detach interface"
Jenkins [Wed, 16 Nov 2016 12:11:19 +0000 (12:11 +0000)]
Merge "Virt: add context to attach and detach interface"