Commit Graph

52384 Commits

Author SHA1 Message Date
Stephen Finucane c19ecc34ea conf: Deprecated 'config_drive_format'
This is no longer necessary with our current minimum libvirt version.

Change-Id: Id2beaa7c4e5780199298f8e58fb6c7005e420a69
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-10-06 14:47:20 +01:00
Stephen Finucane a755fd551f Fix nits in choices documentation
As noted in [1].

[1] https://review.openstack.org/#/c/530924/

Change-Id: Icbc82caf690c8708d6487ff11c0e925e3409ff68
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-10-05 20:07:19 +00:00
Stephen Finucane a53a29ccf0 conf: Use new-style choice values
Support for value-description tuples for the 'choices' parameters was
recently added to oslo.config [1]. Start using this in nova.

[1] https://review.openstack.org/#/c/526012/

Change-Id: Icd280d4daecabd1760080790e4aefc33dc2bece0
2018-09-12 09:45:06 -06:00
Zuul c5a80f4843 Merge "Cleanup zuul.yaml" 2018-09-11 21:47:04 +00:00
Zuul fec07cd72a Merge "add python 3.6 unit test job" 2018-09-11 21:46:55 +00:00
Zuul d465f5fe15 Merge "switch documentation job to new PTI" 2018-09-11 21:46:47 +00:00
Zuul ac1e3800ee Merge "import zuul job settings from project-config" 2018-09-11 20:42:48 +00:00
Zuul fa7df873dc Merge "Add an example to add more pci devices in nova.conf" 2018-09-11 09:18:57 +00:00
Andreas Jaeger 2785cc791e Cleanup zuul.yaml
Couple of cleanups:
* Use openstack-lower-constraints-template, remove jobs that are part
  of templates.
* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove post job.
* Sort list of jobs and templates
* Use dsvm-irrelevant-files for newly imported jobs

Change-Id: Ibce77d3442e21bbd5f5ce379c203542f1f31ce9e
2018-09-11 06:46:54 +02:00
Zuul 6a74828621 Merge "Document differences and similaries between extra specs and hints" 2018-09-10 20:18:41 +00:00
Zuul 580a544350 Merge "Remove redundant image GET call in _do_rebuild_instance" 2018-09-10 20:17:57 +00:00
Doug Hellmann 42975e623b add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If2587dbbbdc88ab01d1fb16ab6b5efe446453957
Story: #2002586
Task: #24315
2018-09-10 21:55:48 +02:00
Doug Hellmann b3dadd23e4 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I102d40d5897a4f0963dffe6d4c25186c057fa856
Story: #2002586
Task: #24315
2018-09-10 21:55:48 +02:00
Doug Hellmann 05ab017907 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id44018e3c19d96f5f2dd104d0ed4d85973cd84e8
Story: #2002586
Task: #24315
2018-09-10 21:55:44 +02:00
Zuul aa9f9448c9 Merge "Do not dump all instances in the scheduler" 2018-09-09 11:13:53 +00:00
Zuul 31f3722d20 Merge "fix a spelling error" 2018-09-08 23:29:28 +00:00
Zuul 5c528df45d Merge "Use six.string_types to improve python2/3 compatibility" 2018-09-08 13:53:28 +00:00
zhangshj 3ed77b1a25 fix a spelling error
Change-Id: Ia7f724c756a616b577d6233dd653bcf7b15881f5
2018-09-08 15:23:00 +08:00
Zuul 957f4818b0 Merge "Use uuidsentinel from oslo.utils" 2018-09-08 07:19:34 +00:00
Zuul e5c6ebc6c5 Merge "doc: update info for hypervisors" 2018-09-08 01:27:25 +00:00
Zuul 762d9a1c19 Merge "Fix formatting in changes-since guide" 2018-09-07 22:48:13 +00:00
fpxie d086389366 Add an example to add more pci devices in nova.conf
The help for the [pci]aliases config option was confusing in that it
wasn't clear how to specify multiple aliases. The default value being []
made it seem like you ought to be able to specify a list as:

 alias = [{...}, {...}, ...]

This won't actually work; you instead have to say:

 alias = {...}
 alias = {...}
 ...

So this patch adds a multi-alias example to the help string and
explicitly calls out the fact that you can't use list values.

