8398 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
4f7147c4f5 Updated from global requirements
Change-Id: I9d99b300afe6c501c03e69de70870fda07cc0796
2016-10-27 12:19:17 +00:00
Jenkins
fc65e1bc56 Merge "Make build_requests.instance MediumText" 2016-10-27 12:04:07 +00:00
Jenkins
f1c61d20a4 Merge "Updated from global requirements" 2016-10-26 19:48:09 +00:00
Matt Riedemann
8efb8ca4be Make build_requests.instance MediumText
The build_requests.instance column is a serialized
instance object, and the instances.user_data column
is MediumText, so the build_requests.instance column
itself needs to be at least MediumText in size for MySQL.

Change-Id: I7d65df37c02750593037744543ad15e5bc64e913
Closes-Bug: #1635446
2016-10-26 06:27:07 -04:00
OpenStack Proposal Bot
b11774cd47 Updated from global requirements
Change-Id: I0c74d6fb97ca8b887a2eaba5eed8398c9b135e1d
2016-10-22 01:24:04 +00:00
Jenkins
9689bf8813 Merge "Correct bug in microversion headers in placement" 2016-10-21 14:34:06 +00:00
Jenkins
379a9e9051 Merge "placement: change resource class to a StringField" 2016-10-21 14:31:57 +00:00
Jenkins
32251f07c9 Merge "Remove bandit.yaml in favor of defaults" 2016-10-21 13:05:33 +00:00
Jenkins
328a5d993e Merge "Add swap volume notifications (error)" 2016-10-21 11:48:31 +00:00
Jenkins
efc8fbb32a Merge "doc: Integrate oslo_policy.sphinxpolicygen" 2016-10-21 02:04:44 +00:00
Eric Brown
942d2cea72 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
2016-10-20 18:09:54 +00:00
Takashi NATSUME
5fec8c9d40 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
2016-10-20 13:50:44 +00:00
Stephen Finucane
a3b300f8a1 doc: Integrate oslo_policy.sphinxpolicygen
Change-Id: I80e75b8a592e1125e02ca6177661177a7c17c927
2016-10-20 10:31:01 +01:00
Jenkins
da12b6537f Merge "Updated from global requirements" 2016-10-18 13:30:04 +00:00
Jenkins
6a30087281 Merge "conf: Group scheduler options" 2016-10-18 13:29:33 +00:00
Jenkins
5f0c66619e Merge "Explicitly name commands target environments" 2016-10-18 13:29:03 +00:00
Jenkins
7e6085fcdb Merge "Remove nova/openstack/* from .coveragerc" 2016-10-18 13:28:30 +00:00
Jenkins
6e8be77c67 Merge "compute: fixes python 3 related unit tests" 2016-10-18 12:28:51 +00:00
Claudiu Belu
1178d82670 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
2016-10-18 07:07:43 +00:00
Jenkins
819b3b415e Merge "Cleanup some redundant USES_DB_SELF usage" 2016-10-18 02:34:45 +00:00
Joshua Harlow
4b2befcb48 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
2016-10-17 13:53:12 -07:00
OpenStack Proposal Bot
0108b2a2ba Updated from global requirements
Change-Id: I85e8f943207a42c5d8bf5ab378ca470c4de1d170
2016-10-17 15:47:49 +00:00
Jay Pipes
dd009ffa24 Correct bug in microversion headers in placement
Found a small bug in the handling of a 406 error by the placement API's
microversion handling code that only appeared when more than one
microversion was used.

Change-Id: I8562e9ce962352033e43a3b993f8b8ba6f211fd4
2016-10-14 14:07:30 -04:00
Jenkins
4ec8f69881 Merge "Updated from global requirements" 2016-10-14 17:37:40 +00:00
OpenStack Proposal Bot
1931700758 Updated from global requirements
Change-Id: Ib977f112cc4ef92f337c4086a29af5579bfa3baa
2016-10-14 05:40:57 +00:00
Jenkins
d881604eb2 Merge "Require WebOb>=1.6.0" 2016-10-12 22:40:39 +00:00
Jenkins
ac212f79e9 Merge "hacking: Use assertIs(Not), assert(True|False)" 2016-10-12 21:26:09 +00:00
Jay Pipes
6f95f07ff5 placement: change resource class to a StringField
This patch modifies the fields.ResourceClass field type from an
EnumField to a StringField. This keeps the over-the-wire format of the
field backwards-compatible while allowing us to add non-standardized,
custom resource classes to the new resource_classes database table.

We change all locations of fields.ResourceClass.index() and
fields.ResourceClass.from_index() to use the ResourceClassCache object
added in the previous patch in this series and add some check logic in
Inventory and Allocation object's obj_make_compatible() methods to
ensure backversioned objects requesting or sending with a resource class
string different than the set of strings in the ResourceClass field at
the time of this patch raises a ValueError.

