Commit Graph

50177 Commits

Author SHA1 Message Date
Zuul ea12e34724 Merge "Scheduler multiple workers support" 2018-03-16 08:14:12 +00:00
Zuul 26221a524b Merge "placement: generation in provider aggregate APIs" 2018-03-16 06:15:55 +00:00
Zuul 5f38500df6 Merge "Update deprecated log-config option in docs" 2018-03-15 17:18:13 +00:00
Eric Fried 3216f078d4 placement: generation in provider aggregate APIs
Placement API microversion 1.19 enhances the payloads for the `GET
/resource_providers/{uuid}/aggregates` response and the `PUT
/resource_providers/{uuid}/aggregates` request and response to be
identical, and to include the ``resource_provider_generation``. As with
other generation-aware APIs, if the ``resource_provider_generation``
specified in the `PUT` request does not match the generation known by
the server, a 409 Conflict error is returned.

Change-Id: I86416e35da1798cdf039b42c9ed7629f0f9c75fc
blueprint: placement-aggregate-generation
2018-03-14 17:08:52 -05:00
Zuul 9e328b7bb4 Merge "Revert "Make the InstanceMapping marker UUID-like"" 2018-03-14 20:36:26 +00:00
Dan Smith 9038738d01 Revert "Make the InstanceMapping marker UUID-like"
This reverts commit a563d1fdd3.

The problems with this that I see are:

1. You can't rotate one uuid in a given namespace (i.e the one on the
   marker) and expect to not have collisions.
2. This breaks the format of the thing we store in the database, which
   would cause people in the middle of an FFU to be unable to continue
   or clean their database properly.
3. Obfuscating the uuid like this makes it nearly impossible for a
   regular operator or developer to examine the state of the database
   during debugging and figure out what the marker is referring to.

All of this to avoid UUID format warnings in a unit test adds up to
a bad thing, IMHO.

Change-Id: Ia5d86d20f80bd0ec9765863f6d0a001633d0fc72
2018-03-14 08:54:40 -07:00
Zuul 96fdce7cab Merge "Updated from global requirements" 2018-03-14 15:40:35 +00:00
Chris Dent eb637b9de7 Update contributor/placement.rst to contemporary reality
This udpates the placement contributor documentation to reflect the
current state of affairs. Ininitially this was just going to be an
update to reflect that the oslo versioned objects had moved. However,
while reviewing the rest of the doc it became clear there were other
issues that should be resolved. Doing so in one shot helps to maintain
the continuity of the document and doing it piecemeal means it is less
likely to happen.

Change-Id: Ia8d4861799e27a30108dd465d15828c5a1943819
2018-03-14 09:58:29 +00:00
OpenStack Proposal Bot f0a7990af7 Updated from global requirements
Change-Id: Idaf1bdadf561fda7287bce34d9972fdd74fa75ae
2018-03-14 05:46:35 +00:00
Zuul 90b4535633 Merge "Reparent placement objects to oslo_versionedobjects" 2018-03-14 02:23:50 +00:00
Zuul 3630abe816 Merge "Re-work the metadata service docs" 2018-03-13 21:44:45 +00:00
Zuul 0e75edc6ea Merge "conf: Fix indentation of database options" 2018-03-13 21:44:36 +00:00
Zuul 66951fe50e Merge "Move resource provider objects into placement hierarchy" 2018-03-13 19:14:29 +00:00
Zuul 68afe71e26 Merge "Move resource class fields" 2018-03-13 19:13:19 +00:00
Zuul c90f0093c2 Merge "conf: Remove 'nova.crypto' opts" 2018-03-13 17:40:06 +00:00
Zuul 8c4c1d8a29 Merge "ca: Remove 'nova/CA' directory" 2018-03-13 17:39:50 +00:00
Zuul 6fc7e41bb6 Merge "crypto: Remove unused functions" 2018-03-13 17:34:38 +00:00
Zuul dda136a63e Merge "Updated from global requirements" 2018-03-13 16:27:12 +00:00
Zuul 8a6665bc58 Merge "Transform live_migration.post.dest notifications" 2018-03-13 16:10:31 +00:00
Zuul 107ad403d4 Merge "conf: Remove deprecated 'allow_instance_snapshots' opt" 2018-03-13 13:32:45 +00:00
Zuul db0747591c Merge "Transform servergroup.addmember notification" 2018-03-13 13:32:38 +00:00
Zuul fa61557f15 Merge "Make the InstanceMapping marker UUID-like" 2018-03-13 13:13:09 +00:00
Zuul 7d33930ff5 Merge "Remove old flavor_access_get_by_flavor_id db api method" 2018-03-13 13:12:47 +00:00
Zuul ae3cd7b8bc Merge "Fix N358 hacking check" 2018-03-13 13:12:39 +00:00
Béla Vancsics 67f1c98898 Transform live_migration.post.dest notifications
The following notifications has been transformed to
the versioned notification framework.

* live_migration.post.dest.start
* live_migration.post.dest.end

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I510136a7eb0a832dfe469cb68d06d1b9472d9ae4
Implements: bp versioned-notification-transformation-rocky
2018-03-13 11:19:44 +00:00
Chris Dent 07d861f346 Reparent placement objects to oslo_versionedobjects
The versioned objects used by placement can inherit directly from
oslo_versionedobjects, so this change reparents them. This helps make
sure that placement is independent from nova and will ease the eventual
extraction of placement to its own repo.

Existing functional tests cover this change.

Change-Id: Ifa8cd445927573ff70f69148b36da37469470cf4
2018-03-13 09:01:31 +00:00
Chris Dent 8b19d5b735 Move resource provider objects into placement hierarchy
This is so we don't have all the other objects imported into the
the placement process, which happens by virtue of being in the
nova.objects package. It also eases the eventual extraction of
placement.