See the referenced bug for more details.
Change-Id: I71d4c440340db31d22a73a8b3e3abc51771aa7bc
Closes-Bug: #1786870
2018-09-07 20:02:55 +00:00
Matt Riedemann de27a387b0 Fix formatting in changes-since guide
This fixes the weird formatting in the changes-since
guide along with splitting up the giant wall of text
so this is easier to consume.

Change-Id: Ia15d3b5e3e1e8279d9109ca9c54f213c3e7838bb
2018-09-07 14:29:57 -04:00
Zuul 3d31e6c95a Merge "Configure placement DB context manager for nova-manage/status" 2018-09-07 13:15:20 +00:00
Radoslav Gerganov 4fd7c93726 Do not dump all instances in the scheduler
There is a log message in the scheduler which dumps all instances
running on a compute host. There are at least 2 problems with this:
1. it generates huge amount of logs which are not really useful
2. it crashes when there is an instance with non-ascii name

Instead of fixing 2), just print instance UUIDs.

Closes-Bug: #1790126
Related-Bug: #1620692
Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
2018-09-07 15:56:51 +03:00
Zuul d8004bddae Merge "fup: Fix import order and test nit" 2018-09-07 11:16:23 +00:00
Zuul ebfb4157f8 Merge "Add encrypted volume support to feature matrix docs" 2018-09-07 11:16:16 +00:00
Zuul 999c230576 Merge "Docs: update link for remote debugging" 2018-09-07 11:16:07 +00:00
Zuul b1b7f64e60 Merge "Update volume-attachment API url in policies" 2018-09-07 11:15:52 +00:00
Chen a09ba76fe7 Use six.string_types to improve python2/3 compatibility
Change-Id: I336525cf1c49692b1bbd58e42c94dd1670cd071e
2018-09-07 17:05:24 +08:00
Chen de8292ccff doc: update info for hypervisors
Update links and add info for UML hypervisor.

Change-Id: Id2a5ed802b2849c4edd5b92debe37c921bc859cc
2018-09-07 15:33:19 +08:00
Zuul c7991409f4 Merge "Fix TypeError in nova-manage cell_v2 list_cells" 2018-09-07 05:38:45 +00:00
Eric Fried dcb678cd00 fup: Fix import order and test nit
Addresses issues [1], [2] (and adds recommended second newline after
import block), and [3] from [4].

[1] https://review.openstack.org/#/c/556669/21/nova/compute/resource_tracker.py@23
[2] https://review.openstack.org/#/c/556669/21/nova/scheduler/client/report.py@22
[3] https://review.openstack.org/#/c/556669/21/nova/tests/unit/scheduler/client/test_report.py@1224
[4] I3c5fbb18297db71e682fcddb5bf4536595d92383

Change-Id: Ic817fe647eb3d9e32f0d2a2ac4a8d5fe148193e9
2018-09-06 11:13:14 -05:00
Zuul 89c9127ded Merge "Fix nits: Compute: Handle reshaped provider trees" 2018-09-06 11:02:54 +00:00
Zuul 55d19190ce Merge "Doc: PowerVM does support shelve" 2018-09-06 05:47:03 +00:00
Zuul 16bda7011f Merge "Fix a failure to format config sample" 2018-09-06 00:49:58 +00:00
Zuul c866eaab19 Merge "Move str to six.string_types" 2018-09-06 00:49:51 +00:00
Matt Riedemann 0c33cbb81f Remove redundant image GET call in _do_rebuild_instance
During a rebuild on the compute, the rebuild_instance method
fetches the new image from glance once to get the image_meta
for the RT.rebuild_claim, and then _do_rebuild_instance gets
the new image again to get image_meta for the driver.spawn/rebuild
method. Since it's the same image_meta either way, we can just
pass the image_meta from rebuild_instance to _do_rebuild_instance
and avoid the redundant GET call to glance.

