]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
8 years agoMerge "Remove bandit.yaml in favor of defaults"
Jenkins [Fri, 21 Oct 2016 13:05:33 +0000 (13:05 +0000)]
Merge "Remove bandit.yaml in favor of defaults"

8 years agoMerge "Set 'last_checked' flag if start to check scheduler file"
Jenkins [Fri, 21 Oct 2016 12:59:38 +0000 (12:59 +0000)]
Merge "Set 'last_checked' flag if start to check scheduler file"

8 years agoMerge "hardware: Standarized flavor/image meta extraction"
Jenkins [Fri, 21 Oct 2016 12:06:19 +0000 (12:06 +0000)]
Merge "hardware: Standarized flavor/image meta extraction"

8 years agoMerge "Add swap volume notifications (error)"
Jenkins [Fri, 21 Oct 2016 11:48:31 +0000 (11:48 +0000)]
Merge "Add swap volume notifications (error)"

8 years agoMerge "Pre-add instance actions to avoid merge conflicts"
Jenkins [Fri, 21 Oct 2016 11:44:24 +0000 (11:44 +0000)]
Merge "Pre-add instance actions to avoid merge conflicts"

8 years agoSet 'last_checked' flag if start to check scheduler file
huangtianhua [Tue, 19 Jul 2016 09:55:59 +0000 (17:55 +0800)]
Set 'last_checked' flag if start to check scheduler file

Set 'last_checked' to make sure won't get scheduler json
configuration too fast.

Closes-Bug: #1625882
Change-Id: I97acefeacce7a8508d1eb9cb3205367a14be8d86

8 years agoMerge "doc: Integrate oslo_policy.sphinxpolicygen"
Jenkins [Fri, 21 Oct 2016 02:04:44 +0000 (02:04 +0000)]
Merge "doc: Integrate oslo_policy.sphinxpolicygen"

8 years agoMerge "Adding hugepage and NUMA support check for aarch64"
Jenkins [Thu, 20 Oct 2016 21:20:48 +0000 (21:20 +0000)]
Merge "Adding hugepage and NUMA support check for aarch64"

8 years agoMerge "Add migrate_uri for invoking the migration"
Jenkins [Thu, 20 Oct 2016 20:53:25 +0000 (20:53 +0000)]
Merge "Add migrate_uri for invoking the migration"

8 years agoMerge "Fix a typo in driver.py"
Jenkins [Thu, 20 Oct 2016 20:45:38 +0000 (20:45 +0000)]
Merge "Fix a typo in driver.py"

8 years agoRemove bandit.yaml in favor of defaults
Eric Brown [Wed, 10 Feb 2016 17:48:50 +0000 (09:48 -0800)]
Remove bandit.yaml in favor of defaults

With the latest version of bandit, the bandit.yaml is only
necessary for advanced tweaking.

Change-Id: I933a5389865fe577925ce3be30877ceae12fad31

8 years agoPre-add instance actions to avoid merge conflicts
Balazs Gibizer [Fri, 14 Oct 2016 14:52:17 +0000 (16:52 +0200)]
Pre-add instance actions to avoid merge conflicts

NotificationAction enum values for instance actions are added in a
single commit to avoid merge conflicts when it is added one by one
during the notification transformation.

Also the notification samples added as comments for the same reason.

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

8 years agoAdd swap volume notifications (error)
Takashi NATSUME [Thu, 30 Jun 2016 09:06:35 +0000 (18:06 +0900)]
Add swap volume notifications (error)

Add the following notification when swapping volumes.

* 'instance.volume_swap.error'

Change-Id: I90d4ffcb2ffc318de2365a655b5fde8bb6c05ff2
Implements: blueprint add-swap-volume-notifications

8 years agoMerge "XenAPI: Fix VM live-migrate with iSCSI SR volume"
Jenkins [Thu, 20 Oct 2016 12:20:47 +0000 (12:20 +0000)]
Merge "XenAPI: Fix VM live-migrate with iSCSI SR volume"

