]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
8 years agoAdd SingleCellSimple fixture
Dan Smith [Thu, 1 Dec 2016 16:13:01 +0000 (08:13 -0800)]
Add SingleCellSimple fixture

This fixture makes it trivial to mock out all the cell listing stuff
for the simple case where you just want to assume a single cell that
is configured as the default database.

Change-Id: I7eecee388780677d2b342556fef0179b02707f3c

8 years agoMake RPCFixture support multiple connections
Dan Smith [Thu, 10 Nov 2016 21:19:32 +0000 (13:19 -0800)]
Make RPCFixture support multiple connections

For testing cells, we will need to track the driver instances that
we give out by url. This normally just works with a conventional
oslo.messaging driver, but the fake driver keeps internal data
structures for simulating its bus. If we end up with clients creating
a new instance of the driver in the rpc switching code, we'll never
be able to send messages to services because we'll always have
private/separate data structures.

So, this makes the fixture wrap the transport creation stuff
and unify references by url. In order to make this work, some
retooling of rpc.init() is done, which makes it more in line with
the recent additions we had for wrapping transport initialization
per connection anyway.

For now, a lot of our tests can't handle the possibility of
multiple RPC connections due to them looking at the global
transport_url configuration. So for the moment, even though this
makes the fixture support multiple independent connections, we
collapse any such attempts down to a single connection to the
default broker.

Note: this requires a fix in oslo.messaging 5.14.0

Depends-On: I01b6f5a20ea9752da46a546a908bd38cf11da681
Change-Id: Icb63d7dabd17f3c5633387793f68a8ba20863a7e

8 years agoMerge "libvirt: Combine injection info in InjectionInfo"
Jenkins [Wed, 7 Dec 2016 13:32:37 +0000 (13:32 +0000)]
Merge "libvirt: Combine injection info in InjectionInfo"

8 years agoMerge "conf: Remove deprecated service manager opts"
Jenkins [Wed, 7 Dec 2016 13:23:25 +0000 (13:23 +0000)]
Merge "conf: Remove deprecated service manager opts"

8 years agoMerge "libvirt: Improve _is_booted_from_volume implementation"
Jenkins [Wed, 7 Dec 2016 13:13:40 +0000 (13:13 +0000)]
Merge "libvirt: Improve _is_booted_from_volume implementation"

8 years agoMerge "Add a CellDatabases test fixture"
Jenkins [Wed, 7 Dec 2016 13:09:36 +0000 (13:09 +0000)]
Merge "Add a CellDatabases test fixture"

8 years agolibvirt: Combine injection info in InjectionInfo
Matthew Booth [Tue, 5 Jul 2016 13:36:47 +0000 (14:36 +0100)]
libvirt: Combine injection info in InjectionInfo

Simplify method signatures by combining network_info, admin_pass, and
files into a single data structure.

Implements: bp/libvirt-imagebackend-refactor
Change-Id: I11ae6a0709d4d85f85c3e8e3f3cf8ca9e26a4798

8 years agoMerge "libvirt: Delete duplicate check when live-migrating"
Jenkins [Wed, 7 Dec 2016 10:28:51 +0000 (10:28 +0000)]
Merge "libvirt: Delete duplicate check when live-migrating"

8 years agoMerge "Add more log when delete orphan node"
Jenkins [Wed, 7 Dec 2016 07:51:26 +0000 (07:51 +0000)]
Merge "Add more log when delete orphan node"

8 years agoMerge "Fix the scope of cm in ServersTestV219"
Jenkins [Wed, 7 Dec 2016 07:50:45 +0000 (07:50 +0000)]
Merge "Fix the scope of cm in ServersTestV219"

8 years agoMerge "Handle ComputeHostNotFound when listing hypervisors"
Jenkins [Wed, 7 Dec 2016 07:46:19 +0000 (07:46 +0000)]
Merge "Handle ComputeHostNotFound when listing hypervisors"

8 years agoMerge "Add description for 2.9 microversion"
Jenkins [Wed, 7 Dec 2016 02:22:20 +0000 (02:22 +0000)]
Merge "Add description for 2.9 microversion"

8 years agoMerge "Merge v21 view builder for ips API"
Jenkins [Wed, 7 Dec 2016 02:21:35 +0000 (02:21 +0000)]
Merge "Merge v21 view builder for ips API"

8 years agoMerge "Handle MarkerNotFound from cell0 database"
Jenkins [Wed, 7 Dec 2016 00:46:51 +0000 (00:46 +0000)]
Merge "Handle MarkerNotFound from cell0 database"

