Commit Graph

44475 Commits

Author SHA1 Message Date
Sean Dague 95441ef896 move gate hooks to gate/
We prevent a lot of tests from getting run on tools/ changes given
that most of that is unrelated to running any tests. By having the
gate hooks in that directory it made for somewhat odd separation of
what is test sensitive and what is not.

This moves things to the gate/ top level directory, and puts a symlink
in place to handle project-config compatibility until that can be
updated.

Change-Id: Iec9e89f0380256c1ae8df2d19c547d67bbdebd65
2017-01-04 11:05:16 +00:00
Jenkins d768bfa2c2 Merge "api-ref: Fix parameters in os-server-groups.inc" 2017-01-04 04:23:59 +00:00
Jenkins dbe648f450 Merge "[TrivialFix] Fix comment and function name typo error" 2017-01-04 04:23:33 +00:00
Jenkins f8cca1b083 Merge "[TrivialFix] Fix comment typo error" 2017-01-04 04:16:07 +00:00
Jenkins 34f4b1bd68 Merge "Provide an online data migration to cleanup orphaned build requests" 2017-01-04 00:17:01 +00:00
Jenkins e8996713f8 Merge "Make servers api view load instance fault from proper cell" 2017-01-04 00:13:54 +00:00
Takashi NATSUME 1278b1fe44 api-ref: Fix parameters in os-server-groups.inc
Fix the following parameters.

- 'id'(server group id) defined as a path parameter in body
- 'server_group' object defined as 'server_groups' list
- missing 'server_group' object
- 'user_id' defined as a query parameter in body

Change-Id: I3dcf6aa317b428d6984b0dcb61496594a68bba6f
Closes-Bug: #1652897
2017-01-03 23:29:37 +00:00
Dan Smith a9a2bca070 Make servers api view load instance fault from proper cell
Right now with CellsV2 the servers api will fail to load the fault
for an instance because it does not target it to a particular cell.
This makes us look up the instance mapping and use it to target
loading of the fault.

Change-Id: Ic2df2c3cfa66a91bd20437f534287e770b85f51d
2017-01-03 13:40:03 -08:00
Jenkins d17c407ab0 Merge "libvirt: Remove slowpath listing of instances" 2017-01-03 21:39:38 +00:00
Jenkins 12327ff595 Merge "Rename PCS to Virtuozzo in error message" 2017-01-03 20:06:42 +00:00
Jenkins 8b3a7e0544 Merge "Make nova-manage cell_v2 discover_hosts tests use DBs" 2017-01-03 19:42:34 +00:00
Jenkins a7095c440e Merge "Remove mox from unit/compute/test_compute_api.py(2)" 2017-01-03 18:56:02 +00:00
Jenkins a1d3d3ef1f Merge "Remove mox from api/openstack/compute/test_rescue.py" 2017-01-03 17:06:30 +00:00
Jenkins 6b2c161b8f Merge "Remove mox from api/openstack/compute/test_fping.py" 2017-01-03 17:03:21 +00:00
Jenkins ed200c937b Merge "Remove mox from nova/tests/unit/virt/test_virt.py" 2017-01-03 17:02:51 +00:00
Chris Dent 692e596d83 [placement] start a placement_dev doc
placement_dev.rst provides a nova-developer oriented perspective on
the placement API including some explanation of its structure, some
gotchas to be aware of, and some instruction on how to add to it.

Subsequent patches will fill in the missing sections.

Change-Id: Ia571800774aa14beab121c85a693d75fc30ed517
2017-01-03 13:00:36 +00:00
Jenkins 53b46aa794 Merge "Don't apply multi-queue to SRIOV ports" 2017-01-03 11:51:02 +00:00
Jenkins ae7f78648d Merge "Refactor the code to add generic schema validation helper" 2017-01-03 09:55:58 +00:00
Jenkins 1015642f41 Merge "Trival fix typos in api-ref" 2017-01-03 09:23:00 +00:00
Jenkins 7eb988da00 Merge "objects: add new field cpu_emulator_threads_policy" 2017-01-02 13:52:45 +00:00
Jenkins c3e96edbd5 Merge "Fix assertion in test_instance_fault_get_by_instance" 2017-01-02 12:10:16 +00:00
Jenkins 9573d0279e Merge "Add release note to PCI passthrough whitelist regex support" 2017-01-02 12:00:36 +00:00
Balazs Gibizer 65ad654ebb doc: add recomendation for delete notifications
Based on the mail discussion [1] I think we should use the same payload
for delete, create, update notifications of the same entity.
This will help keep the notifications more consistent and easier
to filter.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-December/109501.html