8 years agodoc: Integrate oslo_policy.sphinxpolicygen
Stephen Finucane [Mon, 26 Sep 2016 13:53:18 +0000 (14:53 +0100)]
doc: Integrate oslo_policy.sphinxpolicygen

Change-Id: I80e75b8a592e1125e02ca6177661177a7c17c927

8 years agoMerge "Remove deprecated nova-manage vm list command"
Jenkins [Wed, 19 Oct 2016 15:40:52 +0000 (15:40 +0000)]
Merge "Remove deprecated nova-manage vm list command"

8 years agoMerge "PCI: Avoid looping over PCI devices twice"
Jenkins [Wed, 19 Oct 2016 12:03:58 +0000 (12:03 +0000)]
Merge "PCI: Avoid looping over PCI devices twice"

8 years agoMerge "Not allow overcommit ratios to be negative"
Jenkins [Wed, 19 Oct 2016 11:02:50 +0000 (11:02 +0000)]
Merge "Not allow overcommit ratios to be negative"

8 years agoMerge "Avoid Forcing the Translation of Translatable Variables"
Jenkins [Wed, 19 Oct 2016 03:43:41 +0000 (03:43 +0000)]
Merge "Avoid Forcing the Translation of Translatable Variables"

8 years agoRemove deprecated nova-manage vm list command
Matt Riedemann [Tue, 18 Oct 2016 14:48:13 +0000 (10:48 -0400)]
Remove deprecated nova-manage vm list command

The nova-manage vm list command was deprecated in newton
with change:

5a5b06fb24fc6e392eb5381f1348e475f1302e1e

Change-Id: I9b7a791b5b5a4c3375fcbfac081ba6bc40c84d6d