8 years agoHandle MarkerNotFound from cell0 database
Matt Riedemann [Mon, 5 Dec 2016 21:24:05 +0000 (16:24 -0500)]
Handle MarkerNotFound from cell0 database

When listing instances in the cellv2 world we look them up
from three locations:

1. Build requests which exist before the instances are created
   in the cell database (after the scheduler picks a host to
   build the instance). Currently instances and build requests
   are both created before casting to conductor, but that's going
   away in Ocata with the support for multiple cellsv2 cells.
2. The cell0 database for instances which failed to get scheduled
   to a compute host (and therefore a cell).
3. The actual cell database that the instance lives in. Currently
   that's only a single traditional nova database, but could be one
   of multiple cellsv2 cells when we add that support in Ocata.

If a marker is passed in when listing instances, if the instance
lives in an actual cell database, we'll get a MarkerNotFound failure
from cell0 because the instance doesn't exist in cell0, but we check
cell0 before we check the cell database. This makes the instance
listing short-circuit and fail with a 400 from the REST API.

This patch simply handles the MarkerNotFound when listing instances
from the cell0 database and ignores it so we can continue onto the
cell database.

Closes-Bug: #1647464

Change-Id: I977497be262fb7f2333e32fb7313b29624323422

8 years agoMerge "Fix a typo in a comment in microversion history"
Jenkins [Tue, 6 Dec 2016 21:40:43 +0000 (21:40 +0000)]
Merge "Fix a typo in a comment in microversion history"

8 years agoMerge "libvirt: virtlogd: use virtlogd for char devices"
Jenkins [Tue, 6 Dec 2016 21:38:07 +0000 (21:38 +0000)]
Merge "libvirt: virtlogd: use virtlogd for char devices"

8 years agoFix a typo in a comment in microversion history
Chris Dent [Tue, 6 Dec 2016 19:11:07 +0000 (19:11 +0000)]
Fix a typo in a comment in microversion history

We use '_' in placement URLs.

This change was promised as a follow up to
Ia8b534d20c064eb3a767f95ca22814925acfaa77

Change-Id: Idc52bcf396dc8ad420d3183f9bee48e07656292d

8 years agoMerge "libvirt: Add comments in _hard_reboot"
Jenkins [Tue, 6 Dec 2016 18:28:15 +0000 (18:28 +0000)]
Merge "libvirt: Add comments in _hard_reboot"

8 years agoAdd a CellDatabases test fixture
melanie witt [Fri, 18 Nov 2016 17:18:24 +0000 (17:18 +0000)]
Add a CellDatabases test fixture

As we progress with the Cells v2 scheduling interaction work, we need
to be able to have switching between multiple databases work in our
functional tests. The existing Database fixture doesn't work in this
case because each connection switch via target_cell results in a new,
empty sqlite database, and main_context_manager is global in the DB
API and always points at the same sqlite database.

This adds a fixture that creates a new sqlite database per cell
database, runs migrations, and keeps track of the databases using
identifiers provided when cell databases are added to the fixture.
It patches get_context_manager, create_context_manager, and target_cell
to return the matching database connection according to identifier,
simulating switching between multiple databases in a single test.

Change-Id: I00748cbbb682813987a2ad8c69948f71223daee7

8 years agoMerge "libvirt: create consoles in an understandable/extensible way"
Jenkins [Tue, 6 Dec 2016 17:43:26 +0000 (17:43 +0000)]
Merge "libvirt: create consoles in an understandable/extensible way"

8 years agoMerge "Fix typo for 'infomation'."
Jenkins [Tue, 6 Dec 2016 16:41:18 +0000 (16:41 +0000)]
Merge "Fix typo for 'infomation'."

8 years agoMerge "Remove AdminRequired usage in flavor"
Jenkins [Tue, 6 Dec 2016 16:40:37 +0000 (16:40 +0000)]
Merge "Remove AdminRequired usage in flavor"

8 years agoMerge "convert libvirt driver to use os-vif for vhost-user with ovs."
Jenkins [Tue, 6 Dec 2016 16:39:21 +0000 (16:39 +0000)]
Merge "convert libvirt driver to use os-vif for vhost-user with ovs."

8 years agoMerge "add host to vif.py set_config_* functions"
Jenkins [Tue, 6 Dec 2016 16:38:37 +0000 (16:38 +0000)]
Merge "add host to vif.py set_config_* functions"

8 years agoMerge "Fix placement API version history 1.1 title"
Jenkins [Tue, 6 Dec 2016 16:37:55 +0000 (16:37 +0000)]
Merge "Fix placement API version history 1.1 title"