That extraction will involve lifting and shifting the
nova/api/openstack/placement directory (plus any tests) to a new
repository. .../placement will become the roo placement directory
in the repo, since a) placement is (for now) only an API, b) it
eases extraction. Subsequent patches will do things like move
exceptions and the wsgi application.

Change-Id: I3e5144217c194f2571526311ddae6661cfed2ea9
2018-03-13 09:01:31 +00:00
Chris Dent f346913594 Move resource class fields
Move the ResourceClass field to its own package, and move that package
to the top of the nova hierarchy since it is used by both nova tooling
and placement tooling but we don't want the placement version to have to
incorporate the nova code. Eventually we'd like to see an
os-resource-classes library, similar to os-traits, which will serve this
functionality. This is a step in that direction.

Changes in this patch are quite widespread, but are mostly only changes
of imports.

Change-Id: Iea182341f9419cb514a044f76864d6bec60a3683
2018-03-13 09:01:30 +00:00
Zuul 9a49767134 Merge "conf: Remove '[conductor] topic' opt" 2018-03-13 08:00:43 +00:00
OpenStack Proposal Bot 4607f95f24 Updated from global requirements
Change-Id: Iff8f99d4ff97f03ccdeb29405f3cbb853068161d
2018-03-13 07:09:16 +00:00
Zuul f81865f56b Merge "remove unnecessary conf imports" 2018-03-13 06:54:21 +00:00
Zuul ae0d20ddf2 Merge "conf: Deprecate 'keymap' options" 2018-03-12 22:59:36 +00:00
Zuul 753ef0960f Merge "Remove vestigial extra_info update in PciDevice.save()" 2018-03-12 22:59:25 +00:00
Zuul 60e6aa808d Merge "Check the return code when forcing TCG mode with libguestfs" 2018-03-12 22:59:14 +00:00
Zuul 975fdcfc3b Merge "setup.cfg: Explicitly set [build_sphinx] builder" 2018-03-12 22:59:03 +00:00
Zuul c810b94328 Merge "Make the nova-next job voting and gating" 2018-03-12 22:38:43 +00:00
Matthew Edmonds 66d475780a Fix N358 hacking check
Two different hacking checks were reporting N357. This changes the
second to report N358 (as comments indicate it was meant to) and
fixes the unit tests to check this.

Change-Id: I35614c61d3a01e31cbcaa193cf7a04c58bdcb310
2018-03-12 13:12:27 -04:00
Stephen Finucane d734481e97 conf: Fix indentation of database options
Consistency in all things opts.

Change-Id: I9c69a9cef3e16f518185c1f2b08dceb23cbe8508
2018-03-12 14:41:58 +00:00
Stephen Finucane 1b112acb34 conf: Remove deprecated 'allow_instance_snapshots' opt
This flag was deprecated in a previous cycle. The flag and any uses of
it can now be removed.

Change-Id: I2224f38b9fa86b70425b25404a27c5c37d477cf3
2018-03-12 14:40:11 +00:00
Zuul a0dc24dc1a Merge "Make nova build reproducible" 2018-03-12 14:08:29 +00:00
Zuul 4f29ee3797 Merge "XenAPI: XCP2.1+ Swallow VDI_NOT_IN_MAP Exception" 2018-03-12 14:08:20 +00:00
Zuul d7c46b2796 Merge "Raise a proper exception in unit test" 2018-03-12 13:37:16 +00:00
Stephen Finucane af703e7376 conf: Remove '[conductor] topic' opt
This should have been removed in '6ef30d5', but was missed as it used a
different name to the other opts.

Change-Id: I85cb86e0c203967da544750a9e52b207f707e8e5
2018-03-12 13:26:08 +00:00
Jake Yip 39f6159bde Update deprecated log-config option in docs
In change I1f25300d44b04ca5bcdd9b505319f0d089a9c964, log-config has been
removed and replaced with log_config_append

Change-Id: I7533f6eebfdb5ad5f2594a5436814fcecfc4c583
2018-03-12 13:06:31 +11:00
OpenStack Proposal Bot 2d738f7082 Updated from global requirements
Change-Id: Ibe70f1f60180a7c8da9887e4466dd1e1d25b157f
2018-03-10 13:31:01 +00:00
Matthew Edmonds dc32774ecc remove unnecessary conf imports
There are a bunch of files that define CONF but don't ever reference
it. This cleans that up, removing unnecessary imports.

In order to get flake8 to pass I also had to remove some (unrelated)
unused imports from touched files.

Change-Id: Ib96ebeeb5e4bfedb20afb02c56da1521df9fac4f
2018-03-09 14:30:10 -05:00
David Rabel fcda5c2d1a Fix indentation in doc/source/cli/*
Current indentation was wrongly interpreted as quotes.

Change-Id: I731d8833e69e6bed12f5637d6bb3248b890c18ab
2018-03-09 15:41:00 +00:00
Thomas Goirand a4a04a6a4d Make nova build reproducible
Whilst working on the Reproducible Builds effort [0], the team
noticed that nova could not be built reproducibly as the docs etc
contain the absolute build path.

This was originally filed in Debian as #892420 [1], and I'm here
only forwarding the patch.

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/892420

Change-Id: Ia50c549da9e8ca44d19adb72dd87711da00df210
Signed-off-by: Chris Lamb <lamby@debian.org>
2018-03-09 13:12:39 +01:00
Zuul b1173396ed Merge "hardware: Rework get_number_of_serial_ports" 2018-03-09 12:08:59 +00:00
Zuul 747b779114 Merge "hardware: Rework '_get_cpu_topology_constraints'" 2018-03-09 11:52:11 +00:00