Commit Graph

40986 Commits

Author SHA1 Message Date
Jenkins e3bdce2ddb Merge "Remove the skip_policy_check flags" 2016-06-09 10:30:57 +00:00
Jenkins e3f99fed52 Merge "devspec: remove unused VIRTFN_RE and re" 2016-06-09 10:29:36 +00:00
Jenkins 43d4789f3a Merge "Trivial: No need to exclude TestMoveClaim from py34 tests" 2016-06-09 10:28:31 +00:00
Jenkins a698ca4462 Merge "Fix use of invalid assert calls" 2016-06-09 10:27:27 +00:00
Jenkins ed5fac3e0f Merge "Nova UTs broken due to modifying loopingcall global var" 2016-06-09 10:26:22 +00:00
Jenkins 2edb4bb8ed Merge "Update Support Matrix" 2016-06-09 10:25:15 +00:00
Jenkins ce9c83b4f7 Merge "Stop using mox from virt/libvirt/storage/test_lvm.py" 2016-06-09 10:24:17 +00:00
Jenkins ecef2eded1 Merge "Remove mox from nova/tests/unit/test_iptables_network.py" 2016-06-09 10:23:05 +00:00
Jenkins 9deb12f14f Merge "Stop using mox from objects/test_instance.py (3)" 2016-06-09 10:22:08 +00:00
Jenkins d195bfbeb7 Merge "Stop using mox from objects/test_instance.py (2)" 2016-06-09 10:20:52 +00:00
Jenkins dcfb20ea4d Merge "Stop using mox from objects/test_instance.py (1)" 2016-06-09 10:19:37 +00:00
Jenkins d3a0a081f4 Merge "Fix imagecache.get_cache_fname() to work in python3" 2016-06-09 10:18:26 +00:00
Jenkins a3568a8a44 Merge "virt: set address space & CPU time limits when running qemu-img" 2016-06-09 10:17:19 +00:00
Jenkins 3c44f935c3 Merge "Enable mutable config in Nova" 2016-06-09 10:16:09 +00:00
Jenkins fc4d9c4037 Merge "Adjust field types and defaults on Inventory" 2016-06-09 10:15:05 +00:00
Jenkins 2caa45edcf Merge "Fix resource tracking for instances with no numa topology" 2016-06-09 10:13:38 +00:00
Jenkins 718c6234e1 Merge "xenapi: Remove invalid values for config option image_compression_level" 2016-06-09 10:12:41 +00:00
Jenkins 4e6e504f86 Merge "Remove policy checkpoints for SecurityGroupAPI and NetworkAPI" 2016-06-09 10:07:49 +00:00
ChangBo Guo(gcb) dea38f8b44 xenapi: Remove invalid values for config option image_compression_level
Config option image_compression_level only accepts minimum value 1 and
maximum value 9, so don't test other values out of the range.

Change-Id: I211b6426e7770e7a10eb4d3972af586cddf5254d
Related-Bug: #1517839
2016-06-09 12:42:44 +08:00
Jenkins defdbc1ec5 Merge "Revert "Optimize _cleanup_incomplete_migrations periodic task"" 2016-06-09 01:53:09 +00:00
Chris Friesen f2706b2300 Fix resource tracking for instances with no numa topology
This fixes a problem in host NUMA node resource tracking when
there is an instance with no numa topology on the same node as
instances with numa topology.

It's triggered while running the resource audit, which ultimately
calls hardware.get_host_numa_usage_from_instance() and assigns
the result to self.compute_node.numa_topology.

The problem occurs if you have a number of instances with numa
topology, and then an instance with no numa topology. When running
numa_usage_from_instances() for the instance with no numa topology
we cache the values of "memory_usage" and "cpu_usage". However,
because instance.cells is empty we don't enter the loop. Since the
two lines in this commit are indented too far they don't get called,
and we end up appending a host cell with "cpu_usage" and
"memory_usage" of zero.   This results in a host numa_topology cell
with incorrect "cpu_usage" and "memory_usage" values, though I think
the overall host cpu/memory usage is still correct.

The fix is to reduce the indentation of the two lines in question
so that they get called even when the instance has no numa topology.
This writes the original host cell usage information back to it.

Change-Id: I7e327b79b731393ed787c4e131dc6d9654f424d0
Closes-Bug: #1590607
2016-06-08 18:25:19 -06:00
Jenkins 030410dbe1 Merge "Remove v2 extension setting from functional tests" 2016-06-08 23:07:27 +00:00
Rajesh Tailor adcc0e418b Revert "Optimize _cleanup_incomplete_migrations periodic task"
The change modified instance filtering condition, which filters all
deleted instances on current host, which is not as expected by periodic
task.

The periodic task expects instances, whose instance uuid are associated
with migration record. And after filtering we only need to apply the
instance deletion logic on instance files where instance.host is not
set as current host (CONF.host).

This reverts commit 099cf53925.

