Commit Graph

52034 Commits

Author SHA1 Message Date
Zuul 41692fc5e9 Merge "Use common functions in NonSharedStorageFixture" 2018-08-07 05:01:48 +00:00
Zuul 6a055f87ee Merge "Define irrelevant-files for tempest-full-py3 job" 2018-08-07 02:57:59 +00:00
Zuul 5f3b4aa44f Merge "Not use project table for user table" 2018-08-07 01:11:39 +00:00
Zuul 1d97b663d3 Merge "Adds a test for getting allocations API" 2018-08-07 00:50:17 +00:00
Zuul 954038d795 Merge "Refactor AllocationFixture in placement test" 2018-08-07 00:46:16 +00:00
Zuul 477490bed4 Merge "[placement] Debug log per granular request group" 2018-08-06 20:46:25 +00:00
Zuul ef50733478 Merge "Increase max_unit in placement test fixture" 2018-08-06 20:21:40 +00:00
ghanshyam 65cdcf4aaa Define irrelevant-files for tempest-full-py3 job
tempest-full-py3 job runs on nova check and gate pipeline
as part of 'integrated-gate-py35' template.

Unlike tempest-full or other job, nova job definition list on
project-config side[1] does not define the irrelevant-files for
tempest-full-py job which leads to run this job on doc/test file
only change also.

This commit defines the irrelevant-files for tempest-full-py3 on
nova's zuul.yaml.

Closes-Bug: #1785425

[1] https://github.com/openstack-infra/project-config/blob/57907fbf04c3f9a69d390efee800d42697faae16/zuul.d/projects.yaml#L9283

Change-Id: I887177c078a53c53e84289a6b134d7ea357dfbef
2018-08-06 15:05:52 +00:00
Zuul f9ad40d35d Merge "Reload oslo_context after calling monkey_patch()" 2018-08-06 14:48:55 +00:00
Zuul 8688b25ca7 Merge "Deprecate upgrade_levels options for deprecated/removed services" 2018-08-04 19:00:31 +00:00
Zuul b614217b05 Merge "clarify usage of upgrade_levels group" 2018-08-04 18:41:56 +00:00
Tetsuro Nakamura e13b765e55 Not use project table for user table
`GET /resource_provider/{uuid}/allocations` API didn't
return all the allocations made by multiple users.

This was because the placement wrongly used project table
for user table. This patch fixes it with the test case.

Change-Id: I7c808dec5de1204ced0d1f1b31d8398de8c51679
Closes-Bug: #1785382
2018-08-04 19:34:04 +09:00
Tetsuro Nakamura 9cfc598acf Adds a test for getting allocations API
`GET /resource_provider/{uuid}/allocations` API currently doesn't
return all the allocations made by multiple users.

This patch adds a test to describe this bug. The fix for this
is coming in a follow up.

Change-Id: I2b01e27922f11bef2defcb01fe415692de1578ea
Partial-Bug: #1785382
2018-08-04 19:20:30 +09:00
Zuul c0310ad8c8 Merge "[placement] ensure_rc_cache only at start of process" 2018-08-04 01:23:51 +00:00
Zuul 15bda3296d Merge "Remove unused flavor_delete_info() method" 2018-08-03 23:18:04 +00:00
Zuul 4c37ff72e5 Merge "[placement] Move resource_class_cache into placement hierarchy" 2018-08-03 19:17:02 +00:00
Chris Dent 69b73d8978 [placement] ensure_rc_cache only at start of process
Call ensure_rc_cache from deploy, so that we only try it once per
process.

A small number of unit tests needed an adjustment to either mock
properly or call the ensure_rc_cache in advance of their work.

Change-Id: I7499bba6ac6b463d8da46e10469121e62ee52ed1
2018-08-03 19:53:39 +01:00
Zuul 352a8d1f21 Merge "Reno for notification-transformation-rocky" 2018-08-03 18:49:13 +00:00
Matt Riedemann cc42724274 Remove unused flavor_delete_info() method
This hasn't been used, outside of a test,
since a6ff9efda3
in liberty.

Change-Id: I976c322931dc7ee4c099cff04070202bb688d6ef
2018-08-03 12:44:52 -04:00
Takashi NATSUME 198885522c Reno for notification-transformation-rocky
Add a release note for blueprint
versioned-notification-transformation-rocky.