8 years agoMerge "placement: Perform build list of standard classes once"
Jenkins [Tue, 6 Dec 2016 16:37:08 +0000 (16:37 +0000)]
Merge "placement: Perform build list of standard classes once"

8 years agoMerge "placement: REST API for resource classes"
Jenkins [Tue, 6 Dec 2016 16:32:43 +0000 (16:32 +0000)]
Merge "placement: REST API for resource classes"

8 years agolibvirt: virtlogd: use virtlogd for char devices
Markus Zoeller [Tue, 6 Dec 2016 10:40:25 +0000 (11:40 +0100)]
libvirt: virtlogd: use virtlogd for char devices

This change makes actual usage of the "logd" sub-element for char devices.
The two REST APIs ``os-getConsoleOutput`` and ``os-getSerialConsole`` can
now be satisfied at the same time. This is valid for any combination of:
* char device element: "console", "serial"
* char device type: "tcp", "pty"
There is also no need to create multiple different device types anymore.
If we have a tcp device, we don't need the pty device anymore. The logging
will be done in the tcp device.

Implements blueprint libvirt-virtlogd
Closes-Bug: 832507
Change-Id: Ia412f55bd988f6e11cd78c4c5a50a86389e648b0

8 years agolibvirt: create consoles in an understandable/extensible way
Markus Zoeller [Mon, 7 Nov 2016 09:01:45 +0000 (10:01 +0100)]
libvirt: create consoles in an understandable/extensible way

This change refactors the way the consoles of a libvirt guest get
created. This is basically just a reshuffle of code and an extraction
of methods with the goal to make the plethora of conditionals easier
to understand. Also, future enhancements should be easier this way.
For example, the blueprint libvirt-virtlogd (targeted for Ocata) will
have to be integrated in this console creation flow.

During the implementation I noticed that the host caps are *not*
needed for creation. That was an unnecessary special case for s390x
which didn't make any sense as the guest arch is the important piece.
That's the reason I dropped the "caps" parameter of the method
"_create_consoles". That also made it necessary to adjust the unit
tests.

I also took the chance to rename the "guest" parameter, which represents
the domain *configuration object*, to "guest_cfg". This is (almost) used
in every other place in the libvirt driver.

Related blueprint libvirt-virtlogd

Change-Id: I93a4ac78aaf0ac0c0a99a27ef7e145949f706d45

8 years agoMerge "Create schema generation for AddressBase"
Jenkins [Tue, 6 Dec 2016 13:25:17 +0000 (13:25 +0000)]
Merge "Create schema generation for AddressBase"

8 years agoAdd more log when delete orphan node
jichenjc [Fri, 18 Nov 2016 20:51:15 +0000 (04:51 +0800)]
Add more log when delete orphan node

we have following log when delete opphan node
INFO nova.compute.manager Deleting orphan compute node xx

we might need to know why those node are removed so
we need additional log info about the removal.
however, it's not complete about why it's removed and
what's removed unless we dig into database layer

Change-Id: Icd8a60aea2fbe01f358bcdb010c97751625b47f6

8 years agolibvirt: Add comments in _hard_reboot
Matthew Booth [Mon, 5 Dec 2016 14:16:33 +0000 (14:16 +0000)]
libvirt: Add comments in _hard_reboot

Promote some important context gleaned from git history diving to code
comments.

Change-Id: Ie9fa202fe63acc181ac0c775a4dab24839117064

8 years agoMerge "support polling free notification testing"
Jenkins [Tue, 6 Dec 2016 10:17:50 +0000 (10:17 +0000)]
Merge "support polling free notification testing"

8 years agoMerge "Require cellsv2 setup before migrating to Ocata"
Jenkins [Tue, 6 Dec 2016 03:32:56 +0000 (03:32 +0000)]
Merge "Require cellsv2 setup before migrating to Ocata"

8 years agoMerge "conf: remove deprecated exception option"
Jenkins [Tue, 6 Dec 2016 02:07:11 +0000 (02:07 +0000)]
Merge "conf: remove deprecated exception option"

8 years agoRequire cellsv2 setup before migrating to Ocata
Dan Smith [Tue, 1 Nov 2016 15:54:59 +0000 (08:54 -0700)]
Require cellsv2 setup before migrating to Ocata

We have code going into Ocata that needs to be sure that cell and
host mappings are in place. Since this was required homework in
Newton, we can land a migration to intentionally fail if this was
not completed.

