Commit Graph

42689 Commits

Author SHA1 Message Date
Augustina Ragwitz be68e3c606 Ignore generated merged policy files
Change-Id: Ib26e0269e95c650b8193984fc5314601c662ad2b
2016-08-31 08:54:25 -07:00
Jenkins dd44096a04 Merge "rt: ensure resource provider records exist from RT" 2016-08-31 15:39:15 +00:00
Jenkins 5bdf06ea96 Merge "Make api-ref bug link point to nova" 2016-08-31 14:28:46 +00:00
Jenkins b32f3d2625 Merge "create placement API wsgi entry point" 2016-08-31 13:56:29 +00:00
Jenkins 8049a99347 Merge "Fix qemu version check." 2016-08-31 13:29:40 +00:00
Jay Pipes 5fb6f8f511 rt: ensure resource provider records exist from RT
This patch adds functionality to the scheduler "report client" to ensure
that the client calls the placement API to create a resource provider
record for the local compute host managed by the Nova resource tracker.

The report client keeps a cache of resource provider objects, keyed by
resource provider UUID and constructed from the results of placement
REST API calls to get information about a resource provider. If a
resource provider matching a UUID was not found in the placement REST
API, the report client automatically creates the resource provider
record via the placement REST API. These resource provider objects will
be used in followup patches that add creation of inventory and
allocation records to the scheduler report client.

Included in this patch is a new [placement] nova.conf configuration
section with a single os_region_name configuration option that allows
Nova to grab the placement API endpoint URL for the particular OpenStack
region that it is in. We do not support endpoint URL overrides for the
placement API service. We only use the Keystone service catalog for
finding the endpoint for the placement service. We intentionally modeled
the determination of the placement endpoint URL after similar code that
determines the volume endpoint URL in /nova/volume/cinder.py.

This redoes the placement API using keystone session, and stubs out
where we can do more reasonable handling of errors. This works if we
fill out the right credentials in the placement section of the config
file.

Co-Authored-By: Sean Dague <sean@dague.net>

Change-Id: I9d28b51da25c523d22c373039e6d8b36fd96eba6
blueprint: generic-resource-pools
2016-08-31 11:14:03 +00:00
Jenkins 1abb6f7b4e Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
Sean Dague d957bfb9f1 create placement API wsgi entry point
We want a wsgi_script as the entry point for our placement API
actually getting run, this is wrapping in the smooth and mellow pbr
patterns that make it sensible to also run just by starting it on the
command line.

This also actually initializes the logging subsystem for the placement
API, and does the standard pattern of dumping the configuration if
DEBUG is enabled. Pieces of this were cribbed/inspired by equivalent
keystone code.

The config directory is now setable via environment, which may be be
needed by folks with venvs.

Change-Id: I00d032554de273d7493cfb467f81687c08fd5389
2016-08-30 21:20:08 -04:00
Jenkins 93ef114294 Merge "Add more vd2 unit tests" 2016-08-30 21:14:30 +00:00
Sean Dague 9df0c5ee17 Fix qemu version check.
We were checking a min qemu version (1.5.3) against the libvirt
version, because it wasn't being passed right. This was generating an
incorrect warning for all users.

Change-Id: Ib127f2183a4f67a25da483838ca65daf10b3cd9a
2016-08-30 15:39:11 -04:00
Michael Still 2c49b1e442 Documentation for the vendordata reboot.
Change-Id: I893bc574ba049250f1d06adc2b7f85eac21da1cf
Blueprint: vendordata-reboot
2016-08-30 15:03:17 -04:00
Michael Still 75865619cc Add more vd2 unit tests
Add more unit tests for vendordata2, as requested on the intial
review. While doing this I realized that a HTTP status of "NO
CONTENT" is valid, but will result in nothing being added to the
config drive. We handle that case by just having an empty section.

Additionally, I've decided that thrown exceptions for REST service
requests shouldn't bubble up like they did initially, as that would
stop instance boot. Instead, log them and then add an empty
section to the config drive as well.