Change-Id: I2c1d4ae277ba25791c426e1c638dca1b1cb207a4
blueprint: custom-resource-classes
2016-10-12 17:24:09 -04:00
Jenkins
badf59cd3f Merge "Add quota related tables to the api database." 2016-10-12 21:21:28 +00:00
Matt Riedemann
2a8c1720d4 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
2016-10-12 16:20:49 -04:00
Jenkins
165556a03d Merge "Use more specific asserts in tests" 2016-10-12 17:52:58 +00:00
Matt Riedemann
41250842d5 Require WebOb>=1.6.0
Nova change 4e923eb9a660593b8a7d2522992700182978a54c started
using the json_formatter kwarg which was introduced in WebOb
1.6.0:

87c8749a57

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

Change-Id: Ia778a11afb03b6d4b57dbd55a801a5a28b10541d
Depends-On: I2bbad0c059cc514ba0be1d42c061056a342caadc
Closes-Bug: #1632723
2016-10-12 10:25:09 -04:00
Jenkins
5654045ccb Merge "Always use python2.7 for functional tests" 2016-10-12 11:30:58 +00:00
Stephen Finucane
06a01e88e5 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>
2016-10-12 11:14:33 +01:00
Gábor Antal
75f7a2f29e 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>
2016-10-12 11:12:08 +01:00
Mark Doffman
650ff9387c 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
2016-10-12 07:40:00 +00:00
melanie witt
6cf0d65fe2 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
2016-10-12 00:02:50 +00:00
Jenkins
265bfba54a Merge "placement: add new resource_classes table" 2016-10-11 22:35:36 +00:00
Jenkins
30c5e28712 Merge "Add swap volume notifications (start, end)" 2016-10-11 17:56:06 +00:00
Jenkins
1301f1df30 Merge "Add a hacking rule for string interpolation at logging" 2016-10-11 17:55:32 +00:00
Jay Pipes
634b59c73a placement: add new resource_classes table
We will store custom resource classes in the new resource_classes table.
These custom resource classes represent non-standardized resource
classes. Followup patches add the plumbing to handle existing
standardized classes currently using the fields.ResourceClass field type
and to perform CRUD operations against a /resource-classes REST API
endpoint.

Change-Id: I60ea0dcb392c1b82fead4b859fc7ed6b32d4bda0
blueprint: custom-resource-classes
2016-10-11 12:30:44 -04:00
Takashi NATSUME
ab8382ffa1 Add swap volume notifications (start, end)
Add the following notifications when swapping volumes.

* 'instance.volume_swap.start'
* 'instance.volume_swap.end'

A subsequent patch will add 'instance.volume_swap.error'.

Change-Id: Ic4d9d25bdc611221157e4663817e918b8d667ce9
Implements: blueprint add-swap-volume-notifications
2016-10-11 19:17:23 +09:00
Takashi NATSUME
5bcab383ba Add a hacking rule for string interpolation at logging
String interpolation should be delayed to be handled
by the logging code, rather than being done
at the point of the logging call.
So add the following hacking rule for it.

- [N354] String interpolation should be delayed at logging calls.

See the oslo i18n guideline.

* http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: Ief6d3ee3539c0857098fffdb7acfeec3e0fed6eb
Closes-Bug: #1596829
2016-10-11 08:39:48 +00:00
Jenkins
a57b8438ff Merge "Tests: fix a typo" 2016-10-11 07:38:43 +00:00
Gary Kotton
c1579af1aa Tests: fix a typo
TrivialFix

Change-Id: I83ea75257d5b900a37f024fe29427d33c4f2b17e
2016-10-10 00:45:11 -07:00
Alexis Lee
740b90c96c conf: Group scheduler options
Move all scheduler options into their one of two groups. Many of the
options are simply renamed to remove their 'scheduler_' prefix, with
some exceptions:

* scheduler_default_filters -> enabled_filters
* scheduler_baremetal_default_filters -> baremetal_enabled_filters
* scheduler_driver_task_period -> periodic_task_interval
* scheduler_tracks_instance_changes -> track_instance_changes

Change-Id: I3f48e52815e80c99612bcd10cb53331a8c995fc3
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Implements: blueprint centralize-config-options-ocata
2016-10-07 14:36:21 +01:00
Jenkins
fb0ed6dc45 Merge "[placement] reorder middleware to correct logging context" 2016-10-07 12:11:29 +00:00
Jenkins
90363b02f4 Merge "[placement] Allow both /placement and /placement/ to work" 2016-10-07 12:10:49 +00:00
Jenkins
d22488d6e1 Merge "[placement] ensure that allow headers are native strings" 2016-10-07 12:09:26 +00:00
Jenkins
71211e75a4 Merge "Move notification_format and delete rpc.py" 2016-10-06 20:56:47 +00:00