Change-Id: Ic71c939bef86f1e5cb485c6827c69c3d638f2e89
Closes-Bug: 1589821
2016-06-08 22:10:20 +00:00
Jenkins 10cf559d72 Merge "Add a get_by_uuid for aggregates" 2016-06-08 21:49:44 +00:00
Jenkins fb9f822802 Merge "Imported Translations from Zanata" 2016-06-08 21:34:06 +00:00
Jenkins 53224cc383 Merge "Add InventoryList.find() method" 2016-06-08 16:55:33 +00:00
Jenkins 3dd4b99669 Merge "Remove policy checkpoints from ComputeAPI" 2016-06-08 15:12:46 +00:00
Jenkins e52d84968d Merge "api-ref: verify keypairs" 2016-06-08 15:02:53 +00:00
He Jie Xu 6d2470ade2 Remove the skip_policy_check flags
The skip_policy_check flag is used to skip the legacy v2 API
policy check points in the v2.1 API. The legacy v2 API is removed
and all the old policy check points removed also. This flag is
useless anymore, this patch cleanup them.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Ia4a8d9954bf456253101b936f8b4ff513aaa73b2
2016-06-08 22:27:41 +08:00
Sean Dague f06a12623b api-ref: verify keypairs
This verifies all the parts of keypairs, including filling out all the
details for microversion 2.2 and 2.10 which change it.

Part of bp:api-ref-in-rst

Change-Id: Iab88dc75cdb7b5f91e46afd29ee61e38b325e180
2016-06-08 08:23:33 -04:00
Jenkins 19526f4dff Merge "Make Hyper-V to work with glance v2 api" 2016-06-08 11:16:15 +00:00
Chris Dent b2ecdcf4e5 Adjust field types and defaults on Inventory
An Inventory object has some legitimate constraints on its values
that should be reflected in the object. All numeric values that
have a default are non-negative.

The version of the object doesn't need to be updated because
we've not been passing these things around over RPC.

Change-Id: Iadfa041a419e8a7d6f4e3bb62989a08708aa8290
Partialy-Implements: blueprint generic-resource-pools
2016-06-08 09:27:34 +00:00
Jay Pipes 56d41ae159 Add InventoryList.find() method
Needed by following code, this patch adds a simple InventoryList.find()
method that searches for a resource class in an InventoryList and
returns the inventory record matching that resource class, or None if
that resource class is not contained in the InventoryList.

Change-Id: I64757c2115f12788eab46627b0f0a2c8a37433f4
2016-06-08 08:41:00 +00:00
Chris Dent a85c8f5e72 Add a get_by_uuid for aggregates
db.api.aggregate_get_by_uuid and objects.Aggregate.get_by_uuid
methods are added to make it possible to work with Aggregates by
their newly added uuid attribute.

Partially-Implements: blueprint generic-resource-pools
Change-Id: I7c46fd1ffebb6907c949cfa302131bfbfcd433de
2016-06-08 08:26:54 +00:00
OpenStack Proposal Bot ab43963397 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I7c06a5616638e84c5525e315c16a2e3f55de1982
2016-06-08 06:57:50 +00:00
Mike Fedosin 70cd68ad70 Make Hyper-V to work with glance v2 api
This code makes hyper-v driver version agnostic
and allows to work with both apis, depending
on what version is considered as 'current'

partially implements bp use-glance-v2-api

Change-Id: I689faca79a7158357da75bd19aa0e2b58eb5a304
2016-06-08 11:29:44 +05:30
Jenkins b4b13b0457 Merge "Improve help text for availability zones options" 2016-06-08 04:27:42 +00:00
ghanshyam 00b29d86e2 Remove v2 extension setting from functional tests
Now v2 API legacy code has been removed, functional
tests do not need to set the v2 extensions.

This patch removes the extension setting on osapi_compute_extension
flag.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: If5db4b141702fa94777fc5706dec6c3fb6c9c594
2016-06-08 12:46:15 +09:00
Jenkins 2c8b08d310 Merge "Add name and generation to ResourceProvider object" 2016-06-07 23:02:38 +00:00
Jenkins 0dc8fadb4d Merge "Remove manual creation of console.log" 2016-06-07 22:39:07 +00:00
Jenkins 74a772398a Merge "api-ref: parameter verification for os-hypervisors" 2016-06-07 20:59:48 +00:00
Jenkins ed883afd7d Merge "Use assertNotIn instead of assertTrue(all(A != B))" 2016-06-07 20:58:13 +00:00
Jenkins cc27d0ad32 Merge "Use assert(Not)Equal instead of assertTrue(A == X)" 2016-06-07 20:57:21 +00:00
Jenkins 7f8ab7f2a4 Merge "Use assertLess(Equal) instead of assertTrue(A > X)" 2016-06-07 20:56:29 +00:00
Jenkins e1b2a949b4 Merge "Use assertGreater(A, X) instead of assertTrue(A > X)" 2016-06-07 20:55:36 +00:00
Jenkins 5cfb025139 Merge "tests: make XMLMatches work with Python3" 2016-06-07 20:54:45 +00:00
Jenkins 7e6f40a001 Merge "Updated from global requirements" 2016-06-07 20:53:17 +00:00
Chris Dent 063b5e4d9e Add name and generation to ResourceProvider object
Add 'name' and 'generation' to the ResourceProvider object so that the
humane name and generation counter associated with the provider can be
persisted and used in display.

Change-Id: I5bc19065fdd2bbbeec67908f3feabbd43a492c89
Partially-Implements: blueprint generic-resource-pools
2016-06-07 20:01:20 +00:00
Jenkins 363cd88671 Merge "Change message format of Forbidden" 2016-06-07 19:10:00 +00:00
Jenkins 7e1264d91e Merge "Clarify message for Invalid/Bad Request exception" 2016-06-07 19:08:54 +00:00