Change-Id: If82312d9ca22a87929b947bcf7fed33a108cc720
Blueprint: vendordata-reboot
2016-08-30 14:18:00 -04:00
Sean Dague 476f126c66 Make api-ref bug link point to nova
The openstackdocstheme includes a bug reference link, which defaults
to openstack manuals. We want to update this to be a Nova bug instead.

This also cleans up the pre openstackdocstheme support code

Change-Id: Iace4619c37b04b1504a7051e9e5274b2a3b77c24
2016-08-30 12:33:00 -04:00
Jenkins b88677c2d1 Merge "New discover command to add new hosts to a cell" 2016-08-30 14:21:09 +00:00
Jenkins 32c583ebe7 Merge "Api-ref: Improve os-migrateLive input parameters" 2016-08-30 13:01:00 +00:00
Jenkins 3e2870f1e9 Merge "Add release note to warn about os-brick lock dir" 2016-08-30 13:00:03 +00:00
Jenkins ef5afcdc1d Merge "List system dependencies for running common tests" 2016-08-30 12:59:30 +00:00
Jenkins 10490252f6 Merge "Replace use of eval with ast.literal_eval" 2016-08-30 12:58:59 +00:00
Jenkins cec2f2b4b0 Merge "config options: improve help netconf" 2016-08-30 12:58:29 +00:00
Jenkins 9f1af960fb Merge "Provide more duplicate VLAN network error info" 2016-08-30 12:58:00 +00:00
Jenkins 69d0375dbc Merge "Hyper-V: properly handle shared storage during migrations" 2016-08-30 12:57:30 +00:00
Jenkins a5ef01c901 Merge "Tests: use fakes.HTTPRequest in compute tests" 2016-08-30 12:09:20 +00:00
Jenkins 13a409405b Merge "Changed exception catching order" 2016-08-30 12:08:48 +00:00
Jenkins f22c79f0b9 Merge "Reduce code complexity - api.py" 2016-08-30 12:03:09 +00:00
Jenkins 4f977ff12a Merge "TrivialFix: Remove logging import unused" 2016-08-30 12:02:39 +00:00
Jenkins 744a35c9b6 Merge "Add networks to quota's update json-schema when network quota enabled" 2016-08-30 11:59:39 +00:00
Jenkins 038b72dea3 Merge "Add log for instance without host field set" 2016-08-30 11:57:50 +00:00
Jenkins d03bbbf0e2 Merge "driver.pre_live_migration migrate_data is always an object" 2016-08-30 11:42:46 +00:00
Pushkar Umaranikar d6d41bf888 Api-ref: Improve os-migrateLive input parameters
Modified type of block_migration from input params
of os-migrateLive API based on API version 2.25

Change-Id: I82c6537d137b462dbe6d05c07a9b3afb5a1501d5
Closes-Bug: #1551782
2016-08-30 11:35:30 +00:00
Jenkins bebc86bf55 Merge "Fix using filter() to meet python2,3" 2016-08-30 09:19:20 +00:00
Jenkins 938d0fda0c Merge "test_keypairs_list_for_different_users for v2.10" 2016-08-30 09:18:50 +00:00
Jenkins e1017b1ffd Merge "Use StableObjectJsonFixture from o.vo" 2016-08-30 09:14:53 +00:00
Jenkins ee9324e6d0 Merge "Clean up instance mappings, build requests on quota failure" 2016-08-29 23:41:04 +00:00
Andrew Laski c032792bbb New discover command to add new hosts to a cell
While there are some nova-manage commands to take an existing deployment
and migrate all of its hosts into a new cellsv2 environment there was no
way to add more hosts to a cell. This command can be run at any time
after the initial migration and will map any hosts in a cell that have
not been seen before.

Nothing else changes about adding hosts to a deployment. Configure them
to use a nova database and start them up and they'll register themselves
with that database. This new command simply lets the API know how to
route requests to those hosts. Until this is done instances can not be
booted on those hosts.

