Commit Graph

4049 Commits

Author SHA1 Message Date
Stephen Finucane bcf225daf4 db: Move main DB migrations
We place these in a 'legacy_migrations' directory, as we will soon be
adding alembic-based migrations in a 'migration' directory.

Change-Id: Ib927e4c48f59a467a913875111ffbf64ffe0de90
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-07-05 11:05:04 +01:00
Zuul ee3b492506 Merge "Improve policy doc for supported scope info" 2021-06-29 17:49:53 +00:00
Zuul b280ab292b Merge "Fix typos in minimum version policy docs" 2021-06-29 17:14:27 +00:00
ericxiett c31d3f96b1 Fix error '404 Not Found'
The link of `TLS everywhere` should be 'https://docs.openstack.org/
project-deploy-guide/tripleo-docs/latest/features/tls-everywhere.html'.

Closes-Bug: #1933062
Change-Id: I468b82edeb899b0a780f8b545ad23ee0428a93ea
2021-06-21 15:04:43 +08:00
Zuul 97f1741352 Merge "Add --task-log option to nova-manage db archive_deleted_rows" 2021-06-18 11:54:56 +00:00
melanie witt bc71331bca Add --task-log option to nova-manage db archive_deleted_rows
The task_log table contains instance usage audit records if
nova-compute has been configured with [DEFAULT]instance_usage_audit =
True. This will be the case if OpenStack Telemetry is being used in the
deployment, as the option causes nova to generate audit information
that Telemetry then retrieves from the server usage audit log API [1].

Historically, there has been no way to delete task_log table records
other than manual database modification. Because of this, task_log
records could pile up over time and operators are forced to perform
manual steps to periodically truncate the table.

This adds a --task-log option to the 'nova-manage db
archive_deleted_rows' CLI to also archive task_log records while
archiving the database. --task-log works in conjunction with --before
if operators desire archving only records that are older than <date>.
The 'updated_at' field is used by --task-log --before <date> to
determine the age of a task_log record for archival.

Closes-Bug: #1877189

[1] https://docs.openstack.org/api-ref/compute/#server-usage-audit-log-os-instance-usage-audit-log

Change-Id: Ibed67854a693c930effd4dba7aca6cd03b65bd92
2021-06-17 01:57:12 +00:00
Zuul 245433b826 Merge "docs: Add releases to libvirt distro support matrix" 2021-06-11 14:40:22 +00:00
Pierre Riteau 31491e5bc3 Fix typos in minimum version policy docs
Change-Id: If0708fc3594f0e59954976831168c93d66514dd2
2021-06-11 16:36:48 +02:00
Zuul 14c5f979a2 Merge "docs: Address TODO" 2021-06-09 00:24:14 +00:00
Ghanshyam Mann 0b63f9effe Improve policy doc for supported scope info
Nova does not support all the scope provided by
keystone. It is better to mention the supported
scope and default roles.

Also adding a table to map the legacy rules with new
rules.

Change-Id: If7f025b3eaeda2df0cb1efd567b8fc60e274d09c
2021-06-03 09:46:18 -05:00
Stephen Finucane 5cf06bf33d docs: Remove duplicate ToC entry
Change-Id: Idf9c2cb27b3421174b686ca97233281ea7168970
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-05-31 15:07:41 +01:00
Balazs Gibizer fc3838a9b3 Change nova doc after Freenode -> OFTC move
Change-Id: I65e5ac1709d1ddbbf7a1d6b27070e676dedea186
2021-05-31 10:43:49 +02:00
Stephen Finucane 472db13aaf docs: Address TODO
We now have good documentation on the PCI NUMA affinity policies
(thanks, artom!) so we can close out this TODO. Hurrah!

Change-Id: I4e6402bd192ea0d2efb26b52a7ceb65d924ec928
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-05-25 16:45:51 +01:00
Lee Yarwood d0b8028b51 docs: Add releases to libvirt distro support matrix
This change adds Fedora 34, RHEL 8.4, SUSE Leap 15.3 and Ubuntu 21.04.

