2414 Commits

Author SHA1 Message Date
Zuul
f644da10b2 Merge "Update interop repo link" 2020-06-26 17:40:35 +00:00
Zuul
6ed556f4ad Merge "libvirt: Don't allow "reserving" file-backed memory" 2020-06-17 12:41:46 +00:00
Andreas Jaeger
0eb77b0ad2 Update interop repo link
Change I02ac67e333cc1a5133269bd8562f18a8d50bb036 renamed
openstack/interop to osf/interop, follow this change.

Change-Id: I43476fc0cc8f5eb2a93f75e208588f482182f3b2
2020-06-13 16:15:57 +02:00
Ghanshyam Mann
b2f07a4959 Fix pdf-docs build failing for TeX over capacity
With the new release of sphinx 3.1.0, nova pdf docs build
started failing with "! Dimension too large." error.
That started failing since 10th June when the requirement added
the new constraint for sphinx.

Seems like somewhere TeX memory is exhausted during the pdf
building (I think we are hitting this open sphinx bug[1]).
While reproducing it locally I found that our giant policy sample
file inclusion in pdf doc causing this error.

- https://zuul.opendev.org/t/openstack/build/9c3e835ad5ee4842a07d77fdbaa6c97d/log/sphinx-build-pdf.log#7661

We did skip the sample policy file for pdf in
doc/source/configuration/index.rst but did not do that
in admin configuration file and it start giving the error now.

With this fix, sample policy file in admin config also is included
in html but not in pdf.

Closes-Bug: #1883200

Change-Id: Iae143997138a5169a1e0fc76a74f9a0f09c03626
2020-06-12 15:34:45 +00:00
Stephen Finucane
3b99747b42 libvirt: Don't allow "reserving" file-backed memory
When file-backed memory is configured, it is the only "memory" reported
by nova and used by instances, with RAM used in caching capacity. We
should be warning users of this and insisting they explicitly configure
the '[DEFAULT] reserved_host_memory_mb' config option to 0. However,
doing so now would be breaking change. Instead, start logging a warning
instead, failing only for the truly broken combination of reserving more
file-backed memory than we have allocated.

Change-Id: I9619338ad0f60253b628d96543f8ce3ac86242e3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-Bug: #1882821
2020-06-10 10:40:59 +00:00
Zuul
2061ce1125 Merge "[Nova] Add reference to Placement installation guide" 2020-06-08 13:13:44 +00:00
Zuul
d9cd0e1f1c Merge "hacking: Modify checks for translated logs" 2020-06-02 14:43:01 +00:00
Zuul
6f6b63ee5f Merge "docs: Remove subtitles, metadata from man pages" 2020-06-02 14:28:33 +00:00
Zuul
2809e082d1 Merge "Fix pygments_style" 2020-05-27 21:04:29 +00:00
Stephen Finucane
45a88f08b4 hacking: Modify checks for translated logs
The N319 check previously asserted that debug-level logs were not
translated. Now that we've removed all log translations, we can
generalize this to all logs. We reuse the same number since these
numbers are really just metadata and not public contracts.

This also allows us to update the N323 and N326 checks, which ensure we
import the translation function, '_', wherever it's used and don't
concatenate translated and non-translated strings. Since we're no longer
translating logs and the '_LE', '_LW' and '_LI' symbols are no longer
provided, we don't need to consider logs in either of these cases.

Change-Id: I64d139ad660bc382e8b9d7c8cd03352b26aadafd
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-05-27 09:41:30 +00:00
Zuul
3f3627b861 Merge "replace the "hide_hypervisor_id" to "hw:hide_hypervisor_id"" 2020-05-26 04:08:54 +00:00
Harshavardhan Metla
58159470bf [Nova] Add reference to Placement installation guide
Placement service has to be installed and configured with user and
endpoints before Nova installation. But in
stein release it is not mentioned in the prerequisites of Nova. Added
reference to Placement installation guide in the prerequisites section
of nova installation guide.