Change-Id: I037a83f0a8cb4cdf87514dd4133da8bfedb564f5
Closes-Bug: #1790972
2018-09-05 17:34:17 -04:00
Zuul 3b879f49b3 Merge "Fix DB archiver AttributeError due to wrong table name attribute used" 2018-09-05 16:51:04 +00:00
Zuul 0e6839a037 Merge "Fix nova-status "_check_resource_providers" check" 2018-09-05 16:50:58 +00:00
Matt Riedemann 63c10d2d53 Configure placement DB context manager for nova-manage/status
The create_incomplete_consumers online data migration was added in
Rocky via change Id609789ef6b4a4c745550cde80dd49cabe03869a. That
relies on hitting some tables in the API (or placement) database.
The DB API code for that migration relies on a placement context
manager which looks like it was regressed with change
I2fff528060ec52a4a2e26a6484bdf18359b95f77 (also in Rocky). This
results in a DB error trying to query the projects table but
because of a generic try/except in _run_migration, the failure
was missed in CI testing.

Similarly, the nova-status upgrade check "_check_resource_providers"
routine also uses the placement DB API context manager to count the
number of compute resource providers in the API (or placement) DB,
which is returning 0 because it's not using the proper DB connection.
This was not caught in the nova-status CLI tests because they use
the DatabaseFixture which *does* configure the global placement DB
API context manager.

This adds the configuration of the global placement DB API context
manager so we can properly query the placement-related tables.
The blanket problematic try/except from _run_migration is left
as-is in this change but will be addressed in a separate patch.

Integration testing of this fix is being performed with devstack:

  https://review.openstack.org/599847/

Change-Id: I9d97b7a904e2b7d15c763e2a067cc5909cc6c9c5
Closes-Bug: #1790701
Closes-Bug: #1790721
2018-09-05 10:29:48 -04:00
Eric Fried 8e1ca5bf34 Use uuidsentinel from oslo.utils
oslo.utils release 3.37.0 [1] introduced uuidsentinel [2]. This change
rips out nova's uuidsentinel and replaces it with the one from
oslo.utils.

[1] https://review.openstack.org/#/c/599754/
[2] https://review.openstack.org/#/c/594179/

Change-Id: I7f5f08691ca3f73073c66c29dddb996fb2c2b266
Depends-On: https://review.openstack.org/600041
2018-09-05 09:08:54 -05:00
Zuul 0f102089dd Merge "Document unset/reset wrinkle for *_allocation_ratio options" 2018-09-05 11:50:18 +00:00
Zuul 685d601cb2 Merge "Don't persist zero allocation ratios in ResourceTracker" 2018-09-05 11:50:11 +00:00
Zuul e3715f9bc5 Merge "Other host allocs may appear in gafpt during evac" 2018-09-05 02:14:10 +00:00
Sam Morrison d0657f4acf Fix DB archiver AttributeError due to wrong table name attribute used
Change-Id: I658a12b3672eb8b1e97522259e9a212b3e6ab161
Closes-bug: #1790750
2018-09-05 11:03:48 +10:00
Matt Riedemann dcd421ae9e Fix nova-status "_check_resource_providers" check
The way in which this check counted compute nodes was
broken because of an incorrect for/else condition. If
the check is run with a nova.conf like we have in
devstack, where the API database is configured but
the [database]/connection is pointing at cell0, where
there are no compute nodes, the check passes saying
there are no compute nodes even if the are compute
nodes found in the cell databases (in the for loop).
This is because the else executes because the for loop
doesn't break, and then _count_compute_nodes returns 0
for cell0 and overwrites the num_computes variable.

This fixes the issue by checking if we have cell mappings
before running the loop, else we hit the else block as
was originally intended.

Change-Id: I1a706d028a9ca894348a19b7b3df1ea673e4ec90
Partial-Bug: #1790721
2018-09-04 20:57:33 -04:00
Matt Riedemann a4f1274f40 Fix TypeError in nova-manage cell_v2 list_cells
Cell mappings don't require a name, so when listing
cells, if any mappings don't have a name, the sorted
function will fail with a TypeError since you can't compare
None to a string.

This fixes the issue by using the empty string if the cell
mapping name is None.

Change-Id: I4fc9d8d1a96f1ec722c2c92dead3f5c4c94d4382
Closes-Bug: #1790695
2018-09-04 18:28:21 -04:00
Zuul 5c6b22559d Merge "Removing pip-missing-reqs from default tox jobs" 2018-09-04 17:22:53 +00:00
Zuul c277b747a9 Merge "Combine error handling blocks in _do_build_and_run_instance" 2018-09-04 16:56:45 +00:00