Change-Id: Ifb5588126ac571fe7825f551d3a3dae63cdf6f7a
2021-05-20 17:33:35 +01:00
Zuul 48b5bf94a3 Merge "Remove references to 'sys.version_info'" 2021-05-03 14:21:56 +00:00
Balazs Gibizer 0b05b838a4 Fix bond_mode enum 802.1ad -> 802.3ad
This seems to me a clerical error made a long time ago in the spec [1].
The 802.1ad values does not seems to be a valid bonding mode but 802.3ad
does.

This patch fixes the schema in the nova doc. No test are changed as nova
does not generate this part of the network metadata.

[1] https://specs.openstack.org/openstack/nova-specs/specs/kilo/approved/metadata-service-network-info.html#rest-api-impact

Change-Id: I0055d13b055e34372a8186008ba75be68aa2edf9
Closes-Bug: #1925388
2021-04-29 17:42:59 +02:00
Zuul df3655cfdc Merge "docs: Correct typos in 'nova-manage db' docs" 2021-04-22 11:45:31 +00:00
Zuul 118e269fe1 Merge "docs: Follow up for SEV doc" 2021-04-22 11:40:55 +00:00
Zuul a74bced0eb Merge "docs: Document location of nova.conf files" 2021-04-21 18:37:21 +00:00
Zuul a8eb79804d Merge "docs: Add man pages for 'nova-policy'" 2021-04-21 18:05:08 +00:00
Stephen Finucane bab3c8f3cb Remove references to 'sys.version_info'
We support Python 3.6 as a minimum now, making these checks no-ops.

Change-Id: I5ca2439c948687022f8d88df978bc7ee77199fcc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-04-21 12:02:27 +01:00
Zuul 5ea4f712c5 Merge "docs: Correct typos in 'nova-manage cells_v2' docs" 2021-04-19 22:17:50 +00:00
Stephen Finucane f8e68ddcd9 docs: Document location of nova.conf files
Turns out oslo.config actually supports executable-specific
configuration files as well as directories of configuration files. Who
knew?

Change-Id: Ifb71a45ed4df3c9cacd2193beed904f948f5cdc8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-04-19 10:47:21 +01:00
Stephen Finucane b5edc294a1 docs: Add man pages for 'nova-policy'
I don't actually grok what this does that 'oslopolicy-checker' couldn't
do, so perhaps we can deprecate this in the future. For now though,
simply document the thing. While we're here, we make some additional
related changes:

- Remove references to the 'policy.yaml' file for services that don't
  use policy (i.e. everything except the API services and, due to a bug,
  the nova-compute service).
- Update remaining references to the 'policy.yaml' file to include the
  'policy.d/' directory
- Update the help text for the '--api-name' and '--target' options of
  the 'nova-policy policy check' command to correct tense and better
  explain their purpose.

Also, yes, 'nova-policy policy check' is dumb. Don't blame me :)

Change-Id: I913b0de9ec40a615da7bf9981852edef4a88fecb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Related-bug: #1675486
2021-04-19 10:47:17 +01:00
Zuul 18607a9bb7 Merge "Update contributor guide for Xena" 2021-04-16 15:31:14 +00:00
Stephen Finucane 9e5feb051c docs: Populate "See Also" section with meaningful links
Change-Id: I28dbbb22f1752081615722a3932394741654a9da
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-04-13 17:22:24 +01:00
Stephen Finucane 99e5a1ac9a docs: Document options for remaining nova-* commands
Most of these share the same collection of oslo.config and oslo.log
options so it makes sense to group them together. The only exception is
nova-rootwrap, which is a wrapper around the 'oslo_rootwrap.cmd.main'
module, which curiously does not use argparse and doesn't have any
options.