Change-Id: I6af43a24dc5b3575016f092268d98cc720249d93
Closes-Bug: #1829032
2020-05-23 12:40:45 +05:30
Stephen Finucane
79e6d3e135 docs: Remove subtitles, metadata from man pages
These do not render correctly when generating man pages and likely exist
from a time when the pages were built with rst2man (i.e. docutils)
instead of Sphinx. They're not necessary when using Sphinx since that
information is provided via the 'man_pages' config option in 'conf.py',
which are updated here to reflect reality.

Change-Id: I133e7231112cc9025e57a29d43bfa7002ca775e7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-05-21 11:17:26 +01:00
Andreas Jaeger
9e457deba0 Fix pygments_style
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Change-Id: Icd9d529dbe66626ac53a9fdca5bc6821998a0b7d
2020-05-20 21:56:41 +02:00
Zuul
4c1b4f8b8a Merge "Add admin doc information about image cache resource accounting" 2020-05-20 16:17:16 +00:00
Dan Smith
ab3fab0322 Add admin doc information about image cache resource accounting
This adds some details to the image cache page in the admin docs about
how image cache disk usage is (not) considered in the scheduler disk
space calculation. Workarounds and mitigation strategies are provided.

Change-Id: I7f40f167cea073a73cf249a9adfd73e1187c031b
Related-Bug: #1878024
2020-05-20 10:13:20 +01:00
Andreas Jaeger
2eb2752988 Add link to PDF document
Switch to openstackdocstheme 2.2.0 that can link to PDF document,
enable this with setting openstackdocs_pdf_link.

Note that the link to the published document only works on 
docs.openstack.org where the PDF file is placed in the top-level html
directory. The site-preview places the PDF in a pdf directory.

Depends-On: https://review.opendev.org/728938
Change-Id: I29dddfa06183ecadb8f23feb2ad2e3c1c5a233cc
2020-05-18 18:42:31 +00:00
Andreas Jaeger
6c963e7712 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.1.2 and reno 3.1.0 versions. Using
these versions will allow parallelizing building of documents.

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames. A
couple of variables are also not needed anymore, remove them.

Set openstackdocs_auto_version to not version the documents.
Set openstackdocs_auto_name to use project as name.

Depends-On: https://review.opendev.org/728432
Change-Id: I4e3ae3ceabe125ea459ed4baabf2e98686268e50
2020-05-15 18:14:20 +02:00
Zuul
5b76ae4e66 Merge "Support for --force flag for nova-manage placement heal_allocations command" 2020-05-11 18:15:34 +00:00
ramboman
bf488a8630 replace the "hide_hypervisor_id" to "hw:hide_hypervisor_id"
When we use the flavor extra_specs "hide_hypervisor_id" in
AggregateInstanceExtraSpecsFilter, then will retrun False.
So we need correct the extra_specs.

Change-Id: I9d8d8c3a30cf6da7e8fb48374347e069ab075df2
Closes-Bug: 1841932
2020-05-08 10:18:42 +01:00
jay
87936baaac Support for --force flag for nova-manage placement heal_allocations command
Use this flag to forcefully heal allocation for a specific instance

Change-Id: I54147d522c86d858f938df509b333b6af3189e52
Closes-Bug: #1868997
2020-05-06 13:39:13 +02:00
Zuul
7d25b578da Merge "doc: Fix list rendering in cli/nova-status.rst" 2020-05-06 10:01:13 +00:00
Zuul
9839e27880 Merge "Add nested resource providers limit for multi create" 2020-05-05 13:13:23 +00:00
Takashi Natsume
2b82575f3f doc: Fix list rendering in cli/nova-status.rst
Change-Id: I29ebb4c956ce979d60f74346d93510797f8de76b
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2020-05-02 15:17:26 +09:00
Zuul
fdcb1e306e Merge "Add nova-status upgrade check and reno for policy new defaults" 2020-05-02 03:44:15 +00:00
zhangbailin
c19de075e1 Add nested resource providers limit for multi create
In 21.0.0 Ussuri we were completed the nova-cyborg interaction feature,
but there are some issue when multiple create instances.