This is, however, a little difficult to require because a first-time
deployment will be initialized schema-wise with none of these records,
which is also sane. So, we look to see if any flavors are defined as
a sentinel to indicate that this is an upgrade of an existing
deployment instead of a first-time event. Not perfect, but since this
is really just a helper for the user, it seems like a reasonable
risk.

Depends-On: If1af9c478e8ea2420f2523a9bb8b70fafddc86b7
Change-Id: I72fb724dc13e1a5f4e97c58915b538ba761c582d

8 years agoconvert libvirt driver to use os-vif for vhost-user with ovs.
Sean Mooney [Thu, 11 Aug 2016 18:13:11 +0000 (18:13 +0000)]
convert libvirt driver to use os-vif for vhost-user with ovs.

- This change converts the libvirt vif driver to use os-vif
  for plug and unplug actions.

Change-Id: I9e847046b8a18b7851e08d7367aad9d9feb4bec8
Blueprint: libvirt-os-vif-ovs-vhostuser

8 years agoHandle ComputeHostNotFound when listing hypervisors
Matt Riedemann [Sun, 4 Dec 2016 20:08:04 +0000 (15:08 -0500)]
Handle ComputeHostNotFound when listing hypervisors

Compute node resources must currently be deleted manually
in the database, and as such they can reference service
records which have been deleted via the services delete API.
Because of this when listing hypervisors (compute nodes), we
may get a ComputeHostNotFound error when trying to lookup a
service record for a compute node where the service was
deleted. This causes the API to fail with a 500 since it's not
handled.

This change handles the ComputeHostNotFound when looping over
compute nodes in the hypervisors index and detail methods and
simply ignores them.

Change-Id: I2717274bb1bd370870acbf58c03dc59cee30cc5e
Closes-Bug: #1646255

8 years agoMerge "Remove require_admin_context"
Jenkins [Mon, 5 Dec 2016 20:30:53 +0000 (20:30 +0000)]
Merge "Remove require_admin_context"

8 years agoMerge "Updated from global requirements"
Jenkins [Mon, 5 Dec 2016 17:41:11 +0000 (17:41 +0000)]
Merge "Updated from global requirements"

8 years agoFix placement API version history 1.1 title
Matt Riedemann [Fri, 2 Dec 2016 20:28:01 +0000 (15:28 -0500)]
Fix placement API version history 1.1 title

This needs to use dashes otherwise it doesn't render
properly in the docs. Also adds an informative title
for the 1.1 microversion since that seems to be a pattern
we're going with now in 1.2.

Change-Id: I9fbb7d7f4fee024fa2afb14b190c3ad403b7ed61

8 years agoplacement: Perform build list of standard classes once
Roman Dobosz [Fri, 2 Dec 2016 09:22:27 +0000 (10:22 +0100)]
placement: Perform build list of standard classes once

To prevent rebuilding list of standard resource classes every time
destroy() method is called on ResourceClass object, move it to class
attribute. Also, removed get_standards call in destroy method of
ResourceClass, and simply access list through the cache object.

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

8 years agoplacement: REST API for resource classes
Jay Pipes [Mon, 31 Oct 2016 19:33:40 +0000 (15:33 -0400)]
placement: REST API for resource classes

This patch adds support for a REST API for CRUD operations on custom
resource classes:

    GET /resource_classes: return all resource classes
    POST /resource_classes: create a new custom resource class
    PUT /resource_classes/{name}: update name of custom resource class
    DELETE /resource_classes/{name}: deletes a custom resource class
    GET /resource_classes/{name}: get a single resource class

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

8 years agoconf: Remove deprecated service manager opts
ChangBo Guo(gcb) [Sat, 21 May 2016 05:42:28 +0000 (13:42 +0800)]
conf: Remove deprecated service manager opts

The following service manager config options were deprecated in
13.0.0 and remove them now:

- metadata_manager
- console_manager
- consoleauth_manager
- cert_manager
- scheduler_manager
- conductor.manager

Implements: bp centralize-config-options-ocata

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ia50d18c350dbc4ca88da9543e1236e3398ea28ee

8 years agosupport polling free notification testing
Balazs Gibizer [Mon, 5 Dec 2016 15:10:08 +0000 (16:10 +0100)]
support polling free notification testing

There are multiple instance action notifications where the only
way to test notification sample is to wait for the notfication
to arrive as there is no indication on the REST API that the
certain action has been finished.

Until now the only way to implement such test was to poll the
fake_notifier.VERSIONED_NOTIFICATIONS list to see if the notification
is arrived.