8 years agoMerge "Updated from global requirements"
Jenkins [Tue, 18 Oct 2016 13:30:04 +0000 (13:30 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "conf: Group scheduler options"
Jenkins [Tue, 18 Oct 2016 13:29:32 +0000 (13:29 +0000)]
Merge "conf: Group scheduler options"

8 years agoMerge "Explicitly name commands target environments"
Jenkins [Tue, 18 Oct 2016 13:29:03 +0000 (13:29 +0000)]
Merge "Explicitly name commands target environments"

8 years agoMerge "Remove nova/openstack/* from .coveragerc"
Jenkins [Tue, 18 Oct 2016 13:28:30 +0000 (13:28 +0000)]
Merge "Remove nova/openstack/* from .coveragerc"

8 years agoPCI: Avoid looping over PCI devices twice
Ludovic Beliveau [Fri, 23 Sep 2016 13:41:27 +0000 (09:41 -0400)]
PCI: Avoid looping over PCI devices twice

The get_instance_pci_devs() methos is called twice when the libvirt
driver is creating the guest config when xen, qemu or kvm hypervisor is
used.

This also makes the code easier to understand.

Change-Id: Id6d5ee1d46ee0d8cab9432f24af3c1493080545a

8 years agoMerge "Improve help text for upgrade_levels options"
Jenkins [Tue, 18 Oct 2016 12:32:02 +0000 (12:32 +0000)]
Merge "Improve help text for upgrade_levels options"

8 years agoMerge "compute: fixes python 3 related unit tests"
Jenkins [Tue, 18 Oct 2016 12:28:50 +0000 (12:28 +0000)]
Merge "compute: fixes python 3 related unit tests"

8 years agoMerge "Move some flavor fakes closer to where they are being used"
Jenkins [Tue, 18 Oct 2016 12:13:40 +0000 (12:13 +0000)]
Merge "Move some flavor fakes closer to where they are being used"

8 years agoMerge "Replace flavors.get_all_flavors_sorted_list() with object call"
Jenkins [Tue, 18 Oct 2016 12:13:09 +0000 (12:13 +0000)]
Merge "Replace flavors.get_all_flavors_sorted_list() with object call"

8 years agoMerge "Refactor and objectify flavor fakes used in api tests"
Jenkins [Tue, 18 Oct 2016 11:54:43 +0000 (11:54 +0000)]
Merge "Refactor and objectify flavor fakes used in api tests"

8 years agocompute: fixes python 3 related unit tests
Claudiu Belu [Fri, 1 Apr 2016 00:22:39 +0000 (03:22 +0300)]
compute: fixes python 3 related unit tests

Fixes volume related unit tests.
Fixes non-sortable None items.
Fixes __getattr__ infinite recursion.
Fixes is_dict_like method. Dicts in python 3.4 do not
have the 'has_key' method.

Partially Implements: blueprint goal-python35

Change-Id: I97efc09f7657436f706b08e0b2795f0e59ac1dcd

8 years agoMerge "Fill destination check data with VNC/SPICE listen addresses"
Jenkins [Tue, 18 Oct 2016 04:46:19 +0000 (04:46 +0000)]
Merge "Fill destination check data with VNC/SPICE listen addresses"

8 years agoMerge "block_device: Make refresh_conn_infos py3 compatible"
Jenkins [Tue, 18 Oct 2016 04:45:51 +0000 (04:45 +0000)]
Merge "block_device: Make refresh_conn_infos py3 compatible"

8 years agoMerge "api-ref: Fix wrong parameters in os-volumes.inc"
Jenkins [Tue, 18 Oct 2016 04:45:21 +0000 (04:45 +0000)]
Merge "api-ref: Fix wrong parameters in os-volumes.inc"

8 years agoMerge "Fix exception due to BDM race in get_available_resource()"
Jenkins [Tue, 18 Oct 2016 04:44:50 +0000 (04:44 +0000)]
Merge "Fix exception due to BDM race in get_available_resource()"

8 years agoXenAPI: Fix VM live-migrate with iSCSI SR volume
Huan Xie [Wed, 24 Aug 2016 02:25:10 +0000 (02:25 +0000)]
XenAPI: Fix VM live-migrate with iSCSI SR volume

With XenServer 7.0 (XCP 2.1.0), VM live migration with iSCSI volume
will fail due to no relax_xsm_sr_check in /etc/xapi.conf in Dom0.
But since XS7.0, the default value of relax_xsm_sr_check is true if
not configured in /etc/xapi.conf in Dom0.
This fix is to add checks on XCP version, if it's equal or greater
than 2.1.0, will treat relax_xsm_sr_check=true if not found in
/etc/xapi.conf

Change-Id: I88d1d384ab7587c428e517d184258bb517dfb4ab
Closes-bug: #1610932

8 years agoMerge "Cleanup some redundant USES_DB_SELF usage"
Jenkins [Tue, 18 Oct 2016 02:34:45 +0000 (02:34 +0000)]
Merge "Cleanup some redundant USES_DB_SELF usage"

8 years agoMerge "Fix typo in comment"
Jenkins [Tue, 18 Oct 2016 02:05:13 +0000 (02:05 +0000)]
Merge "Fix typo in comment"

8 years agoMerge "Drop deprecated support for hw_watchdog_action flavor extra spec"
Jenkins [Tue, 18 Oct 2016 02:04:41 +0000 (02:04 +0000)]
Merge "Drop deprecated support for hw_watchdog_action flavor extra spec"

8 years agoExplicitly name commands target environments
Joshua Harlow [Mon, 17 Oct 2016 20:53:10 +0000 (13:53 -0700)]
Explicitly name commands target environments

Naming envs like this is breaking the current
oslo periodic day job; a simple way to unbreak this
is to name them explicitly (which appears to be
more common).

So this changes the command listing to do just that
as well as lists py35 in the envlist (because its
a valid target).

Change-Id: I2a162604b60df8f18ff53069c6bf99cfecc4217e

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 17 Oct 2016 15:47:49 +0000 (15:47 +0000)]
Updated from global requirements

Change-Id: I85e8f943207a42c5d8bf5ab378ca470c4de1d170

8 years agohardware: Standarized flavor/image meta extraction
Stephen Finucane [Mon, 17 Oct 2016 14:19:15 +0000 (15:19 +0100)]
hardware: Standarized flavor/image meta extraction

Extracting a configuration option from both flavor extra specs and
image metadata is rather common operation. Standardize how we do it.

Change-Id: Ic993d79e155805160fc7dcad269f6423a145c272

8 years agoapi-ref: Fix wrong parameters in os-volumes.inc
Takashi NATSUME [Tue, 26 Jul 2016 04:20:35 +0000 (13:20 +0900)]
api-ref: Fix wrong parameters in os-volumes.inc

In os-snapshots APIs, the display name is the snapshot name,
not the volume name.
The display description is the snapshot description,
not the volume description.
So fix them.

Change-Id: I33cd59b759c6f7c8eca8bd511ba43637e7b27c1c
Closes-Bug: #1611292

8 years agoMerge "Remove watchdog_actions module"
Jenkins [Mon, 17 Oct 2016 09:19:30 +0000 (09:19 +0000)]
Merge "Remove watchdog_actions module"

8 years agoMerge "Ironic Driver: override get_serial_console()"
Jenkins [Fri, 14 Oct 2016 20:39:43 +0000 (20:39 +0000)]
Merge "Ironic Driver: override get_serial_console()"

8 years agoMerge "Updated from global requirements"
Jenkins [Fri, 14 Oct 2016 17:37:40 +0000 (17:37 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Stop using mox in virt/libvirt/test_imagecache.py"
Jenkins [Fri, 14 Oct 2016 16:25:57 +0000 (16:25 +0000)]
Merge "Stop using mox in virt/libvirt/test_imagecache.py"

8 years agoMerge "Remove mox from nova/tests/unit/virt/libvirt/test_utils.py"
Jenkins [Fri, 14 Oct 2016 16:25:08 +0000 (16:25 +0000)]
Merge "Remove mox from nova/tests/unit/virt/libvirt/test_utils.py"

8 years agoMerge "Stop using mox in unit/fake_processutils.py"
Jenkins [Fri, 14 Oct 2016 16:24:17 +0000 (16:24 +0000)]
Merge "Stop using mox in unit/fake_processutils.py"

8 years agoMerge "Add InvalidInput handling for attach-volume"
Jenkins [Fri, 14 Oct 2016 16:23:33 +0000 (16:23 +0000)]
Merge "Add InvalidInput handling for attach-volume"

8 years agoIronic Driver: override get_serial_console()
Dao Cong Tien [Fri, 10 Jun 2016 08:02:43 +0000 (15:02 +0700)]
Ironic Driver: override get_serial_console()

This implements Nova-compatible serial console for Ironic in
Nova scope.

[Nova] blueprint ironic-serial-console-support
[Ironic] spec
    https://review.openstack.org/319505
[Ironic] related patches
    https://review.openstack.org/#/c/293873/
    https://review.openstack.org/#/c/328168/
[Ironic] Related-Bug: #1553083

Change-Id: I38e803021d71fc0760a8ae99b3e97dd0aecb5088

8 years agoMerge "Document experimental pipeline in Nova CI"
Jenkins [Fri, 14 Oct 2016 15:19:19 +0000 (15:19 +0000)]
Merge "Document experimental pipeline in Nova CI"

8 years agoMerge "libvirt: fix serial console not correctly defined after live-migration"
Jenkins [Fri, 14 Oct 2016 14:55:28 +0000 (14:55 +0000)]
Merge "libvirt: fix serial console not correctly defined after live-migration"

8 years agoMerge "Fix exception when vcpu_pin_set is set to """
Jenkins [Fri, 14 Oct 2016 13:23:46 +0000 (13:23 +0000)]
Merge "Fix exception when vcpu_pin_set is set to """

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 14 Oct 2016 05:40:57 +0000 (05:40 +0000)]
Updated from global requirements

Change-Id: Ib977f112cc4ef92f337c4086a29af5579bfa3baa

8 years agoDrop deprecated support for hw_watchdog_action flavor extra spec
Matt Riedemann [Thu, 13 Oct 2016 18:41:27 +0000 (14:41 -0400)]
Drop deprecated support for hw_watchdog_action flavor extra spec

Since change Ic5344ec34a130ee5a0ed2c7348af0b9d79e3508e which goes
back to Icehouse we've allowed using hw_watchdog_action for both
image metadata and flavor extra specs, even though you should
use hw:watchdog_action for flavor extra specs. Well, it's finally
time to remove the transition support for hw_watchdog_action in
flavor extra specs.

Change-Id: Ibf7bc549af498e2355ebdaf9e5d3337554a7f3d6

8 years agoRemove watchdog_actions module
Matt Riedemann [Thu, 13 Oct 2016 17:42:52 +0000 (13:42 -0400)]
Remove watchdog_actions module

The only purpose of the watchdog_actions module was
for a helper method to check against a list of enums
which are also defined in the WatchdogAction enum
field, so remove the module and just use the field enums.

Change-Id: I0de5fc4efc0ae0b5fe11a56669e180b450d3410a

8 years agoMerge "Update rolling upgrade steps from upgrades documentation"
Jenkins [Thu, 13 Oct 2016 16:27:42 +0000 (16:27 +0000)]
Merge "Update rolling upgrade steps from upgrades documentation"

8 years agoDocument experimental pipeline in Nova CI
Emilien Macchi [Tue, 4 Oct 2016 13:30:35 +0000 (09:30 -0400)]
Document experimental pipeline in Nova CI

Add a section in "core-review" to document how experimental pipeline would
be used by Nova developers in order to consume the resources at the
right time.

Change-Id: I5df377032c2fcec18cdf71af2568e028373bcced

8 years agoUpdate rolling upgrade steps from upgrades documentation
Pushkar Umaranikar [Tue, 20 Sep 2016 22:25:40 +0000 (22:25 +0000)]
Update rolling upgrade steps from upgrades documentation

Modify rolling upgrade steps from exisitng nova upgrades
documentation. Also, add pre-requisites required for the
zero downtime upgrade under newly created "Plan your upgrade"
section.

Change-Id: I4e884ac051614d25258734c35208b3abfe5fd3a4
Co-Authored-By: Sivasathurappan Radhakrishnan <siva.radhakrishnan@intel.com>
8 years agoMerge "Reduce duplication and complexity in format_dom"
Jenkins [Thu, 13 Oct 2016 11:25:44 +0000 (11:25 +0000)]
Merge "Reduce duplication and complexity in format_dom"

8 years agoMerge "Renamed parameters name in config.py"
Jenkins [Thu, 13 Oct 2016 11:20:41 +0000 (11:20 +0000)]
Merge "Renamed parameters name in config.py"

8 years agoAdd migrate_uri for invoking the migration
Alberto Planas [Wed, 17 Aug 2016 15:37:48 +0000 (17:37 +0200)]
Add migrate_uri for invoking the migration

Add migrate_uri parameter in Guest.migrate method, to indicate
the URI where we want to stablish the connection in a non-tunneled
migration.

Change-Id: I6c2ad0170d90560d7d710b578c45287e78c682d1
Closes-Bug: #1614063

8 years agoMerge "libvirt: cleanup never used migratable flag checking"
Jenkins [Thu, 13 Oct 2016 03:04:45 +0000 (03:04 +0000)]
Merge "libvirt: cleanup never used migratable flag checking"

8 years agoMerge "Require WebOb>=1.6.0"
Jenkins [Wed, 12 Oct 2016 22:40:39 +0000 (22:40 +0000)]
Merge "Require WebOb>=1.6.0"

8 years agoMerge "Fix issue with not removing rbd rescue disk"
Jenkins [Wed, 12 Oct 2016 22:21:47 +0000 (22:21 +0000)]
Merge "Fix issue with not removing rbd rescue disk"

8 years agoMerge "hacking: Use assertIs(Not), assert(True|False)"
Jenkins [Wed, 12 Oct 2016 21:26:09 +0000 (21:26 +0000)]
Merge "hacking: Use assertIs(Not), assert(True|False)"

8 years agoMerge "Add quota related tables to the api database."
Jenkins [Wed, 12 Oct 2016 21:21:28 +0000 (21:21 +0000)]
Merge "Add quota related tables to the api database."

8 years agoRemove nova/openstack/* from .coveragerc
Matt Riedemann [Wed, 12 Oct 2016 20:20:49 +0000 (16:20 -0400)]
Remove nova/openstack/* from .coveragerc

The nova/openstack tree no longer exists since we
don't use oslo-incubator so no need to filter it
out in the coveragerc file.

Change-Id: I504144b2e26aec9a46aa1b415e44c7ab787fe021

8 years agoMerge "Stop using mox in test_firewall"
Jenkins [Wed, 12 Oct 2016 17:53:35 +0000 (17:53 +0000)]
Merge "Stop using mox in test_firewall"

8 years agoMerge "Use more specific asserts in tests"
Jenkins [Wed, 12 Oct 2016 17:52:57 +0000 (17:52 +0000)]
Merge "Use more specific asserts in tests"

8 years agoMerge "doc: add dev policy about no new metrics monitors"
Jenkins [Wed, 12 Oct 2016 17:24:40 +0000 (17:24 +0000)]
Merge "doc: add dev policy about no new metrics monitors"

8 years agoMerge "doc: note the future of out of tree support"
Jenkins [Wed, 12 Oct 2016 17:20:33 +0000 (17:20 +0000)]
Merge "doc: note the future of out of tree support"

8 years agoMerge "conf: Remove deprecated ``use_glance_v1``"
Jenkins [Wed, 12 Oct 2016 15:58:56 +0000 (15:58 +0000)]
Merge "conf: Remove deprecated ``use_glance_v1``"

8 years agoFix issue with not removing rbd rescue disk
Bartek Zurawski [Tue, 10 May 2016 15:31:19 +0000 (17:31 +0200)]
Fix issue with not removing rbd rescue disk

Currently when instance that use RBD as backend
is rescued and next unrescued, rescue image is
not removed, this cause issue when the same
instance is rescued again it's use old rescue
image not new one.

Change-Id: Idf4086303baa4b936c90be89552ad8deb45cef3a
Closes-Bug: #1475652

8 years agoRequire WebOb>=1.6.0
Matt Riedemann [Wed, 12 Oct 2016 14:25:09 +0000 (10:25 -0400)]
Require WebOb>=1.6.0

Nova change 4e923eb9a660593b8a7d2522992700182978a54c started
using the json_formatter kwarg which was introduced in WebOb
1.6.0:

https://github.com/Pylons/webob/commit/87c8749a57c1ff2442db2d74d9fb86935b7b201e

So we need to raise the minimum required version for nova to use.

Change-Id: Ia778a11afb03b6d4b57dbd55a801a5a28b10541d
Depends-On: I2bbad0c059cc514ba0be1d42c061056a342caadc
Closes-Bug: #1632723

8 years agoMerge "Fix pep8 E501 line too long"
Jenkins [Wed, 12 Oct 2016 12:58:56 +0000 (12:58 +0000)]
Merge "Fix pep8 E501 line too long"

8 years agoconf: Remove deprecated ``use_glance_v1``
Maciej Szankin [Tue, 11 Oct 2016 13:05:07 +0000 (15:05 +0200)]
conf: Remove deprecated ``use_glance_v1``

Glance option ``use_glance_v1`` was deprecated and
listed as to be removed for Ocata. This patch removes it.

Blueprint centralize-config-options-ocata

Change-Id: Id891172418535a88fefb8ea05d774fe39dc14eaf

8 years agoMerge "placement: add cache for resource classes"
Jenkins [Wed, 12 Oct 2016 11:32:33 +0000 (11:32 +0000)]
Merge "placement: add cache for resource classes"

8 years agoMerge "Always use python2.7 for functional tests"
Jenkins [Wed, 12 Oct 2016 11:30:58 +0000 (11:30 +0000)]
Merge "Always use python2.7 for functional tests"

8 years agoMerge "hardware: Rework docstrings"
Jenkins [Wed, 12 Oct 2016 11:30:22 +0000 (11:30 +0000)]
Merge "hardware: Rework docstrings"

8 years agoAdding hugepage and NUMA support check for aarch64
VeenaSL [Mon, 19 Sep 2016 08:06:53 +0000 (13:36 +0530)]
Adding hugepage and NUMA support check for aarch64

Nova ignores aarch64 while verifying for hugepage and NUMA support.
AARCH64 also supports hugepage and NUMA on the same libvirt versions as of x86.
Hence adding this chek for aarch64 also.

Change-Id: I7b5ae1dbdca4fdd0aee2eefd4099c4c4953b609a
Closes-bug: #1623871

8 years agoMerge "doc: Comment on latin1 vs utf8 charsets"
Jenkins [Wed, 12 Oct 2016 10:19:02 +0000 (10:19 +0000)]
Merge "doc: Comment on latin1 vs utf8 charsets"

8 years agohacking: Use assertIs(Not), assert(True|False)
Stephen Finucane [Wed, 31 Aug 2016 13:45:51 +0000 (14:45 +0100)]
hacking: Use assertIs(Not), assert(True|False)

This is per the OpenStack style guidelines.

Change-Id: Iec102872e2d5b004255ce897cc22c4d1a41c6f9e
Co-authored-by: Gabor Antal <antal@inf.u-szeged.hu>
8 years agoUse more specific asserts in tests
Gábor Antal [Tue, 30 Aug 2016 17:09:20 +0000 (19:09 +0200)]
Use more specific asserts in tests

Use asserts with more specific assert methods, e.g.: from
assertTrue(sth == None) to assertIsNone(*),
assertTrue(isinstance(inst, type)) to assertIsInstace(inst, type) or
assertTrue(not sth) to assertFalse(sth).

This change ensures a better description will be shown on fail. This is
the recommended way to use assertions provided by testtools.

Change-Id: Ia4a34e0145176e077bbf7e9ed6f69d815c6ed840
Co-authored-by: Stephen Finucane <sfinucan@redhat.com>
8 years agoMerge "conf: Move PCI options to a PCI group"
Jenkins [Wed, 12 Oct 2016 09:55:33 +0000 (09:55 +0000)]
Merge "conf: Move PCI options to a PCI group"

8 years agoAdd quota related tables to the api database.
Mark Doffman [Wed, 15 Jun 2016 15:09:19 +0000 (10:09 -0500)]
Add quota related tables to the api database.

Quotas are required to exist in the API database as we need to enforce
quotas across cells.

blueprint cells-quota-api-db

Change-Id: I52fd680eaa4880b06f7f8d4bd1bb74920e73195d

8 years agoMerge "docs: update the Public Contractual API link"
Jenkins [Wed, 12 Oct 2016 07:19:44 +0000 (07:19 +0000)]
Merge "docs: update the Public Contractual API link"

8 years agoMerge "ironic: Rename private methods for instance info"
Jenkins [Wed, 12 Oct 2016 00:48:53 +0000 (00:48 +0000)]
Merge "ironic: Rename private methods for instance info"

8 years agodoc: add dev policy about no new metrics monitors
Matt Riedemann [Wed, 12 Oct 2016 00:41:47 +0000 (20:41 -0400)]
doc: add dev policy about no new metrics monitors

At the newton midcycle we talked about the proposed
memory bandwidth monitor plugin and decided that we
really just don't want nova in the business of metrics
gathering, and are moving to deprecate that functionality.

There are several specs open related to adding more
metrics monitors and/or exposing existing ones, so this
codifies the policy on nova as metrics gatherer.

Change-Id: Ie47e91776bc36a22fd48d3673c69c842509489a1

8 years agoAlways use python2.7 for functional tests
melanie witt [Tue, 11 Oct 2016 23:59:25 +0000 (23:59 +0000)]
Always use python2.7 for functional tests

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

Closes-Bug: #1632521

Change-Id: I7bf6653f55c10d0a4f75054e519edf7da19c5c09

8 years agodoc: note the future of out of tree support
Matt Riedemann [Tue, 11 Oct 2016 23:47:40 +0000 (19:47 -0400)]
doc: note the future of out of tree support

The out of tree support section of the nova dev policy
document was pretty old and basically said hooks and
extension points are buyer beware, but doesn't mention
anything about why we don't want them (interoperability)
and the efforts the last few releases to actively
deprecate and remove hooks/extension points/classloading.

This change adds some more wording to that effect to
the doc.

Change-Id: Iaa1cf3ef7ac6e8e1d75f94e17aaba1058474acca

8 years agodocs: update the Public Contractual API link
Matt Riedemann [Tue, 11 Oct 2016 23:44:07 +0000 (19:44 -0400)]
docs: update the Public Contractual API link

This updates the docs to point at our flashy new(ish)
api-ref compute REST API docs instead of those gross
crusty old inaccurate ones.

Change-Id: Ib5e157f3ff7a215be4cbf7e8744b3507f3b4b106

8 years agoAdd InvalidInput handling for attach-volume
Ken'ichi Ohmichi [Tue, 11 Oct 2016 23:27:10 +0000 (16:27 -0700)]
Add InvalidInput handling for attach-volume

If attaching the already attached volume to a server, Cinder returns
HTTP400 response to Nova but Nova didn't except the response.
Then Nova returned HTTP500 response to a client.
Tempest test I594566704b9794457d224031802d9cbf132e765f reproduces
this error case.

Closes-Bug: #1632513
Change-Id: I6718883cb6b42d9b816e3799324a166cbfe92b40

8 years agoMerge "placement: add new resource_classes table"
Jenkins [Tue, 11 Oct 2016 22:35:36 +0000 (22:35 +0000)]
Merge "placement: add new resource_classes table"

8 years agoMerge "Improve help text for libvirt options"
Jenkins [Tue, 11 Oct 2016 18:46:39 +0000 (18:46 +0000)]
Merge "Improve help text for libvirt options"

8 years agoMerge "Add swap volume notifications (start, end)"
Jenkins [Tue, 11 Oct 2016 17:56:06 +0000 (17:56 +0000)]
Merge "Add swap volume notifications (start, end)"

8 years agoMerge "Add a hacking rule for string interpolation at logging"
Jenkins [Tue, 11 Oct 2016 17:55:32 +0000 (17:55 +0000)]
Merge "Add a hacking rule for string interpolation at logging"

8 years agoMerge "Avoid update resource if compute node not updated"
Jenkins [Tue, 11 Oct 2016 16:43:32 +0000 (16:43 +0000)]
Merge "Avoid update resource if compute node not updated"

8 years agoplacement: add cache for resource classes
Jay Pipes [Wed, 28 Sep 2016 22:19:37 +0000 (18:19 -0400)]
placement: add cache for resource classes

Adds a simple caching mechanism for resource class string and integer
codes. The cache is initialized with a RequestContext in order to fetch
a DB connection but only uses the DB connection to look up string names
or integer IDs if the requested key (string or integer) isn't either in
the fields.ResourceClass.ALL collection or not already looked up in the
DB.

The next patch in this series adds code to the resource_providers.py
module that changes all occurrences of fields.ResourceClass.index() and
fields.ResourceClass.from_index() to utilize the resource class cache.
In this way, we will transparently move from a situation with resource
classes represented only as Enum-based constants to a DB-backed solution
where custom resource classes can co-exist with the standardized Enum
constants.

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