Creating servers with accelerators provisioned with the Cyborg service,
if a flavor asks for resources that are provided by nested Resource
Provider inventories (eg. VGPU) and the user wants multi-create (ie. say
--max 2) then the scheduler could be returning a NoValidHosts exception
even if each nested Resource Provider can support at least one specific
instance, if the total wanted capacity is not supported by only one
nested RP.

For example,creating servers with accelerators provisioned with the
Cyborg service, if two children RP have 4 VGPU inventories each:
 - you can ask for a flavor with 2 VGPU with --max 2
 - but you can't ask for a flavor with 4 VGPU and --max 2

Related-Bug: #1874664
Change-Id: I64647a6ba79c47c891134cedb49f03d3c61e8824
2020-05-02 01:10:06 +00:00
Ghanshyam Mann
d4af91f349 Add nova-status upgrade check and reno for policy new defaults
There are cases where policy file is re-generated freshly
and end up having the new defaults only but expectation is that
old deprecated rule keep working.

If a rule is present in policy file then, that has priority over
its defaults so either rules should not be present in policy file
or users need to update their token to match the overridden rule
permission.

This issue was always present when any policy defaults were changed
with old defaults being supported as deprecated. This is we have
changed all the policy for new defaults so it came up as broken case.

Adding nova-status upgrade check also to detect such policy file.

Related-Bug: #1875418

Change-Id: Id9cd65877e53577bff22e408ca07bbeec4407f6e
2020-05-01 15:32:51 +00:00
Zuul
730eeb5fe0 Merge "Feature matrix: update AArch64 information" 2020-04-29 10:59:41 +00:00
Takashi Natsume
d637b14092 Update contributor guide for Victoria
Update URLs for Victoria release.

Change-Id: I29ca3aa6e16479cd86404a6cc7cac15ec0436fe4
2020-04-27 16:28:00 +00:00
Zuul
d24de1440e Merge "Add docs and releasenotes for BP policy-defaults-refresh" 2020-04-23 07:30:02 +00:00
Ghanshyam Mann
af21183082 Add docs and releasenotes for BP policy-defaults-refresh
This commit adds the documents to explain the new defaults,
migration plan and releases notes for policies changes in
BP policy-defaults-refresh

Partial implement blueprint policy-defaults-refresh

Change-Id: I00e678858a8e46786f3b69fbba3f5353932de49b
2020-04-23 02:06:06 +00:00
Lee Yarwood
30fcb2ddfd docs: Add stable device rescue docs
Adds the new mode to the existing user rescue docs and highlights some
known limitations.

Change-Id: Iaa2f27ccb2a77102fde6b24b76c9d5ae54608cca
2020-04-21 10:54:18 +01:00
Zuul
418eb770fc Merge "Allocate mdevs when resizing or reverting resize" 2020-04-21 00:42:44 +00:00
Sylvain Bauza
d2e0afc1f7 Allocate mdevs when resizing or reverting resize
Now that allocations are passed to the methods, we can ask whether we
need to use mediated devices for the instance.

Adding a large functional test for verifying it works.

Change-Id: I018762335b19c98045ad42147080203092b51c27
Closes-Bug: #1778563
2020-04-20 14:48:16 +02:00
Takashi Natsume
2e299a6e72 doc: Fix term mismatch warnings in glossary
The term role has became case sensitive since sphinx 3.0.1.
It causes the following warnings and makes a check job fail.

  WARNING: term not in glossary: availability zone

This patch fixes the issue.

Change-Id: I1f993b503ef769da0950afa206d6ac4a54f903b4
Closes-Bug: #1872260
2020-04-12 13:06:49 +09:00
Zuul
8ee8d03c69 Merge "[Trivial] FUP: addressed comments in support non-admin filter instances" 2020-04-10 13:18:45 +00:00
zhangbailin
9ca505700a [Trivial] FUP: addressed comments in support non-admin filter instances
This commit mainly addressed comments in [1]
[1]https://review.opendev.org/#/c/701609/9/api-ref/source/parameters.yaml@420
that were related to change Ia66d3a1ceb74ed521cf44922929b2a502f3ee935