Partially-Implements: bp cells-scheduling-interaction
Change-Id: I8c044e5b480edddead28d8c3527d003da566ed1e
2016-08-29 17:49:16 -04:00
Andrew Laski d250aae2b3 Clean up instance mappings, build requests on quota failure
During the boot process there is a point where failures, most often
quota failures, cause the newly created instance to be deleted. In this
situation the BuildRequest and InstanceMapping object that were just
created should be deleted as well. If they are not then it's possible
that an instance list will return the BuildRequest.instance as a regular
instance though it should be deleted.

Change-Id: Ic2dd3bb7db3ce563a358bed03adaa37ff12c30fd
Partially-implements: bp add-buildrequest-ob
2016-08-29 16:40:45 -04:00
OpenStack Proposal Bot 719b5ab9f0 Updated from global requirements
Change-Id: I313dfaeaccb48f9aa9733a8a2d88a7eed1cecc46
2016-08-29 16:51:55 +00:00
Matt Riedemann aeb15371ea Use StableObjectJsonFixture from o.vo
StableObjectJsonFixture has been in o.vo since the 1.9.0
release and we require >=1.13.0 in g-r now, so we should
use the fixture from the library rather than keep a
duplicate in nova.

This is also needed to use o.vo 1.17.0 which has change
39a057becc10d1cfb5a5d5024bfcbbe6db1b56be that breaks the
fixture's erroneous unit test.

Change-Id: Idd0e02a1c19300c3ab7a57cbacb78d1f07037843
Closes-Bug: #1618115
2016-08-29 11:52:10 -04:00
Pavel Kholkin 260bb7cbf6 test_keypairs_list_for_different_users for v2.10
Added functional api_sample_test for keypair-list command
for different users for microversion v2.10

Closes-Bug: #1599904

Change-Id: I92cd06efeafb00f5f4678e94185789026896be3a
2016-08-29 17:12:15 +03:00
Jenkins bc344458e7 Merge "In InventoryList.find() raise NotFound if invalid resource class" 2016-08-29 13:30:37 +00:00
Ha Van Tu 3d9de244ce Fix using filter() to meet python2,3
As mentioned in link[1], if we need filter on python3,
Replace filter(lambda obj: test(obj), data) with:
[obj for obj in data if test(obj)].

[1] https://wiki.openstack.org/wiki/Python3

Change-Id: Ie484ccd7ef0428313a29e9ef6930ebb2646ee879
2016-08-29 19:00:12 +07:00
Jenkins a5cc0be5c6 Merge "Allow empty CPU info of hypervisors in API response" 2016-08-27 01:02:28 +00:00
Alex Szarka 003aa06583 Reduce code complexity - api.py
Reduce the code complexity in
nova/db/sqlalchemy/apy.py file.
The 351176 patch depends by this.

Change-Id: I39adb817b5e03b39a17df6f64152ce23ef3c9ed6
2016-08-26 18:55:33 +00:00
Jenkins 359d635951 Merge "Abort on HostNotCompatibleWithFixedIpsClient" 2016-08-26 17:21:11 +00:00
Jenkins d238fac5dc Merge "Add BuildRequestList object" 2016-08-26 17:17:01 +00:00
Jenkins dfd4835ea7 Merge "Dump json for nova.network.model.Model objects" 2016-08-26 14:50:03 +00:00
Jenkins f466502e35 Merge "Replace mox with mock in test_validate_bdm" 2016-08-26 14:01:59 +00:00
Jenkins b2774b547d Merge "Replace mox with mock in test_cinder" 2016-08-26 13:57:14 +00:00
Jenkins 7500bef94f Merge "Revert "Optional separate database for placement API"" 2016-08-26 05:03:48 +00:00
Jenkins 8d5aff742d Merge "Correct microversions URL in api_plugins.rst" 2016-08-26 02:43:07 +00:00
Jenkins a601845731 Merge "[api-guide]: Update reference links" 2016-08-26 02:42:33 +00:00