Commit Graph

60589 Commits

Author SHA1 Message Date
Ghanshyam Mann c76c72cfe0 Remove HyperV: cleanup doc/code ref
Cleanup doc/code ref of HyperV driver.

Change-Id: I6cd8fb90829e040bfd356ff6b1c41aa9a1c906d2
2024-02-07 12:08:07 -08:00
Ghanshyam Mann b068b04372 Remove the Hyper-V driver
Nova Hyper-V driver is not tested in OpenStack upstream and no maintianers.
This driver has been marked as deprecated in Antelope release. It has dependency
on the OpenStack Winstacker project which has been retired[1].

As discussed in vPTG[2], removing the HyperV driver, tests, and its config.

[1] https://review.opendev.org/c/openstack/governance/+/886880
[2] https://etherpad.opendev.org/p/nova-caracal-ptg#L301

Change-Id: I568c79bae9b9736a20c367096d748c730ed59f0e
2024-02-05 12:06:58 -08:00
Zuul 6531ed6310 Merge "doc: drop blockdiag usage" 2024-01-23 11:53:54 +00:00
Sylvain Bauza cc25813b6d doc: drop blockdiag usage
Since blockdiag seems a bit unmaintenained, let's just statically
generate the SVGs but let's keep the source files in tree so we can
modify the diagrams whenever we want, provided blockdiag exists in
a foreseenable future :-)

Closes-Bug: #2026345

Change-Id: I1cc078554ab149a9849c895e08c878180b7510b0
2024-01-22 18:27:04 +01:00
Zuul 087c372a8e Merge "[ironic] Partition & use cache for list_instance*" 2024-01-19 14:48:41 +00:00
Zuul a8cdffefb6 Merge "Attach Manila shares via virtiofs (db)" 2024-01-18 21:51:57 +00:00
Zuul 650301b09e Merge "Allow config to support virtiofs (driver)" 2024-01-18 21:51:49 +00:00
Zuul 23733b7f9b Merge "Fixes: bfv vm reboot ends up in an error state." 2024-01-18 16:40:36 +00:00
Zuul 5da0a8773f Merge "Updates glance fixture for create image" 2024-01-18 14:37:34 +00:00
Zuul fd1ec1b913 Merge "Fix test failures with oslo.limit 2.3.0" 2024-01-18 09:21:38 +00:00
Amit Uniyal b5173b4192 Fixes: bfv vm reboot ends up in an error state.
we only need to verify if bdm has attachment id and it should be present in both nova and cinde DB.

For tests coverage, added tests for bfv server to test different bdm source type.

Closes-Bug: 2048154
Closes-Bug: 2048184
Change-Id: Icffcbad27d99a800e3f285565c0b823f697e388c
2024-01-18 05:53:51 +00:00
Amit Uniyal 12ca930e45 Updates glance fixture for create image
glance client takes image_min_disk as string and return as int,
while glance fixture is returning as it is.

Change-Id: I47df4d147d9dd4c901af2c55c97e111e603cd806
2024-01-17 04:16:38 +00:00
Zuul a72f7eaac7 Merge "Adds server show in helpers" 2024-01-16 11:33:03 +00:00
Takashi Kajinami 48639c1005 Fix test failures with oslo.limit 2.3.0
The oslo.limit 2.3.0 release contains the validation to ensure
the [oslo_limit] endpoint_id option is set[1]. This fixes the test
failures caused by that validation by overriding the option in all
test cases where unified quota implementation is used.

[1] https://review.opendev.org/c/openstack/oslo.limit/+/897509

Closes-Bug: #2049064
Change-Id: Iffc7a66033a9c09e850890bb380b6667412f0d98
2024-01-12 01:14:12 +09:00
Zuul fed123085d Merge "Lower num_pcie_ports to 12 in the nova-next job" 2024-01-11 05:00:33 +00:00
Zuul 39f560d673 Merge "pre-commit: Bump linter versions" 2023-12-21 05:33:02 +00:00
Zuul edcf1ed81a Merge "pre-commit: Add mypy" 2023-12-21 05:00:32 +00:00
Zuul 7c2e79f762 Merge "Allow best effort sending of notifications" 2023-12-20 23:29:44 +00:00
Stephen Finucane 7116d8e5f1 pre-commit: Bump linter versions
Change-Id: I6825266702a7a4626b0c80bebdcb83cbb43849ea
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-20 18:33:33 +00:00
Stephen Finucane e3e35ba2d0 pre-commit: Add mypy
Add mypy so we can run these checks as part of our linting step. Note
that mypy is the last item in the list of checks since flake8 is going
to catch e.g. syntax issues which should be addressed first.