Change-Id: Ide95e93c2bcbfb8449fda9ee329409f71703ac01
Implements: bp versioned-notification-transformation-rocky
2018-08-03 11:57:09 -04:00
Matt Riedemann f0d2925bc7 Deprecate upgrade_levels options for deprecated/removed services
* nova-cert was removed in Pike: 2bcee77e3

* nova-network has been deprecated since newton: 7d5fc4868

* nova-consoleauth was deprecated in rocky: e91dad3ee

So start the timer on the related upgrade_levels options
so we can remove them.

Change-Id: Ied416335d36fe3324fb1c5c78353affe1332ba90
2018-08-03 15:53:11 +00:00
Chris Dent 08f23b5810 [placement] Move resource_class_cache into placement hierarchy
Since only placement uses the resource_class_cache, move it
into the placement hierarchy.

Change-Id: I837d4b691f94af0487a66dacf5ae563e4423f6a3
2018-08-03 14:55:49 +01:00
Eric Fried 92d47e5ba4 [placement] Debug log per granular request group
Add a debug log as suggested in [1]: for each granular request group, it
prints how many allocation requests matched. See sample output [2].

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-August/132802.html
[2] http://paste.openstack.org/raw/727229/

Change-Id: I89d2892fabb6273bfa793f4a06dced80b68e93d5
2018-08-03 08:41:28 -05:00
Zuul 3ac6deb94c Merge "Scrub hw:cpu_model from API samples" 2018-08-03 13:19:28 +00:00
Zuul 0d869bccf2 Merge "Docs: Add Placement to Nova system architecture" 2018-08-03 12:13:11 +00:00
Zuul 45f1c9c910 Merge "Remove unused request API sample template" 2018-08-03 11:29:39 +00:00
Zuul 69def63ed4 Merge "Add another up-call to the cells v2 caveats list" 2018-08-03 07:31:31 +00:00
ghanshyam 2ac1bfa767 Remove unused request API sample template
There are few POST API which does not take request
body as mandatory. For example POST 'servers/%s/consoles/

For such API, functional sample tests using some empty
request sample template. And doc/api_samples dir does
not have such empty sample file.

This commit removes those empty sample files and make
_do_post() base method to make body and subs param as optional
for such API.

Also add one missing sample file(non empty) in doc/api_samples dir.

Change-Id: I163e17a4a8253594e1768ed9b118fba63d5e08f1
2018-08-03 07:00:13 +00:00
Zuul 76a946b6da Merge "In Python3.7 async is a keyword [1]" 2018-08-03 00:58:06 +00:00
Matt Riedemann 303379fdd7 Scrub hw:cpu_model from API samples
Nova does not support a "hw:cpu_model" flavor extra
spec. This was added as part of microversion 2.47 from
WindRiver where their Titanium Cloud product does support
a hw:cpu_model flavor extra spec. We shouldn't include
this in upstream documentation lest someone be confused
and think upstream nova supports it.

Change-Id: Ie646130731fde648ab84a423024ab59f55f5daab
2018-08-02 16:00:45 -04:00
Zuul df6e184e06 Merge "Fix all invalid obj_make_compatible test case" 2018-08-02 19:55:20 +00:00
Zuul b046a99844 Merge "Complete the api-ref of security group rule" 2018-08-02 19:06:40 +00:00
Zuul b54be6c29d Merge "Hyper-V + OVS: plug vifs before starting VMs" 2018-08-02 19:06:33 +00:00
Zuul be4c19dfd7 Merge "doc: fix resize user guide link" 2018-08-02 19:03:54 +00:00
Zuul 276d8da598 Merge "Stop setting glance_api_version in cinder.conf in nova-live-migration" 2018-08-02 19:03:45 +00:00
Zuul a458cbda9d Merge "Wait for vif plugging during live migration job" 2018-08-02 19:03:38 +00:00
Zuul 05f88f6e3b Merge "Improve NeutronFixture and remove unncessary stubbing" 2018-08-02 17:44:55 +00:00
Zuul c87ccc4ab6 Merge "Remove unused stubbing function from test" 2018-08-02 17:44:48 +00:00
Zuul 054e24702f Merge "Fix a typo in comment in resource_provider.py" 2018-08-02 15:18:20 +00:00
Zuul 776055ae39 Merge "tox: Ensure reused envdirs share the same deps" 2018-08-02 14:59:54 +00:00
Balazs Gibizer acd3216a8b Improve NeutronFixture and remove unncessary stubbing
With a small improvement on NeutronFixture that allows creating more
than two ports we can let our tests to exercise and therefore cover
most of the neutronv2/api code as well. To do that this path removes a
lot of fake_network.set_stub_network_methods() calls from the tests.
The remaining calls are not that trivial to remove so those are left in
for a later patch.