Part of blueprint non-admin-filter-instance-by-az
Change-Id: I8627de0fdb31f2090a4eef7dba8f0f5eb4ebb946
2020-04-10 09:17:48 +00:00
Zuul
c9421a3248 Merge "docs: Add documentation for flavor extra specs" 2020-04-10 05:22:22 +00:00
Zuul
77482b05af Merge "Support different vGPU types per pGPU" 2020-04-09 23:29:14 +00:00
Sylvain Bauza
5b5cbc64f9 Support different vGPU types per pGPU
It's now possible to have a different vGPU type for each pGPU. By modifying
the config, you can say which PCI device (ie. a pGPU) should use a specific
vGPU type.

For upgrades, the behaviour from Train won't be changed since we only use
the first type if we don't have the dynamic options (so operators don't
need to change nova.conf before upgrading).

Implements: blueprint vgpu-multiple-types

Change-Id: I46f0a76811142888db2bbc66cc3fde04ff890c01
2020-04-09 17:54:26 +02:00
Zuul
874c2fe329 Merge "api: Add framework for extra spec validation" 2020-04-09 07:01:46 +00:00
Stephen Finucane
63e30e022d docs: Add documentation for flavor extra specs
Now that we have a registry of all extra specs known by stock nova, we
can start documenting these. We choose the configuration guide to do
this since configuration of flavor extra specs is traditionally an
admin-only operation.

Part of blueprint flavor-extra-spec-validators

Change-Id: I5ad6576e0d31a29822d1c7b47751ea81828630cf
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-04-08 13:20:15 +00:00
Stephen Finucane
58784943f7 api: Add framework for extra spec validation
Add the validation framework necessary to verify extra specs along with
the definitions for every extra spec we currently recognize in-tree.
None of this is currently used since we don't have the API microversions
wired up, but that will come in a future patch.

Note that we must add the H238 hacking check to the ignore list here,
since this includes our first use of Python 3-type classes without the
explicit 'object' subclass. This can be removed when that check is
removed from hacking.

Part of blueprint flavor-extra-spec-validators

Change-Id: Ib64a1348cce1dca995746214616c4f33d9d664bd
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-04-08 12:47:01 +00:00
Zuul
bc10a724c6 Merge "Add info about affinity requests to the troubleshooting doc" 2020-04-06 11:56:59 +00:00
Zuul
ae39f0395f Merge "Support for nova-manage placement heal_allocations --cell" 2020-04-03 15:13:00 +00:00
Zuul
bf242d1f16 Merge "FUP for Add a placement audit command" 2020-04-02 23:08:07 +00:00
hackertron
1a39ed9005 Support for nova-manage placement heal_allocations --cell
Closes-bug: #1868531

Change-Id: I98b3280583a6d12461d8aa52e5714d7606b84369
2020-04-02 16:06:38 -04:00
melanie witt
df216de6d9 Add info about affinity requests to the troubleshooting doc
We had recent bug report about a possible regression related to
affinity policy enforcement with parallel server create requests.

It turned out not to be a regression but because of the complexity
around affinity enforcement, it might help to add a section to the
compute troubleshooting doc about it which we could refer to in the
future.

Related-Bug: #1863190

Change-Id: I508c48183a7205d46e13154d4e92d31dfa7f7d78
2020-03-31 22:21:40 +00:00
Zuul
e5ea915f1b Merge "[Community goal] Update contributor documentation" 2020-03-31 19:33:46 +00:00
Marcin Juszkiewicz
be810df06f Feature matrix: update AArch64 information
I tested missing entries on Linaro Developer Cloud.

Change-Id: I63267f5a759af52eb9c052cc804e2650c3fe9ef3
2020-03-30 17:22:20 +02:00