This also allows us to drop use of mypywrap: rather than wrapping mypy,
we can make use of mypy's configuration to specify the files we wish to
run checks on.

Change-Id: Ie51401ead4e31ccd70ab833c59cb397f802ff188
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-20 18:31:47 +00:00
Zuul 80a2b018df Merge "tox: Use pre-commit for pep8 target" 2023-12-20 15:03:46 +00:00
Zuul a43728d33b Merge "Resolve mypy error" 2023-12-20 15:03:38 +00:00
Zuul 3e108ef13a Merge "Use configuration for single enabled mdev type" 2023-12-20 13:08:31 +00:00
Zuul d1309c4745 Merge "Call Neutron immediately upon _post_live_migration() start" 2023-12-20 09:04:50 +00:00
Zuul 9e6b44b93e Merge "Adds a repoducer for post_live_migration_at_destination failures" 2023-12-20 05:43:11 +00:00
Zuul 897a91b928 Merge "docs: fix 404 for ironic docs" 2023-12-20 05:29:07 +00:00
Zuul ef08dcb5f3 Merge "Reproducer test of bug #1999674" 2023-12-20 03:50:36 +00:00
Zuul 91f7d2397a Merge "Imported Translations from Zanata" 2023-12-20 03:47:57 +00:00
Zuul d5726a81b8 Merge "Remove deprecated [api] use_forwarded_for" 2023-12-20 03:47:46 +00:00
Jay Faulkner fa3cf7d50c [ironic] Partition & use cache for list_instance*
list_instances and list_instance_uuids, as written in the Ironic driver,
do not currently respect conductor_group paritioning. Given a nova
compute is intended to limit it's scope of work to the conductor group
it is configured to work with; this is a bug.

Additionally, this should be a significant performance boost for a
couple of reasons; firstly, instead of calling the Ironic API and
getting all nodes, instead of the subset (when using conductor group),
we're now properly getting the subset of nodes -- this is the optimized
path in the Ironic DB and API code. Secondly, we're now using the
driver's node cache to respond to these requests. Since list_instances
and list_instance_uuids is used by periodic tasks, these operating with
data that may be slightly stale should have minimal impact compared to
the performance benefits.

Closes-bug: #2043036
Change-Id: If31158e3269e5e06848c29294fdaa147beedb5a5
2023-12-19 14:56:42 -08:00
Stephen Finucane 2ffdf2e917 tox: Use pre-commit for pep8 target
pre-commit is an effective linter runner. No need to duplicate things.
We are able to remove our homegrown "is this valid JSON" check by using
the one built into pre-commit. Beautiful!

Change-Id: I89398d4a1c5d4e7205f5f9c499cba0b4ff90fa46
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-19 16:37:57 +00:00
Stephen Finucane 298ca28e0f Resolve mypy error
This is causing lint failures in the requirements job.

Change-Id: I7afc10130b77bdfb419bb68b670ec7ebecb4026b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-19 16:37:47 +00:00
Zuul d28a55959e Merge "Fixed an error when caching multiple images in aggregate" 2023-12-19 08:18:06 +00:00
OpenStack Proposal Bot 14dff74f0d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8075ca98de9fa9131dfd1343cf44fa80d14cfb12
2023-12-19 03:35:37 +00:00
Zuul 55a27f0ac4 Merge "[codespell] ignore codespell in git blame" 2023-12-18 23:29:34 +00:00
Zuul 5e914c27a0 Merge "Bump hacking version" 2023-12-18 21:20:36 +00:00
Zuul 258e6f7b91 Merge "[codespell] fix final typos and enable ci" 2023-12-18 21:20:29 +00:00
Sivasathurappan Radhakrishnan 33fa92b6cb Allow live migrate paused instance when post copy is enabled
Live migration of paused instance fails when VIR_MIGRATE_POSTCOPY
flag is set. In this patch, the flag is unset to permit live migration
of paused instance.