This patch adds a polling free solution based on threading.Event

Change-Id: I50f2a3325e3aae4298b18f0929d19c04cecdaa18

8 years agoconf: Standardize formatting of virt
Stephen Finucane [Tue, 1 Nov 2016 14:57:02 +0000 (14:57 +0000)]
conf: Standardize formatting of virt

- Remove newlines between options
- Place option name on the same line as the declaration
- Use 'Related options', not 'Interdepencies to other options'
- Slightly reword some options to provide a clear summary-description
  help text

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

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 5 Dec 2016 09:57:19 +0000 (09:57 +0000)]
Updated from global requirements

Change-Id: Id3962e728234970b4c8e43b569e55a6aa507a3cc

8 years agoMerge v21 view builder for ips API
ghanshyam [Mon, 5 Dec 2016 09:11:25 +0000 (18:11 +0900)]
Merge v21 view builder for ips API

Now v2 and v2.1 code is merged and we do not need
to maintain the different set of view builder.
Previously there were different way of building the
complete response for ips API. v2 used to do with extension
and v2.1 with view builder itself.

Part of bp:api-no-more-extensions

Change-Id: I438fdec60c221e2449203523e7c6fbae21b75604

8 years agoMerge "placement: adds ResourceClass.save()"
Jenkins [Sun, 4 Dec 2016 10:02:57 +0000 (10:02 +0000)]
Merge "placement: adds ResourceClass.save()"

8 years agoMerge "Move tag schema to parameter_types.py"
Jenkins [Fri, 2 Dec 2016 23:03:38 +0000 (23:03 +0000)]
Merge "Move tag schema to parameter_types.py"

8 years agoMerge "Add CORS filter to versions pipeline"
Jenkins [Fri, 2 Dec 2016 21:09:29 +0000 (21:09 +0000)]
Merge "Add CORS filter to versions pipeline"

8 years agoMerge "Create hyperv fake images under proper directory"
Jenkins [Fri, 2 Dec 2016 19:59:25 +0000 (19:59 +0000)]
Merge "Create hyperv fake images under proper directory"

8 years agoplacement: adds ResourceClass.save()
Jay Pipes [Mon, 21 Nov 2016 20:21:25 +0000 (15:21 -0500)]
placement: adds ResourceClass.save()

Implement the ability to update the name of a custom resource class. We
raise similar exceptions to ResourceClass.destroy() if the user attempts
to modify the name of a standard resource class.

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

8 years agoAdd CORS filter to versions pipeline
Corentin Ardeois [Tue, 22 Nov 2016 14:16:17 +0000 (09:16 -0500)]
Add CORS filter to versions pipeline

This patch exposes the root (version) resource to CORS-enabled
browser clients that wish to perform API version discovery.

This feature is required for js-openstack-lib, and its devstack
tests. https://review.openstack.org/#/c/370389/

Change-Id: I4052186bffa3bddb4d28e378e6a135694a71e05b
Needed-By: Ia19afa530ae8c2df60db740cec9267fe240978c0
8 years agoMerge "Always use python2.7 for docs target"
Jenkins [Fri, 2 Dec 2016 16:27:03 +0000 (16:27 +0000)]
Merge "Always use python2.7 for docs target"

8 years agoMerge "placement: adds ResourceClass.destroy()"
Jenkins [Fri, 2 Dec 2016 16:26:12 +0000 (16:26 +0000)]
Merge "placement: adds ResourceClass.destroy()"

8 years agoCreate hyperv fake images under proper directory
Ludovic Beliveau [Fri, 2 Dec 2016 14:45:04 +0000 (09:45 -0500)]
Create hyperv fake images under proper directory

Some hyperv unit tests was creating a "fake" directory under the nova
root directory.  This cause this directory to show up on "git status"
as untracked.

Change-Id: I5b9231c59fb8577e6f51e7e5e3391dbf1276d48f

8 years agoMerge "objects: Move 'vm_mode' to 'fields.VMMode'"
Jenkins [Fri, 2 Dec 2016 15:50:51 +0000 (15:50 +0000)]
Merge "objects: Move 'vm_mode' to 'fields.VMMode'"

8 years agoMerge "objects: Move 'hv_type' to 'fields.HVType'"
Jenkins [Fri, 2 Dec 2016 15:28:26 +0000 (15:28 +0000)]
Merge "objects: Move 'hv_type' to 'fields.HVType'"

8 years agoMerge "Port test_serversV21 to Python 3"
Jenkins [Fri, 2 Dec 2016 15:27:00 +0000 (15:27 +0000)]
Merge "Port test_serversV21 to Python 3"