Change-Id: If4237b111ffb0e8511b6a73c57807b9bd4addf80
2017-01-01 16:20:18 +00:00
Matt Riedemann dc911b8026 Fix assertion in test_instance_fault_get_by_instance
The instance_fault_get_by_instance_uuids DB API method returns
results sorted by created_at in descending order, so the newest
fault should be at the front of the list for a given instance
uuid in the resulting dict.

However, the way the test for this was written the 'expected'
list actually had the faults in order from oldest to newest. The
reason this didn't fail the test was because it was using
_assertEqualListsOfObjects to compare the results, which sorts
the lists before comparing them, which is exactly NOT what we want
when we care about the sort order of the results.

The test is fixed by using _assertEqualOrderedListOfObjects which
leaves the original sort order of the lists to compare and fixes
the 'expected' list by inserting the newest faults at the front
of the list.

Change-Id: I58990194016447b05b42df76141a193595cdcb9c
Related-Bug: #1632247
2016-12-29 12:17:10 -05:00
Jenkins a74d3ae4e8 Merge "Enble compute.test_compute_mgr.ComputeManagerUnitTestCase on Python 3" 2016-12-28 13:38:01 +00:00
Jenkins 86f3e93a0f Merge "Show team and repo badges on README" 2016-12-28 12:33:32 +00:00
Jenkins 77b9e288a1 Merge "Fix typo" 2016-12-28 12:29:07 +00:00
Sahid Orentino Ferdjaoui 39cac35bdd objects: add new field cpu_emulator_threads_policy
In order to store the emulator policy requested for an instance, a new
field cpu_emulator_threads_policy has been added to the object
InstanceNUMATopology.

implements blueprint libvirt-emulator-threads-policy

Change-Id: Id0f3726069a00955d32cf394fccc39e2a149e5ca
2016-12-28 03:32:17 -05:00
Jenkins aead84206d Merge "Fix BDM JSON-Schema validation" 2016-12-28 04:13:25 +00:00
Jenkins d442488ebe Merge "Remove mox from nova/tests/unit/compute/test_virtapi.py" 2016-12-27 10:55:50 +00:00
Jenkins 56b96b4ed6 Merge "Remove mox from unit/api/openstack/compute/test_hide_server_addresses.py" 2016-12-27 10:55:24 +00:00
Jenkins 66e170d899 Merge "Remove mox from api/openstack/compute/test_image_size.py" 2016-12-27 10:55:00 +00:00
Jenkins ba62ff7f3f Merge "Replace "Openstack" with "OpenStack"" 2016-12-27 10:54:40 +00:00
Jenkins baf92969c0 Merge "make 2.31 microversion wording better" 2016-12-27 10:54:12 +00:00
Jenkins 5c4ac6b01c Merge "Port security group related tests to Python 3" 2016-12-27 10:53:45 +00:00
Jenkins 85df3a681b Merge "api-ref: Fix parameter type in servers-admin-action.inc" 2016-12-27 06:46:46 +00:00
Jenkins 6562378322 Merge "Stop using mox stubs in nova/tests/unit/cells" 2016-12-27 06:46:24 +00:00
Jenkins 372452a1f7 Merge "Resource tracker doesn't free resources on confirm resize" 2016-12-27 03:26:27 +00:00
Jenkins 0513cf591b Merge "Use bdm destination type allowed values hard coded" 2016-12-27 03:03:49 +00:00
Jenkins 0963ab4168 Merge "nova-status: add basic placement status checking" 2016-12-26 20:23:28 +00:00
Ludovic Beliveau 25bc5a6639 Resource tracker doesn't free resources on confirm resize
If the audit hasn’t been triggered and confirm resize is executed, the
resources aren't dropped right away because the itype stored in the
self.tracked_migrations corresponds to the new flavor.  However, the
resource usage would get recalculated correctly by the next periodic
resource audit.

