44247 Commits

Author SHA1 Message Date
Matt Riedemann
4a237c02e4 Use liberty-eol tag for liberty release notes
reno doesn't currently handle missing branches so we need
to use the liberty-eol tag to fix the release note job in
the gate now that origin/stable/liberty is gone.

reno will eventually check for the -eol tag when a stable
branch isn't found in:

I41ab682f081e7fd39ea534b7e2180c2109ca34ef

Change-Id: Ie54f69f5c1f91a3781c876f035fe9ed838e11c08
2016-12-14 11:38:20 -05:00
Jenkins
bce8e4b9e3 Merge "Move tags validation code to json schema" 2016-12-14 14:46:48 +00:00
Jenkins
94fddf7d77 Merge "Remove mox from nova/tests/unit/virt/xenapi/test_driver.py" 2016-12-14 14:39:34 +00:00
Jenkins
73f5b1f3fc Merge "Make test_shelve work with CONF.use_neutron=True by default" 2016-12-14 14:38:56 +00:00
Jenkins
75a804d6a1 Merge "Restrict test_compute_cells to nova-network" 2016-12-14 14:38:04 +00:00
Jenkins
45789f94cd Merge "Make test_compute_mgr work with CONF.use_neutron=True by default" 2016-12-14 14:37:20 +00:00
Jenkins
551fa18d2d Merge "Rename few tests as per new config options" 2016-12-14 12:04:32 +00:00
Jenkins
199d3d81ee Merge "api-ref: Fix 'id' (attachment_id) parameters" 2016-12-13 23:57:54 +00:00
Jenkins
146b27f223 Merge "Make test_create_delete_server_with_instance_update deterministic" 2016-12-13 23:04:48 +00:00
Jenkins
70b3de117f Merge "fix for auth during live-migration" 2016-12-13 23:03:52 +00:00
Jenkins
f60ef0dac7 Merge "Corrects the type of a base64 encoded string" 2016-12-13 23:03:13 +00:00
Jenkins
e713ab8cda Merge "Added missed "raises:" docstrings into numa_get_constraints() method" 2016-12-13 23:02:36 +00:00
Jenkins
c8955b3d70 Merge "Separate CRUD policy for server_groups" 2016-12-13 23:01:52 +00:00
Jenkins
a37d89b904 Merge "Update cors-to-versions-pipeline release note" 2016-12-13 23:01:18 +00:00
Jenkins
f419825c21 Merge "conf: improve libvirt lvm" 2016-12-13 16:22:15 +00:00
Jenkins
f8d0f9ebf8 Merge "Add debug to tox environment" 2016-12-13 10:36:06 +00:00
Jenkins
475adc9783 Merge "Remove unnecessary comment of BDM validation" 2016-12-13 10:32:40 +00:00
Sergey Nikitin
d2f12e250d Added missed "raises:" docstrings into numa_get_constraints() method
Change-Id: Iaf1c688f9b5769a1f1964cc52aba7bfdf846f203
2016-12-13 07:15:06 +00:00
Takashi NATSUME
6ab20bc523 api-ref: Fix 'id' (attachment_id) parameters
At first, the 'attachment_id_resp' in parameters.yaml was defined
as 'required' in I3789a4ad36e30728024f2aa122403b0e53b1e741
for os-volume_attachments.inc.
Then it was changed to 'optional' in
I0c1d183c5aaf6fb796be30fa5627bd5644ea689f
for os-volumes.inc.
So currently 'id' (attachment_id) parameters in
os-volume_attachments.inc are wrong.
They should be 'required'. So fix them.

Change-Id: I403a9eb1b08a840cbb2b82cb37f1b49c6edb87c9
Closes-Bug: #1608842
2016-12-13 06:18:05 +00:00
Jenkins
90f01d5ebb Merge "Pass context as kwarg instead of positional arg to get_engine" 2016-12-13 03:04:30 +00:00
ghanshyam
8f61868269 Move tags validation code to json schema
Currently  we have lot of validation code inside
server tag controller class which can be moved to
json schema.

Same can be reused on other place also.
For example, microversion 2.40 adds server tag while
boot. Same schema can be used there.

Current python code validation shows conceret error message about each
tag where using json schema error msg will be like below-

For requesting tags more than max limit:
Invalid input for field/attribute tags. Value: ['0', '1', '2', '3', '4',
'5', '6', ...] is too long

For requesting tags more than char limit:
Invalid input for field/attribute 0. Value: aaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too
long

I think those error message are clear enough to understand the wrong
tags.

Change-Id: I457cf630aeae9034c0b175d016148a1d50a0b469
2016-12-13 02:58:51 +00:00
Matt Riedemann
5d3ae79455 Make test_create_delete_server_with_instance_update deterministic
We're seeing race failures in this test because the ip_addresses
can show up in an unexpected notification depending on when
allocate_for_instance in the neutron network API completes and
the instance.info_cache.network_info data gets stored in the
database.

We can resolve the race by using SpawnIsSynchronousFixture which
makes the allocate_for_instance network API a blocking call
until the network_info is returned, and by that time it's stored
in the instance_info_cache in the database which is where the
versioned notification pulls it from in _send_versioned_instance_update.