8 years agoMerge "conf: Trivial fix of indentation in 'api'"
Jenkins [Fri, 2 Dec 2016 15:26:06 +0000 (15:26 +0000)]
Merge "conf: Trivial fix of indentation in 'api'"

8 years agoMerge "conf: Move api options to a group"
Jenkins [Fri, 2 Dec 2016 15:25:13 +0000 (15:25 +0000)]
Merge "conf: Move api options to a group"

8 years agoMerge "Introduce PowerVMLiveMigrateData"
Jenkins [Fri, 2 Dec 2016 15:23:49 +0000 (15:23 +0000)]
Merge "Introduce PowerVMLiveMigrateData"

8 years agoMerge "conf: Deprecate 'torrent_' options"
Jenkins [Fri, 2 Dec 2016 13:57:19 +0000 (13:57 +0000)]
Merge "conf: Deprecate 'torrent_' options"

8 years agoMerge "conf: Deprecate 'remap_vbd_dev' option"
Jenkins [Fri, 2 Dec 2016 13:47:09 +0000 (13:47 +0000)]
Merge "conf: Deprecate 'remap_vbd_dev' option"

8 years agoMerge "conf: remove deprecated cert_topic option"
Jenkins [Fri, 2 Dec 2016 13:46:21 +0000 (13:46 +0000)]
Merge "conf: remove deprecated cert_topic option"

8 years agoMerge "Improve consistency in serial_console"
Jenkins [Fri, 2 Dec 2016 13:45:02 +0000 (13:45 +0000)]
Merge "Improve consistency in serial_console"

8 years agoMerge "config options: improve libvirt imagebackend"
Jenkins [Fri, 2 Dec 2016 13:44:07 +0000 (13:44 +0000)]
Merge "config options: improve libvirt imagebackend"

8 years agoMerge "conf: Remove deprecated 'compute_stats_class' opt"
Jenkins [Fri, 2 Dec 2016 13:42:57 +0000 (13:42 +0000)]
Merge "conf: Remove deprecated 'compute_stats_class' opt"

8 years agoMerge "conf: Improve help text for ldap_dns_opts"
Jenkins [Fri, 2 Dec 2016 13:42:02 +0000 (13:42 +0000)]
Merge "conf: Improve help text for ldap_dns_opts"

8 years agoMerge "conf: Move consoleauth options to a group"
Jenkins [Fri, 2 Dec 2016 13:41:00 +0000 (13:41 +0000)]
Merge "conf: Move consoleauth options to a group"

8 years agoMerge "Add a releasenote for bug#1633518"
Jenkins [Fri, 2 Dec 2016 13:24:57 +0000 (13:24 +0000)]
Merge "Add a releasenote for bug#1633518"

8 years agoMerge "Remove redundant req setting"
Jenkins [Fri, 2 Dec 2016 13:24:08 +0000 (13:24 +0000)]
Merge "Remove redundant req setting"

8 years agoMerge "Remove _set_up_controller() from attach tests"
Jenkins [Fri, 2 Dec 2016 13:23:18 +0000 (13:23 +0000)]
Merge "Remove _set_up_controller() from attach tests"

8 years agoMerge "Add block_device_mapping_v2.uuid to api-ref"
Jenkins [Fri, 2 Dec 2016 13:22:25 +0000 (13:22 +0000)]
Merge "Add block_device_mapping_v2.uuid to api-ref"

8 years agoMerge "guestfs: Don't report exception if there's read access to kernel"
Jenkins [Fri, 2 Dec 2016 12:34:03 +0000 (12:34 +0000)]
Merge "guestfs: Don't report exception if there's read access to kernel"

8 years agolibvirt: Improve _is_booted_from_volume implementation
Feodor Tersin [Tue, 4 Oct 2016 17:17:17 +0000 (20:17 +0300)]
libvirt: Improve _is_booted_from_volume implementation

Currently this method cannot be used widely due to its parameters. It
requires device_info - the dict which can not be easily obtained in many
cases. Since it is often needed to figure out if an instance is booted
from volume, and the method name is "appropriate", this sometimes leads
to errors (when string result of get_instance_disk_info is passed as an
argument to _is_booted_from_volume; see also Id5901254).

This patch makes _is_booted_from_volume to use standard
block_device_info structure, which is accessible in almost any driver
method.

Closes-bug: 1596957
Closes-bug: 1587802
Change-Id: Ie424d172ac9d6aeb42d83e512f2a18713134be3b