Change-Id: I393ff162be58700956fbab29ff6b9ba3cf5860a6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-04-13 17:17:27 +01:00
Takashi Natsume eaf6a828df Update contributor guide for Xena
Change-Id: I6415e6d62eabf4c178dc3ac0a2f606403b44ebe8
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-04-11 07:49:08 +00:00
Zuul 0a46979070 Merge "docs: Add CPU models guide" 2021-04-08 20:04:28 +00:00
Zuul b6ae7c392b Merge "docs: Change 'add_stylesheet' to 'add_css_file'" 2021-04-08 20:04:04 +00:00
Zuul 50fdbc752a Merge "docs: Rewrite 'nova-manage libvirt' docs" 2021-04-01 11:57:40 +00:00
Zuul 47833ecb22 Merge "docs: Rewrite 'nova-manage placement' docs" 2021-04-01 11:56:47 +00:00
Zuul 56c85a1961 Merge "docs: Rewrite 'nova-manage api_db', 'cell_v2' docs" 2021-04-01 11:55:56 +00:00
Zuul 7c5a93482b Merge "docs: Rewrite 'nova-manage db' docs to use proper directives" 2021-04-01 11:54:48 +00:00
Zuul fdd96de20d Merge "doc: Use a non-numerical anchor when referencing microversions" 2021-03-31 17:50:35 +00:00
Stephen Finucane 03ff08c7fe docs: Correct typos in 'nova-manage cells_v2' docs
Per review feedback.

Change-Id: Ib14c8901920a0844d22674b768bc543a10298c4b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-31 12:01:17 +01:00
Stephen Finucane 96bf8a0ab5 docs: Correct typos in 'nova-manage db' docs
Per review feedback.

Change-Id: Id157e3614bfe9adca44e6ca0adc56e3ae9efee59
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-31 11:37:25 +01:00
Zuul db80aa3d4b Merge "docs: Use proper headers in nova-manage man page" 2021-03-31 09:42:53 +00:00
Zuul fbcfc3e544 Merge "docs: Clarify value for 'hw:cpu_realtime' extra spec" 2021-03-31 07:23:55 +00:00
Stephen Finucane fe3a04be80 docs: Rewrite 'nova-manage libvirt' docs
Change-Id: Ice641a8ce2658e0df4eea08f527fe7813617218f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-30 12:21:12 +01:00
Stephen Finucane 5f6aae3753 docs: Rewrite 'nova-manage placement' docs
Change-Id: Ie973de1eb411db6379b544987b55199913eb62b6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-30 12:21:12 +01:00
Stephen Finucane 2f8ab439a7 docs: Rewrite 'nova-manage api_db', 'cell_v2' docs
Change-Id: I82c718cdf2134005d0a1639072cefe037da78f15
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-30 12:21:12 +01:00
Stephen Finucane cefa8e0938 docs: Rewrite 'nova-manage db' docs to use proper directives
We have them. Let's use them. The resulting man pages aren't perfect,
but they're *much* better.

Change-Id: I84d54a246fecbd2f7d2950d6c6044f7cd1b8e9df
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-03-30 12:18:03 +01:00
Stephen Finucane 59e2b38c80 docs: Use proper headers in nova-manage man page
This is step one in improving the usability of these docs. The current
style makes it impossible to link to individual commands from the built
docs. There is a better way. Use headers along with code blocks to show
the actual command. This was mostly generated from a find-replace along
with some follow-up manual fixes.

Change-Id: Icd25006f31c8e34fe33d79779e0577dc78f96a24
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-30 11:23:44 +01:00
Stephen Finucane 5c396c19cf docs: Follow up for SEV doc
Based on sean-k-mooney's feedback.

Change-Id: Idc3c896c4872a2a431493589fd580bcd688ba567
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-30 11:16:38 +01:00
Zuul d44ce25f15 Merge "docs: Add SEV guide" 2021-03-25 13:48:36 +00:00
Zuul f4f0f8eea1 Merge "docs: Remove duplicated PCI passthrough extra spec info" 2021-03-25 13:47:27 +00:00
Zuul 232fa8bca1 Merge "docs: Remove duplicate TPM extra spec info" 2021-03-25 13:46:15 +00:00
Zuul ad6882b45b Merge "docs: Add a real-time guide" 2021-03-25 13:45:03 +00:00
Zuul a086a88cd1 Merge "docs: Add a resource limits guide" 2021-03-24 13:26:39 +00:00