Change-Id: Id482220b8332549a07efb4f82212d74e6e7b9d6c
Closes-Bug: #1649403
2016-12-12 19:17:49 -05:00
Jenkins
8f354f777f Merge "Fix instructions for running simple_cell_setup" 2016-12-12 21:27:34 +00:00
Jenkins
ae63a7a5a8 Merge "Refactor REGEX filters to eliminate 500 errors" 2016-12-12 20:10:17 +00:00
Jenkins
83d236cfe6 Merge "Improving help text for xenapi_vmops_opts" 2016-12-12 18:58:52 +00:00
Jenkins
4574703049 Merge "Add a retry loop to ResourceClass creation" 2016-12-12 18:54:33 +00:00
EdLeafe
a2d7ebd39b Corrects the type of a base64 encoded string
The nova/tests/functional/api_sample_tests/test_servers.py contains the
ServersSampleBase class, and in its class definition creates a
'user_data' attribute by base64 encoding a string. However, this will
not work in Python 3, as the base64.b64encode() method requires bytes,
not a string. As a result, importing the test class fails and no tests
get run.

Note that this change doesn't fix all tests to work under Python 3; it
simply fixes the bug that prevents the tests from running at all under
Python 3.

Closes-Bug: #1632856

Change-Id: I35a7b02132bed0387a173b339f6204bf0e3269de
2016-12-12 18:07:30 +00:00
Jenkins
d9d9071af2 Merge "api-ref: note that os-virtual-interfaces is nova-network only" 2016-12-12 17:55:46 +00:00
Jenkins
cf7a3f0a34 Merge "Quiet unicode warnings in functional test_resource_provider" 2016-12-12 17:55:25 +00:00
Matt Riedemann
6764ff0db2 Fix instructions for running simple_cell_setup
Change ff6b9998bb977421a5cbc94878ced8542d910c9e enforces in
a database migration that you've run the simple_cell_setup
command for cells v2 but the instructions in the error and
in the release note said to use 'nova-manage db' when it should
be 'nova-manage cell_v2'.

Change-Id: I8e71d1c7022d1000f26b7c16ed1c56f6e87ab8ac
Closes-Bug: #1649341
2016-12-12 12:52:27 -05:00
Jenkins
d6e13f9b82 Merge "UnsupportedBDMVolumeAuthMethod is not used" 2016-12-12 17:21:50 +00:00
Jenkins
93ed36076f Merge "InstanceGroupPolicyNotFound not used anymore" 2016-12-12 17:21:25 +00:00
Jenkins
b3172acfb3 Merge "Port virt.xenapi.client.test_session to Python 3" 2016-12-12 17:20:56 +00:00
Jenkins
56d9175988 Merge "Remove manual handling of old context variables" 2016-12-12 17:20:30 +00:00
Jenkins
e1a749ef43 Merge "api-ref: Body verification for os-simple-tenant-usage.inc" 2016-12-12 17:17:52 +00:00
Jenkins
5c7a5f937b Merge "Improve the error message for failed RC deletion" 2016-12-12 17:17:28 +00:00
Jenkins
9b0e0c8261 Merge "Check that all JSON files don't have \r\n in line" 2016-12-12 17:17:04 +00:00
Jenkins
1933da1005 Merge "Make test_compute_api work with CONF.use_neutron=True by default" 2016-12-12 17:15:28 +00:00
Jenkins
9240d894e8 Merge "Make nova.tests.unit.virt pass with CONF.use_neutron=True by default" 2016-12-12 17:15:03 +00:00
Jenkins
0e150163e7 Merge "Make xenapi tests work with CONF.use_neutron=True by default" 2016-12-12 17:14:36 +00:00
Jenkins
bdfc2fe0bc Merge "Make libvirt unit tests work with CONF.use_neutron=True by default" 2016-12-12 17:14:10 +00:00
Jenkins
37dabcdfb7 Merge "Make vmware unit tests work with CONF.use_neutron=True" 2016-12-12 17:13:46 +00:00
Jenkins
2e5efd8a15 Merge "Explicitly use nova-network in nova-network network tests" 2016-12-12 17:13:21 +00:00
Jenkins
7bc7838a11 Merge "Make test_serversV21 tests work with neutron by default" 2016-12-12 17:12:55 +00:00
Jenkins
1af093d3e1 Merge "neutron: handle no_allocate in create_pci_requests_for_sriov_ports" 2016-12-12 17:12:27 +00:00
Jenkins
56c7955892 Merge "Correct the sorting of datetimes for migrations" 2016-12-12 17:12:04 +00:00
Jenkins
14bbfc497b Merge "Some improvement to the process doc" 2016-12-12 16:10:01 +00:00
Jenkins
909410cdfb Merge "Fix crashing during guest config with pci_devices=None" 2016-12-12 14:20:53 +00:00
Chris Dent
2346e64d3b Quiet unicode warnings in functional test_resource_provider
The 'name' filter values passed to the ResourceProviderList object
are expected to be unicode. When not unicode the tests produce
warnings which are noise since that's not what is actually being
tested. This change makes the values unicode and thus shuts up the
warnings.

Change-Id: Iebc50ff2ced120d5004fa6d053401469097beb1b
2016-12-12 14:03:36 +00:00
Jenkins
777fd0a57e Merge "Port test_virt_drivers to Python 3" 2016-12-12 09:30:35 +00:00