8 years agolibvirt: Delete duplicate check when live-migrating
Hiroyuki Eguchi [Mon, 4 Jul 2016 08:14:25 +0000 (08:14 +0000)]
libvirt: Delete duplicate check when live-migrating

A year ago a useless check was added: I7989128d

The above patch was aimed to enable live-migration when
instance is booted from volume and has not local disk
by adding a new check.

However, the same check has been already checked in
_is_shared_block_storage method.

The last part of the _is_shared_block_storage method does
the same that above patch does:
- check whether the instance is booted from volume
- check whether the instance has not a local disk

Also this check calls _is_booted_from_volume incorrectly.
Parameter disk_mapping of _is_booted_from_volume must be a dict, but
this check specifies a string instead.

And finally introduced _has_local_disk method is wrong, because
it does not take into accont disk.ephN names.

This change reverts I7989128d, improves and simplifies related tests.

Closes-Bug: 1598661
Related-Bug: 1469006
Co-Authored-By: Feodor Tersin <ftersin@hotmail.com>
Change-Id: Id59012547c3318d94b65ab9f7c37c33c3a08b0e0

8 years agoMerge "Fix pci_alias that include white spaces"
Jenkins [Fri, 2 Dec 2016 06:00:38 +0000 (06:00 +0000)]
Merge "Fix pci_alias that include white spaces"

8 years agoMerge "libvirt: Don't re-resize disks in finish_migration()"
Jenkins [Fri, 2 Dec 2016 04:04:59 +0000 (04:04 +0000)]
Merge "libvirt: Don't re-resize disks in finish_migration()"

8 years agoMerge "libvirt: Never copy a swap disk during cold migration"
Jenkins [Fri, 2 Dec 2016 04:00:18 +0000 (04:00 +0000)]
Merge "libvirt: Never copy a swap disk during cold migration"

8 years agoAdd block_device_mapping_v2.uuid to api-ref
Ken'ichi Ohmichi [Fri, 2 Dec 2016 02:26:12 +0000 (18:26 -0800)]
Add block_device_mapping_v2.uuid to api-ref

The sample of block_device_mapping_v2 contains uuid as a parameter
but there is not any explanation of the parameter.
This patch adds it to api-ref.

The following is for explaining the parameter from the code.

  As the following code, source_type is "image" and api_dict["image_id"]
  can be glance image-id on the sample case.

  https://github.com/openstack/nova/blob/master/nova/block_device.py#L197
    api_dict[source_type + '_id'] = device_uuid

  The "image_id" is used for getting image metadata from Glance:

  https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1072
    image_id = bdm['image_id']
    image_meta = self.image_api.get(context, image_id)

Change-Id: I83badab07446c2b1e55cc3b29a3ba9476efc179d

8 years agoFix pci_alias that include white spaces
zhaolihui [Tue, 1 Nov 2016 08:09:04 +0000 (16:09 +0800)]
Fix pci_alias that include white spaces

When the PCI alias was getting translated to a PCI request,
all the white spaces were getting removed. So the pci_passthrough:alias
specified in the flavor never matched the device in pci_alias.
This patch fixes the bug by only stripping the white spaces
at the beginning or the end of the elements

Change-Id: I2888b03faf6c25bcb6011db40100d925972c2231
Closes-Bug: #1638200

8 years agoMerge "libvirt: Rename Backend snapshot and image"
Jenkins [Fri, 2 Dec 2016 00:48:57 +0000 (00:48 +0000)]
Merge "libvirt: Rename Backend snapshot and image"

8 years agoMerge "libvirt: Cleanup test_create_configdrive"
Jenkins [Fri, 2 Dec 2016 00:48:16 +0000 (00:48 +0000)]
Merge "libvirt: Cleanup test_create_configdrive"

8 years agoMerge "libvirt: Test disk creation in test_hard_reboot"
Jenkins [Fri, 2 Dec 2016 00:47:31 +0000 (00:47 +0000)]
Merge "libvirt: Test disk creation in test_hard_reboot"

8 years agoMerge "libvirt: Rewrite _test_finish_migration"
Jenkins [Fri, 2 Dec 2016 00:46:49 +0000 (00:46 +0000)]
Merge "libvirt: Rewrite _test_finish_migration"

8 years agoMerge "conf: fix formatting in wsgi"
Jenkins [Fri, 2 Dec 2016 00:44:51 +0000 (00:44 +0000)]
Merge "conf: fix formatting in wsgi"