If the audit got executed, it corresponds to the old flavor, and resources
get dropped properly.

This patch removes part of the condition in drop_move_claim() which was
trying to validate that the instance type (itype) stored in the
tracked_migration was corresponding instance type being passed in the
method.  Looking at the code where drop_move_claim() is being called shows
that we can safely remove this check since it is known (based on the prefix)
which resources needs to be dropped.

Also, unit test changes from b816e3 were moved to a separate test.  It
introduced a hacky way to force the migration dest_compute and makes it hard
to keep _test_finish_revert_resize() generic and have the resources correctly
tracked.

Closes-Bug: #1647370
Change-Id: Ic02b56be5684d9206ece4c20f5194802dfe12e25
2016-12-26 13:05:01 -05:00
Jenkins aa77e0bd17 Merge "Fix typo in image_meta.py & checks.py & flavor.py" 2016-12-26 14:09:59 +00:00
Takashi NATSUME c9de74ac2a Stop using mox stubs in nova/tests/unit/cells
The mox stubs have been replaced in the following files.

* nova/tests/unit/cells/test_cells_filters.py
* nova/tests/unit/cells/test_cells_rpcapi.py
* nova/tests/unit/cells/test_cells_scheduler.py
* nova/tests/unit/cells/test_cells_state_manager.py
* nova/tests/unit/cells/test_cells_utils.py

Change-Id: I27b22e7b1ae22527c4f99371a417679afbe07048
Implements: blueprint remove-mox-ocata
2016-12-26 13:31:24 +00:00
Jenkins 99b3ad431e Merge "Fix urllib.urlencode issue in functional tests on Python 3" 2016-12-26 13:20:37 +00:00
Moshe Levi 521cd72b10 Add release note to PCI passthrough whitelist regex support
Change-Id: I02b32f0e601670c470bccea7c276c3f1c70066f3
2016-12-26 09:49:53 +02:00
Takashi NATSUME e7f5f02f7d api-ref: Fix parameter type in servers-admin-action.inc
Fix parameter type and add a missing parameter
in servers-admin-action.inc.

Change-Id: I8ad9227b49ad8148098a8658647bb4a9216d15ba
Closes-Bug: #1651441
2016-12-26 05:30:47 +00:00
ChangBo Guo(gcb) 99757f8f0b Port security group related tests to Python 3
* Use encode_utils.safe_decode from oslo.utils
  to decode result of urllib.parse.unquote(cidr)

Partially-Implements: blueprint goal-python35

Change-Id: If139d093f8951f59753c06a88a59b4fb2f878940
2016-12-26 13:29:25 +08:00
Kevin_Zheng fb3b2d9eaf Don't apply multi-queue to SRIOV ports
The multi-queue feature was added:
https://blueprints.launchpad.net/nova/+spec/libvirt-virtio-net-multiqueue
and it is controlled using image metadata:
hw_vif_mutliqueue_enabled=true|false

when users want to launch an instance with
a SRIOV port and several normal ports
with multi-queue feature, ERROR can take
place due to wrong driver name for SRIOV
interface. Details could be found in bug
description.

Change-Id: I52c51ff17f43133154f6ea8aa4107f1673f82dde
Closes-bug: #1641814
2016-12-26 02:31:28 +00:00
Jay Pipes 1870c75c45 placement: correct improper test case inheritance
nova/tests/unit/scheduler/client/test_report.py had a bunch of tests in
a base test class instead of just the setUp(). This resulted in
re-running a whole bunch of tests unnecessarily.

Before:

Ran: 61 tests in 35.0000 sec.
- Passed: 61
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 11.8261 sec.

after:

Ran: 35 tests in 35.0000 sec.
- Passed: 35
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 5.0003 sec.

Same test content and coverage, just not re-running tests unnecessarily.

Change-Id: Icbdf8dd4e221259fd4a2683cb12cc26dc87733bd
2016-12-25 18:03:53 +00:00
Kevin_Zheng e4f6689cb5 Remove mox in tests/unit/objects/test_instance_info_cache
This patch replaces mox with mock in
tests/unit/objects/test_instance_info_cache

Partially-Implements: blueprint remove-mox-ocata

Change-Id: I6e2a86bd6641144e19d45fca996ce6beef1a3c59
2016-12-24 14:22:17 +00:00