60604 Commits

Author SHA1 Message Date
Ghanshyam Mann
0c1e1ccf03 HyperV: Remove RDP console API
RDP console was only for HyperV driver so removing the
API. As API url stay same (because same used for other
console types API), RDP console API will return 400.

Cleaning up the related config options as well as moving its
API ref to obsolete seciton.

Keeping RPC method to avoid error when old controller is used
with new compute. It can be removed in next RPC version bump.

Change-Id: I8f5755009da4af0d12bda096d7a8e85fd41e1a8c
2024-02-13 12:24:38 -08:00
Ghanshyam Mann
3e47439a68 HyperV: Remove RDP console connection information API
The RDP console was only available for HyperV driver, therefore its
connection information via API ``os-console-auth-tokens`` will now return
HTTP ``400 (BadRequest)`` error.

Starting from 2.31 microversion, this API return connection info
for all other console type.

Change-Id: I94e590eb4cbe3b2d8eff7fe881f7b98af8979be2
2024-02-13 19:28:07 +00:00
Ghanshyam Mann
260dbd9761 HyperV: Add todo to remove HyperVLiveMigrateData object
With HyperV driver going away, HyperVLiveMigrateData
is not needed but we will keep it for a couple of cycle.
Adding note about removing it in later releases.

Change-Id: I3574488faffb5a6f5993097496be4de146d61d5c
2024-02-13 11:27:44 -08:00
Zuul
e11f08673e Merge "Remove HyperV: cleanup doc/code ref" 2024-02-13 17:38:29 +00:00
Zuul
8c5bed134e Merge "Augment the LibvirtLiveMigrateData object" 2024-02-13 15:14:39 +00:00
Zuul
35af4b345d Merge "Remove the Hyper-V driver" 2024-02-08 16:14:23 +00:00
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
melanie witt
6827b763b4 run-evacuate-hook: Check cinder before creating BFV server
Awhile back change I52046e6f7acdfb20eeba67dda59cbb5169e5d17e disabled
cinder in the nova-ovs-hybrid-plug job and added checks for cinder
before attempting to run evacuate BFV tests.

Resource setup for BFV was however not bypassed and the attempt to
setup a BFV server resource fails with:

  keystoneauth1.exceptions.catalog.EndpointNotFound: publicURL endpoint
  for volumev3 service not found

This adds a bypass to avoid attempting to create a BFV server when
cinder is not available.

Change-Id: I52c7e5ce268bb38cee16c18c5523fe0e224970aa
2024-02-06 17:52:30 +00:00
0c793f84a8 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ibeb1e834dd39cf705360dc228b92560ea74ab71d
2024-02-06 14:27:07 +00: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
681f6872fb Merge "testing: Use inspect.isfunction() to check signatures" 2024-02-02 06:51:34 +00:00
Zuul
da918d4b95 Merge "Revert "[pwmgmt]ignore missin governor when cpu_state used"" 2024-01-31 16:37:02 +00:00
Sylvain Bauza
fbdd68d4de Augment the LibvirtLiveMigrateData object
Adds the fields to the object so we can use them for passing the values
of the mediated devices betwen the target and the source.

Change-Id: I70d69c2b9c58f34db7e0d57c438db337d52a9a75
Partially-Implements: blueprint libvirt-mdev-live-migrate
2024-01-30 20:45:08 +01:00
Zuul
a66a0dd113 Merge "Attach Manila shares via virtiofs (objects)" 2024-01-29 15:43:17 +00: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
René Ribaud
0680f68682 Attach Manila shares via virtiofs (objects)
This patch introduce the ShareMapping and ShareMappingList top level objects
and associated attach and detach methods that interact with the DB
It also introduce ShareMappingLibvirt and ShareMappingLibvirtNFS
children objects that will be used by the driver part.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: Ibacfeaf7daa726bf0ee7802bacd3f70329fec624
2024-01-22 18:10:22 +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
Balazs Gibizer
03ef4d6f53 Revert "[pwmgmt]ignore missin governor when cpu_state used"
This reverts commit ed2ac71a46b6caf620ddc08219ebae31f5af197d.

This is unnecessary as 2c4421568ea62e66257b55c08092de3e0303fb0a already
fixed this bug on master

Change-Id: Id2c253a6e223bd5ba22512d9e5a40a9d12680da2
2024-01-16 11:45:08 +01: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