8 years agoMerge "conf: fix formatting in availability_zone"
Jenkins [Fri, 2 Dec 2016 00:44:07 +0000 (00:44 +0000)]
Merge "conf: fix formatting in availability_zone"

8 years agoMerge "conf: Removed TODO note and updated desc"
Jenkins [Fri, 2 Dec 2016 00:31:04 +0000 (00:31 +0000)]
Merge "conf: Removed TODO note and updated desc"

8 years agoMerge "Fix qemu-img convert image incompatability in alpine linux"
Jenkins [Thu, 1 Dec 2016 23:26:24 +0000 (23:26 +0000)]
Merge "Fix qemu-img convert image incompatability in alpine linux"

8 years agoAlways use python2.7 for docs target
melanie witt [Thu, 1 Dec 2016 22:04:48 +0000 (22:04 +0000)]
Always use python2.7 for docs target

The docs testenv doesn't work with python 3.x on our codebase.
If someone is on a platform that defaults to python => python3,
building docs will fail for them.

Closes-Bug: #1646629

Change-Id: I56f3933e89e6fe9e181517325e2d7af5110c5656

8 years agoMerge "Support detach interface with same MAC from instance"
Jenkins [Thu, 1 Dec 2016 21:03:31 +0000 (21:03 +0000)]
Merge "Support detach interface with same MAC from instance"

8 years agoMerge "Remove more tests from tests-py3.txt"
Jenkins [Thu, 1 Dec 2016 19:41:22 +0000 (19:41 +0000)]
Merge "Remove more tests from tests-py3.txt"

8 years agoMerge "[scheduler][tests]: Fix incorrect aggr mock values"
Jenkins [Thu, 1 Dec 2016 17:53:39 +0000 (17:53 +0000)]
Merge "[scheduler][tests]: Fix incorrect aggr mock values"

8 years agolibvirt: Don't re-resize disks in finish_migration()
Matthew Booth [Fri, 17 Jun 2016 12:05:24 +0000 (13:05 +0100)]
libvirt: Don't re-resize disks in finish_migration()

finish_migration is called by finish_resize() in compute manager,
which has updated the instance size and flavor before calling us. This
means that _create_image has already resized disks and (where
possible) their contained filesystems by calling cache() with the
correct size. That makes the additional resize in finish_migration a
no-op.

Implements: bp/libvirt-imagebackend-refactor
Change-Id: I58a286ebfdbfd22c1360880dda8e7a4ec9df8625

8 years agolibvirt: Never copy a swap disk during cold migration
Matthew Booth [Fri, 17 Jun 2016 09:29:49 +0000 (10:29 +0100)]
libvirt: Never copy a swap disk during cold migration

We previously didn't copy a swap disk if we were resizing it, and
instead recreated it on the remote end. With this change we never
copy a swap disk, even if we aren't resizing it. This is more
efficient and less surprising.

Implements: bp/libvirt-imagebackend-refactor
Change-Id: I2376c2f708e929426205e5ad59b12f8829dbd12b

8 years agolibvirt: Rename Backend snapshot and image
Matthew Booth [Wed, 22 Jun 2016 13:41:09 +0000 (14:41 +0100)]
libvirt: Rename Backend snapshot and image

snapshot and image didn't accurately describe what the methods did.
snapshot in particular suggested that the returned object was in some
way specific to a snapshot, whereas snapshot was simply the only user.

We also take the opportunity to rename all variables we touch in
driver to refer to disks rather than images.

Implements: bp/libvirt-imagebackend-refactor
Change-Id: I6ab8eb3b2c8a6af4c7ad6fba1f7d13716e9e0c12

8 years agolibvirt: Cleanup test_create_configdrive
Matthew Booth [Thu, 7 Jul 2016 14:29:45 +0000 (15:29 +0100)]
libvirt: Cleanup test_create_configdrive

This test made a tortured trip into _create_image_helper without using
much of its functionality. We pull this out and have it call
_create_configdrive directly.

This leaves _create_image_helper with only a single caller:
test_create_image_with_flavor_swap. This test is almost identical in
purpose to the much better test_create_image_with_swap and
test_create_image_with_legacy_swap_resizing. We refactor
test_create_image_with_swap to use ddt to cover all 3 cases, and
remove _create_image_helper.

This introduces the first use of ddt in Nova tests. It is already in
global-requirements. It was approved for use in Nova tests during the
Ocata contributor meetup:

  https://etherpad.openstack.org/p/ocata-nova-summit-meetup

Change-Id: I9d26ae3c26bab20ae60c2db011194ac0b2ead555