]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
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 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 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 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 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 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 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 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 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 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"

8 years agoMerge "Clarify the approval process of specless blueprints"
Jenkins [Wed, 16 Nov 2016 11:43:27 +0000 (11:43 +0000)]
Merge "Clarify the approval process of specless blueprints"

8 years agoMerge "API Ref: update server_id params"
Jenkins [Wed, 16 Nov 2016 11:42:44 +0000 (11:42 +0000)]
Merge "API Ref: update server_id params"

8 years agoMerge "[placement] Enforce min_unit, max_unit and step_size"
Jenkins [Wed, 16 Nov 2016 11:42:07 +0000 (11:42 +0000)]
Merge "[placement] Enforce min_unit, max_unit and step_size"

8 years agoMerge "Placement api: 404 response do not indicate what was not found"
Jenkins [Wed, 16 Nov 2016 11:41:05 +0000 (11:41 +0000)]
Merge "Placement api: 404 response do not indicate what was not found"

8 years agoMerge "Change RPC post_live_migration_at_destination from cast to call."
Jenkins [Wed, 16 Nov 2016 11:40:23 +0000 (11:40 +0000)]
Merge "Change RPC post_live_migration_at_destination from cast to call."

8 years agoTypo error servers.py
pangliye [Wed, 16 Nov 2016 11:01:14 +0000 (19:01 +0800)]
Typo error servers.py

Change-Id: I0f19039e099cbfb70cc69a9d10d8f5978e5f727b

8 years agoTypo error allocations.yaml
pangliye [Wed, 16 Nov 2016 10:57:58 +0000 (18:57 +0800)]
Typo error allocations.yaml

Change-Id: Id3ce395785963bf9ff015a629f61a296fa343fcd

8 years agoMerge "Remove unused parameters"
Jenkins [Wed, 16 Nov 2016 10:24:02 +0000 (10:24 +0000)]
Merge "Remove unused parameters"

8 years agoMerge "api-ref: body verification for force_complete server migration"
Jenkins [Wed, 16 Nov 2016 10:23:25 +0000 (10:23 +0000)]
Merge "api-ref: body verification for force_complete server migration"

8 years agoMerge "api-ref: body verification for show server migration"
Jenkins [Wed, 16 Nov 2016 10:22:43 +0000 (10:22 +0000)]
Merge "api-ref: body verification for show server migration"

8 years agoMerge "api-ref: body verification for list server migrations"
Jenkins [Wed, 16 Nov 2016 10:22:07 +0000 (10:22 +0000)]
Merge "api-ref: body verification for list server migrations"

8 years agoMerge "api-ref: example verification for server-migrations"
Jenkins [Wed, 16 Nov 2016 10:21:18 +0000 (10:21 +0000)]
Merge "api-ref: example verification for server-migrations"

8 years agoMerge "api-ref: parameter verification for server-migrations"
Jenkins [Wed, 16 Nov 2016 10:20:03 +0000 (10:20 +0000)]
Merge "api-ref: parameter verification for server-migrations"

8 years agoMerge "Add microversion cap information"
Jenkins [Wed, 16 Nov 2016 10:15:15 +0000 (10:15 +0000)]
Merge "Add microversion cap information"

8 years agoRefactor console checks in live migration process
Pawel Koniszewski [Wed, 16 Nov 2016 10:05:10 +0000 (11:05 +0100)]
Refactor console checks in live migration process

_check_graphics_addresses_can_live_migrate was added to check
whether we can live migrate a VM with VNC/SPICE enabled when:

* libvirt did not allow to change and migrate guest XML with
  updated graphics listen addresses. Right now we always can update
  VNC/SPICE listen address.
* Destination node was running old-code that does not set the fields.
  Currently when live migrating between two versions of OpenStack
  (N and N-1) the fields are always set.

Therefore this check is redundant and can be removed.

Going deeper in this code - graphics_listen_addr_vnc and
graphics_listen_addr_spice in libvirt migrate data object are of
type IPAddressField. It means that both need to contain valid IP address.
By default in nova.conf it is 127.0.0.1. It can't be set to None because
IP address is taken from nova.conf and even if set to None it will be
passed as a string 'None' and will fail IPAddressField validation.

graphics_listen_addrs in migration.py currently always returns a dict
which contains IP addresses of both VNC and spice graphics consoles.

This means that:
* check 'if listen_addrs' is always True
* check 'if not listen_addrs' is always False

So we really never passed through 'if not listen_addrs' since
migrate_data is objectified as those addresses are always there.

However, serial_listen_addr is handled different way. The type of
this field in libvirt migrate data object is StringField that might
be set to None or empty string through nova.conf. So we still need
to validate whether serial console can be migrated so that we will
be sure that particular live migration will not break serial console
in case when serial listen address is not configured at destination.

Change-Id: I73f7bfafa4554bf1c2dfc980289be88154170282
Closes-Bug: #1639312

8 years agoAdd microversion cap information
Kevin_Zheng [Fri, 11 Nov 2016 07:05:09 +0000 (15:05 +0800)]
Add microversion cap information

Currently we only publish the master branch of api-ref to:
http://developer.openstack.org/api-ref/compute
and we have microversion caps for different releases.
It will be better for user to understand if we add
also microversion caps information to the doc.

Change-Id: Ic6c042f68f5d340a68abad6701e65d44e46da3a7
Closes-bug: #1640995

8 years agoNo return for flavor destroy
liyingjun [Wed, 16 Nov 2016 03:05:56 +0000 (11:05 +0800)]
No return for flavor destroy

_flavor_destroy doesn't need to return

TrivialFix

Change-Id: I77e12a6b511e84fa0223801f2bf93a762ad8c4fc

8 years agoneutron: actually populate list in populate_security_groups
Matt Riedemann [Thu, 10 Nov 2016 23:49:41 +0000 (18:49 -0500)]
neutron: actually populate list in populate_security_groups

We're going to store the list of requested security group objects
in the request spec so the neutron security group driver code
needs to actually populate that list now for use in the compute API.

As the nova-network and neutron security group API code is basically
the same for populating that list, the backend-specific implementations
are removed and pulled up into the base security group driver API class.

Since we don't want to actually try and persist this list with the
instance object in the nova database we need to add a check in the
compute API to store an empty list, like the old behavior, when
creating the instance. A later change will use the populated list
to store in the RequestSpec.

Part of blueprint cells-scheduling-interaction

Change-Id: I6139eb92f534f010565fde31661382d33463ae58

8 years agoMerge "Replace admin check with policy check in placement API"
Jenkins [Tue, 15 Nov 2016 17:53:51 +0000 (17:53 +0000)]
Merge "Replace admin check with policy check in placement API"

8 years agoClarify the approval process of specless blueprints
Chris Dent [Tue, 15 Nov 2016 17:14:57 +0000 (17:14 +0000)]
Clarify the approval process of specless blueprints

Add a paragraph which clarifies that a specless blueprint needs to
be approved and the normal process for doing so, with links to
additional information.

Change-Id: I1d4fc40a2e5acb8b63f90e00dc19ee5a65fbe870

8 years agoMerge "api-ref: method verification for server-migrations"
Jenkins [Tue, 15 Nov 2016 13:15:08 +0000 (13:15 +0000)]
Merge "api-ref: method verification for server-migrations"

8 years agoMerge "Add uuid field to SecurityGroup object"
Jenkins [Tue, 15 Nov 2016 02:22:37 +0000 (02:22 +0000)]
Merge "Add uuid field to SecurityGroup object"