Change-Id: Ib5cbc948cb953e35a22bcbb859976f0afddcb662
Closes-Bug: #1671011
2023-12-18 14:11:16 +00:00
Artom Lifshitz 06d25926a1 Allow best effort sending of notifications
In the previous patch we changed the ordering of operations during
post_live_migration() to minimize guest networking downtime by
activating destination host port bindings as soon as possible.

Review of that patch led to the realization that exceptions during
notification sending can prevent the port binding activation from
happening. Instead of handling that in a localized try/catch, this
patch implements a general best_effort kwarg to our two notification
sending helpers to allow callers to indicate that any exceptions
during notification sending should not be fatal.

Change-Id: I01a15d6fffe98816ae019e67dc72784299fedfd3
2023-12-17 08:37:11 -05:00
Artom Lifshitz 26fbc9e8e7 Call Neutron immediately upon _post_live_migration() start
Previously, we first called to Cinder to cleanp source volume
connections, then to Neutron to activate destination port bindings.
This means that, if Cinder or the storage backend were slow, the live
migrated instance would be without network connectivity during that
entire process.

This patch immediately activates the port bindings on the destination
(and thus gives the instance network connectivity). We just need to
get the old network_info first, in order to use it in notifications
and to stash it for the later call to
driver.post_live_migration_at_source().

This is a smaller and safer change than the parallelization attempt in
the subsequent patch, so it's done in its own patch because it might
be backportable, and would help with network downtime during live
migration.

To avoid any potential data leaks, we want to be certain to cleanup
volumes on the source. To that end we wrap the code that is being
moved before the source volume cleanup code in a try/finally block
in order to prevent any uncaught exception from blocking the cleanup.

Change-Id: I700943723a32e732e3e3be825f3fd44a9f923a0b
2023-12-16 21:03:57 -05:00
Sean Mooney 5faaf4aa8f [codespell] ignore codespell in git blame
This is the final change in the codespell series
and updates the .git-blame-ignore-revs file
to ignore the changes in git blame by default.

Change-Id: Ibfbaa411e29336f3d51459ff2225000c612ed2bf
2023-12-15 12:35:03 +00:00
Sean Mooney f4852f4c81 [codespell] fix final typos and enable ci
This chnage adds the pre-commit config and
tox targets to run codespell both indepenetly
and via the pep8 target.

This change correct all the final typos in the
codebase as detected by codespell.

Change-Id: Ic4fb5b3a5559bc3c43aca0a39edc0885da58eaa2
2023-12-15 12:32:42 +00:00
Zuul 45e2349408 Merge "Remove outdated comment about allocation ratios" 2023-12-14 16:49:58 +00:00
Zuul 4cc5db80bf Merge "Use real SDK objects in tests" 2023-12-14 14:29:04 +00:00
Zuul e351b7d2cc Merge "Remove unnecessary aliasing" 2023-12-14 14:28:56 +00:00
Zuul 6e88b75fb8 Merge "Remove Ironic client wrapper" 2023-12-14 14:28:47 +00:00
Zuul fac01e7d55 Merge "tests: Use clearer syntax for empty generator" 2023-12-14 11:18:27 +00:00
Stephen Finucane 3973fc393c Bump hacking version
This bumps the version of flake8 and resolves some erroneous failures in
f-strings. A number of new E721 (do not compare types) class errors are
picked up, which are all addressed.

Change-Id: I7a1937b107ff3af8d1e5fe23fc32b120ef4697f7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-14 10:54:26 +00:00
Takashi Kajinami a5f68d355c Remove deprecated [api] use_forwarded_for
This option was deprecated in favor of the HTTPProxyToWSGI middleware
in 26.0.0 release[1].

[1] cf906cdcc2

Related-Bug: #1967686
Change-Id: Iad8880127531dc2788d646f8a05b5c17fd9d0969
2023-12-14 14:41:00 +09:00
Zuul 8644855533 Merge "Use SDK for deprecated baremetal proxy API" 2023-12-14 00:07:25 +00:00