The numa functional tests uses the libvirt fixture and during the guest
config xml generation it tries to instantiate OVOs from os_vif. To make
this work the libvirt fixture has to make sure that the
os_vif.initialize() is called as that call registers the OVOs.

Change-Id: I1dbccc2be6ba79bf267edac9208c80e187e6256a
2018-08-02 15:15:03 +02:00
Balazs Gibizer f66d4c98f2 Remove unused stubbing function from test
The fake_networks.stub_out_network_cleanup is unused since
I0eaa0a9860af7d574a689722785d5d3d614eb0c1 and therefore removed.

Change-Id: Ifedcd0cd2821b38a7b4f5eae41fcb705e9606687
2018-08-02 12:53:36 +00:00
Matt Riedemann 3cd5198d5a doc: fix resize user guide link
The admin config resize doc was linking to a now non-existent
user guide doc which was deleted in pike. This change imports
the resize user guide from the openstack-manuals stable/ocata
branch, fixes the link, and updates the resize user doc to
(1) link to our internal shutdown_timeout config option reference
and (2) link to the image properties doc in glance for the
os_shutdown_timeout image property.

Change-Id: I9988abfd344d1d3b0b6eaf32b036369b51853965
Closes-Bug: #1784715
2018-08-02 12:52:11 +00:00
Zuul 7125dcb9cb Merge "Hook resource_tracker to remove stale node information" 2018-08-02 12:34:34 +00:00
Zuul cadb764d0f Merge "Add note about reschedules and num_attempts in filter_properties" 2018-08-02 10:36:32 +00:00
Stephen Finucane a0614472df tox: Ensure reused envdirs share the same deps
In commit df669caf, we modified tox.ini to reuse a shared directory for
environments with the same dependencies. The 'venv' directory was
chosen as this seemed like a suitably generic target. However, the
'venv' target actually uses a non-default values for 'deps' as doc
requirements are included to allow things like reno using this target.
This means switching between the 'venv' target and any of the other
other targets using this directory will result in the virtualenv being
rebuilt each time.

Resolve this by using an explicit directory for these shared
environments. A single setting of 'deps' for one of the targets is
removed to make this clear.

Change-Id: I239606f5f354a5536b20b1d31ee81d80b4572106
2018-08-02 11:31:41 +01:00
Kevin_Zheng 6cb1893d58 Fix a typo in comment in resource_provider.py
There is a typo in comment, this comment is very
important for readers to understand what the
function is doing, so fix it.

Trivial-fix

Change-Id: I30f3a385565dc31651d136d80e499be181fa436e
2018-08-02 14:23:23 +08:00
Tetsuro Nakamura 7d824e6d37 Refactor AllocationFixture in placement test
This patch refactors the allocation fixture used in some placement
api tests by substituting common functions in test_base.py for the
existing object management functions.

Change-Id: Ide6544d1cf9e1ed154b42075acdd7af986c3afe8
2018-08-02 14:46:10 +09:00
Tetsuro Nakamura e4923abaeb Increase max_unit in placement test fixture
In the AllocationFixture setup, to avoid the limitation of the
max_unit that is set to the inventory, we were using a bit hacky
way creating multiple allocation objects that have the same resource
class, the same consumer, and the same resource provider.

Since this is not how it works in real cases, and this prevents us
from refactoring, this patch fixes it.

Change-Id: I8ba378ff5eeaf6c9cca11c5874708a17d4640097
2018-08-02 14:00:45 +09:00
Zuul ec061aad2f Merge "Make ResourceTracker.stats node-specific" 2018-08-02 02:30:53 +00:00